Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7779 in orxonox.OLD for trunk/src/lib/gui/gl_gui/glgui_box.h


Ignore:
Timestamp:
May 23, 2006, 10:04:17 PM (18 years ago)
Author:
bensch
Message:

3088 linews changed :): trunk: namespaces

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/gui/gl_gui/glgui_box.h

    r7130 r7779  
    1010#include "glgui_container.h"
    1111
    12 // FORWARD DECLARATION
    1312
    14 typedef enum
     13namespace OrxGui
    1514{
    16   GLGuiBox_H,
    17   GLGuiBox_V,
    18 } GLGuiBoxType;
     15  typedef enum
     16  {
     17    Box_H,
     18    Box_V,
     19  } BoxType;
    1920
    20 //! This is BOX part of the openglGUI class
    21 /**
    22  *
    23  */
    24 class GLGuiBox : public GLGuiContainer {
     21  //! This is BOX part of the openglGUI class
     22  /**
     23   *
     24   */
     25  class GLGuiBox : public GLGuiContainer
     26  {
    2527
    26  public:
    27   GLGuiBox(GLGuiBoxType type = GLGuiBox_H);
    28   virtual ~GLGuiBox();
     28  public:
     29    GLGuiBox(BoxType type = Box_H);
     30    virtual ~GLGuiBox();
    2931
    30   void init();
    31   void setType(GLGuiBoxType type) { this->type = type; };
     32    void init();
     33    void setType(BoxType type) { this->type = type; };
    3234
    33   virtual void pack(GLGuiWidget* widget);
    34   virtual void unpack(GLGuiWidget* widget);
    35   virtual void showAll();
    36   virtual void hideAll();
     35    virtual void pack(GLGuiWidget* widget);
     36    virtual void unpack(GLGuiWidget* widget);
     37    virtual void showAll();
     38    virtual void hideAll();
    3739
    38   virtual void draw() const;
     40    virtual void draw() const;
    3941
    40  private:
    41    GLGuiBoxType             type;
    42    std::list<GLGuiWidget*>  children;
    43 };
    44 
     42  private:
     43    BoxType                  type;
     44    std::list<GLGuiWidget*>  children;
     45  };
     46}
    4547#endif /* _GLGUI__H */
Note: See TracChangeset for help on using the changeset viewer.