GUI tlačítko. ...
#include <GUIButton.h>
Veřejné metody | |
CGUIButton (T *_instance) | |
void | render () |
void | update () |
void | mouseButtons (int button, int state, int x, int y) |
void | setMouseUpCallback (void(T::*_func)(void)) |
void | setMouseDownCallback (void(T::*_func)(void)) |
void | setCallbackClass (T *_instance) |
void | setCallback (T *_instance, void(T::*_funcMouseDown)(void), void(T::*_funcMouseUp)(void)) |
Chráněné atributy | |
T * | m_instance |
void(T::* | m_mouseUpCallback )(void) |
void(T::* | m_mouseDownCallback )(void) |
GUI tlačítko.
Kontakt: tomanfra@fit.cvut.cz
void CGUIButton< T >::mouseButtons | ( | int | button, | |
int | state, | |||
int | x, | |||
int | y | |||
) | [inline, virtual] |
button | ||
state | ||
x | ||
y |
Reimplementuje stejnojmenný prvek z CGameObject.
void CGUIButton< T >::render | ( | void | ) | [inline, virtual] |
Vykreslí tlačítko
Implementuje CGameObject2D.
void CGUIButton< T >::setMouseUpCallback | ( | void(T::*)(void) | _func | ) | [inline] |
Nastaví callback na uvolnění tlačítka myši
_func |
void CGUIButton< T >::update | ( | ) | [inline, virtual] |