Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/preferences/src/lib/gui/gl_gui/glgui_box.h @ 6788

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

orxonox/trunk: some gui-work

File size: 782 bytes
Line 
1/*!
2 * @file glgui_.h
3 * The gl_box widget of th openglGUI
4 *
5 */
6
7#ifndef _GLGUI_BOX_H
8#define _GLGUI_BOX_H
9
10#include "glgui_container.h"
11
12// FORWARD DECLARATION
13template<class T> class tList;
14
15typedef enum
16{
17  GLGuiBox_H,
18  GLGuiBox_V,
19} GLGuiBoxType;
20
21//! This is BOX part of the openglGUI class
22/**
23 *
24 */
25class GLGuiBox : public GLGuiContainer {
26
27 public:
28  GLGuiBox(GLGuiBoxType type = GLGuiBox_H);
29  virtual ~GLGuiBox();
30
31  void init();
32  void setType(GLGuiBoxType type) { this->type = type; };
33
34  virtual void pack(GLGuiWidget* widget);
35  virtual void unpack(GLGuiWidget* widget);
36  virtual void showAll();
37  virtual void hideAll();
38
39  virtual void draw() const;
40
41 private:
42   GLGuiBoxType             type;
43   tList<GLGuiWidget>*      children;
44
45};
46
47#endif /* _GLGUI__H */
Note: See TracBrowser for help on using the repository browser.