- Main Page
- Related Pages
- Classes
- Files

- File List

# src/GpuQuadraticCurveRender/MouseState.h

Go to the documentation of this file.

    00001
    00002
    00003
    00004
    00005
    00006
    00007
    00008
    00009
    00010
    00011
    00012
    00013
    00014
    00015
    00016
    00017
    00018
    00019
    00020
    00025
    00026 #ifndef _MOUSE_STATE_H_
    00027 #define _MOUSE_STATE_H_
    00028
    00029 namespace GlutWrapper
    00030 {
    00031
    00032 enum MouseButton
    00033 {
    00034         Left = 0,
    00035         Right = 1,
    00036         Middle = 2
    00037 };
    00038
    00039 enum MouseButtonState
    00040 {
    00041         Down = 0,
    00042         Up = 1
    00043 };
    00044
    00045 class MouseState
    00046 {
    00047 public:
    00048         MouseButton m_button;
    00049
    00050         MouseButtonState m_buttonState;
    00051
    00052         int m_x;
    00053
    00054         int m_y;
    00055
    00056         int m_oldX;
    00057
    00058         int m_oldY;
    00059
    00060         MouseState(void);
    00061
    00062         MouseState(MouseButton button, MouseButtonState buttonState,
    00063                            int x, int y, int oldX, int oldY);
    00064
    00065         MouseState(const MouseState& state);
    00066
    00067         ~MouseState(void);
    00068
    00069         MouseState& operator=(const MouseState& state);
    00070 };
    00071
    00072 }
    00073
    00074 #endif