Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

gui: multiple Connections also work

File size: 990 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#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::Horizontal);
24    virtual ~GLGuiBox();
25
26    void init();
27    /** @returns the Orientation of the Box */
28    OrxGui::Orientation orientation() const { return this->_orientation; };
29    void setOrientation(OrxGui::Orientation orientation) { this->_orientation = orientation; };
30
31    virtual void pack(GLGuiWidget* widget);
32    virtual void unpack(GLGuiWidget* widget);
33    virtual void clear();
34
35    virtual void showAll();
36    virtual void hideAll();
37
38    virtual void draw() const;
39
40  private:
41    virtual void resize();
42
43    Orientation              _orientation;
44    std::list<GLGuiWidget*>  children;
45  };
46}
47#endif /* _GLGUI__H */
Note: See TracBrowser for help on using the repository browser.