Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/src/lib/gui/gl_gui/glgui_box.h @ 7130

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

orxonox/trunk: removed some std::list

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