Mercurial > fife-parpg
comparison engine/core/video/cursor.h @ 416:a8bb57884723
* Added a getX/getY command to the cursor
author | helios2000@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Wed, 03 Feb 2010 18:59:34 +0000 |
parents | 51cc05d862f2 |
children | 5d6b1820b953 |
comparison
equal
deleted
inserted
replaced
415:16ea97290dbc | 416:a8bb57884723 |
---|---|
122 | 122 |
123 /** Gets the current mouse cursor pool id | 123 /** Gets the current mouse cursor pool id |
124 */ | 124 */ |
125 unsigned int getDragId() const { return m_drag_id; } | 125 unsigned int getDragId() const { return m_drag_id; } |
126 | 126 |
127 /** Gets the current mouse x position | |
128 */ | |
129 unsigned int getX() const {return m_mx;} | |
130 | |
131 /** Gets the current mouse y position | |
132 */ | |
133 unsigned int getY() const {return m_my;} | |
134 | |
127 protected: | 135 protected: |
128 /** Sets the cursor to a native type. | 136 /** Sets the cursor to a native type. |
129 * @param cursor_id Resource id to native cursor, or one of the values in NativeCursor | 137 * @param cursor_id Resource id to native cursor, or one of the values in NativeCursor |
130 */ | 138 */ |
131 void setNativeCursor(unsigned int cursor_id); | 139 void setNativeCursor(unsigned int cursor_id); |
154 unsigned int m_animtime; | 162 unsigned int m_animtime; |
155 unsigned int m_drag_animtime; | 163 unsigned int m_drag_animtime; |
156 | 164 |
157 int m_drag_offset_x; | 165 int m_drag_offset_x; |
158 int m_drag_offset_y; | 166 int m_drag_offset_y; |
167 int m_mx; | |
168 int m_my; | |
159 TimeManager* m_timemanager; | 169 TimeManager* m_timemanager; |
160 }; | 170 }; |
161 | 171 |
162 } //FIFE | 172 } //FIFE |
163 | 173 |