![]() |
SANDAL2
A SDL2 Wrapper in C
|
Behaviors of an element to events. More...
#include <Element.h>
Public Attributes | |
void(* | action )(struct Element *) |
void(* | onClick )(struct Element *, int) |
void(* | unClick )(struct Element *, int) |
void(* | keyPress )(struct Element *, SDL_Keycode c) |
void(* | keyReleased )(struct Element *, SDL_Keycode c) |
void(* | unSelect )(struct Element *) |
void(* | endSprite )(struct Element *, int code) |
void(* | onMouseMotion )(struct Element *) |
void(* | unMouseMotion )(struct Element *) |
void(* | endAction )(struct Element *) |
Behaviors of an element to events.
void(* EventElement::action) (struct Element *) |
function called when update
void(* EventElement::endAction) (struct Element *) |
function called when the ListAction bound to the element (if any) ends
void(* EventElement::endSprite) (struct Element *, int code) |
function called at the end of a sprite
void(* EventElement::keyPress) (struct Element *, SDL_Keycode c) |
function called when a key is pressed
void(* EventElement::keyReleased) (struct Element *, SDL_Keycode c) |
function called when a key is released
void(* EventElement::onClick) (struct Element *, int) |
function called when the element is clicked
void(* EventElement::onMouseMotion) (struct Element *) |
function called when the mouse move over a zone
void(* EventElement::unClick) (struct Element *, int) |
function called when the element is unclicked
void(* EventElement::unMouseMotion) (struct Element *) |
function called when the mouse exit the hover zone
void(* EventElement::unSelect) (struct Element *) |
function called when the element is unselected