Kigs Framework
Doc version 0.8
Open source multi purpose Rapid Application Development framework
|
#include <ModuleInput.h>
Public Member Functions | |
WindowClick (CoreModifiable *w) | |
constructor More... | |
~WindowClick () | |
destructor | |
void | update () |
update the WindowClick More... | |
void | setPos (int buttonId, kfloat X, kfloat Y) |
set the position of the click for a given button in the tmpArray More... | |
void | getPos (int buttonId, kfloat &X, kfloat &Y) |
get the position of the click for a given button More... | |
bool | isMyWindow (CoreModifiable *w) |
check if the WindowClick watch the given window More... | |
Manage mouse click for a given window.
|
inline |
constructor
w | : watched window |
|
inline |
get the position of the click for a given button
buttonId | : id of the given button |
X | : position on X axis [0.0, 1.0] (out param) |
Y | : position on Y axis [0.0, 1.0] (out param) |
|
inline |
check if the WindowClick watch the given window
w | : checked window |
|
inline |
set the position of the click for a given button in the tmpArray
buttonId | : id of the given button |
X | : position on X axis [0.0, 1.0] |
Y | : position on Y axis [0.0, 1.0] |
|
inline |
update the WindowClick
set the values stored in the tmpArray in the position array and reset them to -1