Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/resources/src/lib/gui/gl_gui/glgui_box.h @ 7341

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

orxonox/trunk: removed some std::list

File size: 750 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
13
14typedef enum
15{
16  GLGuiBox_H,
17  GLGuiBox_V,
18} GLGuiBoxType;
19
20//! This is BOX part of the openglGUI class
21/**
22 *
23 */
24class GLGuiBox : public GLGuiContainer {
25
26 public:
27  GLGuiBox(GLGuiBoxType type = GLGuiBox_H);
28  virtual ~GLGuiBox();
29
30  void init();
31  void setType(GLGuiBoxType type) { this->type = type; };
32
33  virtual void pack(GLGuiWidget* widget);
34  virtual void unpack(GLGuiWidget* widget);
35  virtual void showAll();
36  virtual void hideAll();
37
38  virtual void draw() const;
39
40 private:
41   GLGuiBoxType             type;
42   std::list<GLGuiWidget*>  children;
43};
44
45#endif /* _GLGUI__H */
Note: See TracBrowser for help on using the repository browser.