Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

orxonox/trunk: nicer rendering of the Shell

File size: 951 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//! This is part of the openglGUI class
16/**
17* A widget is the main class of all the elements of th GUI.
18*/
19class GLGuiWidget : public Element2D {
20  public:
21    GLGuiWidget();
22    virtual ~GLGuiWidget();
23
24    void init();
25
26    void show();
27    void hide();
28
29
30    virtual void draw() = 0;
31    virtual void update() = 0;
32
33  protected:
34    Material*             backGround;
35    GLuint                renderModel;
36
37  private:
38    bool                  managed;          //!< if this GUI-element should be managed. true means it gets deleted with the deletion of it's parent.
39    bool                  focusable;        //!< If it can receive focus.
40    bool                  clickable;        //!< if it can be clicked upon.
41};
42
43#endif /* _GLGUI_WIDGET_H */
Note: See TracBrowser for help on using the repository browser.