Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

orxonox/trunk: container-packing

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