Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/src/lib/gui/gl_gui/glgui_widget.h @ 5387

Last change on this file since 5387 was 5387, checked in by bensch, 19 years ago

orxonox/trunk: PNode and Element2D can now return their children-lists as const tList<type>*

File size: 969 bytes
Line 
1/*!
2* @file glgui_widget.h
3* The gl_widget of the openglGUI
4*/
5
6#ifndef _GLGUI_WIDGET_H
7#define _GLGUI_WIDGET_H
8
9#include "element_2d.h"
10#include "glincl.h"
11
12// FORWARD DECLARATION
13class Material;
14
15//! if the Element should be visible by default.
16#define GLGUI_WIDGET_DEFAULT_VISIBLE       false
17
18//! This is widget part of the openglGUI class
19/**
20 * A widget is the main class of all the elements of th GUI.
21 */
22class GLGuiWidget : public Element2D {
23  public:
24    GLGuiWidget();
25    virtual ~GLGuiWidget();
26
27    void init();
28
29    void show();
30    void hide();
31
32
33    virtual void update() = 0;
34
35  protected:
36    Material*             backMat;
37    GLuint                backModel;
38
39    Material*             frontMat;
40    GLuint                frontModel;
41
42  private:
43    bool                  focusable;        //!< If this widget can receive focus.
44    bool                  clickable;        //!< if this widget can be clicked upon.
45};
46
47#endif /* _GLGUI_WIDGET_H */
Note: See TracBrowser for help on using the repository browser.