Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/src/lib/gui/gl/glgui_box.h @ 8528

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

trunk: merged the gui back
merged with command:
svn merge -r8114:HEAD https://svn.orxonox.net/orxonox/branches/gui .
→ no conflicts

File size: 1.0 KB
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"
[8035]11#include "glgui_defs.h"
[1853]12
[7779]13namespace OrxGui
[5391]14{
[7779]15  //! This is BOX part of the openglGUI class
16  /**
17   *
18   */
19  class GLGuiBox : public GLGuiContainer
20  {
[3543]21
[7779]22  public:
[8035]23    GLGuiBox(OrxGui::Orientation orientation = OrxGui::Vertical);
[7779]24    virtual ~GLGuiBox();
[2036]25
[8035]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; };
[1853]30
[7779]31    virtual void pack(GLGuiWidget* widget);
32    virtual void unpack(GLGuiWidget* widget);
[8035]33    virtual void clear();
34
[7779]35    virtual void showAll();
36    virtual void hideAll();
[5393]37
[7779]38    virtual void draw() const;
[1853]39
[8035]40  protected:
41    virtual void resize();
42
[7779]43  private:
[8035]44    void init();
45
46    Orientation                _orientation;
47    std::vector<GLGuiWidget*>  children;
[7779]48  };
49}
[5360]50#endif /* _GLGUI__H */
Note: See TracBrowser for help on using the repository browser.