Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/proxy/src/lib/gui/gl/glgui_box.h @ 9620

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

box is better and nicer implemented now

File size: 1.2 KB
Line 
1/*!
2 * @file glgui_box.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#include "glgui_defs.h"
12
13namespace OrxGui
14{
15  //! This is BOX part of the openglGUI class
16  /**
17   *
18   */
19  class GLGuiBox : public GLGuiContainer
20  {
21
22  public:
23    GLGuiBox(OrxGui::Orientation orientation = OrxGui::Vertical);
24    virtual ~GLGuiBox();
25
26    /** @returns the Orientation of the Box */
27    OrxGui::Orientation orientation() const { return this->_orientation; };
28    /** @param orientation the Orientation of the Box */
29    void setOrientation(OrxGui::Orientation orientation) { this->_orientation = orientation; };
30
31    virtual void pack(GLGuiWidget* widget);
32    void pack(GLGuiWidget* widget, std::list<GLGuiWidget*>::iterator pos);
33    void pack(GLGuiWidget* widget, unsigned int position);
34    //void
35    virtual void unpack(GLGuiWidget* widget);
36    virtual void clear();
37
38    virtual void showAll();
39    virtual void hideAll();
40
41    virtual void draw() const;
42
43  protected:
44    virtual void resize();
45
46  private:
47    void init();
48
49    Orientation                _orientation;
50    std::list<GLGuiWidget*>    _children;
51  };
52}
53#endif /* _GLGUI__H */
Note: See TracBrowser for help on using the repository browser.