Kigs Framework  Doc version 0.8
Open source multi purpose Rapid Application Development framework
Public Member Functions | List of all members
WindowClick Class Reference

#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...
 

Detailed Description

Manage mouse click for a given window.

Constructor & Destructor Documentation

◆ WindowClick()

WindowClick::WindowClick ( CoreModifiable w)
inline

constructor

Parameters
w: watched window

Member Function Documentation

◆ getPos()

void WindowClick::getPos ( int  buttonId,
kfloat &  X,
kfloat &  Y 
)
inline

get the position of the click for a given button

Parameters
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)

◆ isMyWindow()

bool WindowClick::isMyWindow ( CoreModifiable w)
inline

check if the WindowClick watch the given window

Parameters
w: checked window
Returns
TRUE if the WindowClick watch the given window

◆ setPos()

void WindowClick::setPos ( int  buttonId,
kfloat  X,
kfloat  Y 
)
inline

set the position of the click for a given button in the tmpArray

Parameters
buttonId: id of the given button
X: position on X axis [0.0, 1.0]
Y: position on Y axis [0.0, 1.0]

◆ update()

void WindowClick::update ( )
inline

update the WindowClick

set the values stored in the tmpArray in the position array and reset them to -1


The documentation for this class was generated from the following file: