Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/heathaze/src/lib/gui/gl/glgui_fixedposition_box.h @ 10585

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

orxonox/trunk: merged the new_class_id branche back to the trunk.
merged with command:
svn merge https://svn.orxonox.net/orxonox/branches/new_class_id trunk -r9683:HEAD
no conflicts… puh..

File size: 1.1 KB
Line 
1/*!
2 * @file glgui_fixedposition_box.h
3 * The gl_fixedposition_box widget of th openglGUi
4 */
5
6#ifndef _GLGUI_FIXEDPOSITION_BOX_H
7#define _GLGUI_FIXEDPOSITION_BOX_H
8
9#include "glgui_box.h"
10#include "event_listener.h"
11
12namespace OrxGui
13{
14  //! This is BOX part of the openglGUI class
15  /**
16   * The Box is always positioned at the designated position on the screen
17   *
18   * @note If you pack the box or move it with setRel/AbsCoor2D the
19   * behaviour of positioning is not predictable!
20   */
21  class GLGuiFixedpositionBox : public OrxGui::GLGuiBox, EventListener
22  {
23    ObjectListDeclaration(GLGuiFixedpositionBox);
24    public:
25      GLGuiFixedpositionBox(OrxGui::Position position = OrxGui::Center, OrxGui::Orientation orientation = OrxGui::Vertical);
26
27      inline OrxGui::Position position() const { return this->_position; };
28      void setPosition(OrxGui::Position position);
29
30    protected:
31      virtual void resize();
32      virtual void process(const Event& event); //!< from eventListener
33
34    private:
35      OrxGui::Position     _position;     //!< The Fixed position of the Widget.
36  };
37}
38#endif /* _GLGUI_FIXEDPOSITION_BOX_H */
Note: See TracBrowser for help on using the repository browser.