Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/gui/src/lib/gui/gl_gui/glgui_cursor.h @ 7891

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

gui: coloring of the Cursor ok

File size: 981 bytes
Line 
1/*!
2 * @file glgui_cursor.h
3 * The gl_cursor widget of th openglGUI
4 *
5 */
6
7#ifndef _GLGUI_CURSOR_H
8#define _GLGUI_CURSOR_H
9
10#include "glgui_widget.h"
11#include "event_listener.h"
12#include "vector2D.h"
13
14namespace OrxGui
15{
16  // FORWARD DECLARATION
17
18  //! This is part of the openglGUI class
19  /**
20   *
21   */
22  class GLGuiCursor : public GLGuiWidget, public EventListener
23  {
24
25  public:
26    GLGuiCursor();
27    virtual ~GLGuiCursor();
28
29    static void setMouseSensitivity(float mouseSensitivity);
30    static float mouseSensitivity() { return GLGuiCursor::_mouseSensitivity; };
31
32    void init();
33    const Vector2D& position() const { return Element2D::getAbsCoor2D(); }
34
35
36    virtual void tick(float dt);
37    virtual void draw() const;
38    virtual void process(const Event& event);
39  private:
40
41    Vector2D      newPos;
42    Vector2D      movement;
43
44    float         color; // so f****ing temporary... ... ....
45
46    static float _mouseSensitivity;
47
48  };
49}
50#endif /* _GLGUI_CURSOR_H */
Note: See TracBrowser for help on using the repository browser.