Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7919 in orxonox.OLD for trunk/src/lib/gui/gl_gui/glgui_cursor.h


Ignore:
Timestamp:
May 28, 2006, 3:48:13 PM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: merged the gui branche back
merged with command:
https://svn.orxonox.net/orxonox/branches/gui
no conflicts

File:
1 edited

Legend:

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

    r7779 r7919  
    11/*!
    2  * @file glgui_.h
    3  * The gl_ widget of th openglGUI
     2 * @file glgui_cursor.h
     3 * The gl_cursor widget of th openglGUI
    44 *
    55 */
    66
    7 #ifndef _GLGUI__H
    8 #define _GLGUI__H
     7#ifndef _GLGUI_CURSOR_H
     8#define _GLGUI_CURSOR_H
    99
    10 #include "base_object.h"
     10#include "glgui_widget.h"
     11#include "event_listener.h"
     12#include "vector2D.h"
    1113
    1214namespace OrxGui
     
    1820   *
    1921   */
    20   class GLGui : public GLGui
     22  class GLGuiCursor : public GLGuiWidget, public EventListener
    2123  {
    2224
    2325  public:
    24     GLGui();
    25     virtual ~GLGui();
     26    GLGuiCursor();
     27    virtual ~GLGuiCursor();
     28
     29    static void setMouseSensitivity(float mouseSensitivity);
     30    static float mouseSensitivity() { return GLGuiCursor::_mouseSensitivity; };
     31
     32    void setMaxBorders(const Vector2D& maxBorders) { this->_maxBorders = maxBorders; };
    2633
    2734    void init();
     35    const Vector2D& position() const { return Element2D::getAbsCoor2D(); }
    2836
    29     virtual void draw();
    3037
     38    virtual void tick(float dt);
     39    virtual void draw() const;
     40    virtual void process(const Event& event);
    3141  private:
     42
     43    Vector2D      _maxBorders;
     44
     45    Vector2D      newPos;
     46    Vector2D      movement;
     47
     48    float         color; // so f****ing temporary... ... ....
     49
     50    static float _mouseSensitivity;
    3251
    3352  };
    3453}
    35 #endif /* _GLGUI__H */
     54#endif /* _GLGUI_CURSOR_H */
Note: See TracChangeset for help on using the changeset viewer.