Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

orxonox/trunk: more-gui-definition

File size: 920 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 private:
34  bool                  managed;          //!< if this GUI-element should be managed. true means it gets deleted with the deletion of it's parent.
35  bool                  focusable;        //!< If it can receive focus.
36  bool                  clickable;        //!< if it can be clicked upon.
37
38  Material*             backGround;
39  GLuint                renderModel;
40
41
42
43};
44
45#endif /* _GLGUI_WIDGET_H */
Note: See TracBrowser for help on using the repository browser.