Woopsi 1.0
GUI Framework for Nintendo DS Homebrew
|
#include <gadgeteventargs.h>
Public Member Functions | |
GadgetEventArgs (Gadget *source, const s16 x, const s16 y, const s16 vX, const s16 vY, const KeyCode keyCode) | |
const s16 | getX () const |
const s16 | getY () const |
const s16 | getVX () const |
const s16 | getVY () const |
const KeyCode | getKeyCode () const |
Event arguments passed to listeners when a Gadget object raises an event.
WoopsiUI::GadgetEventArgs::GadgetEventArgs | ( | Gadget * | source, |
const s16 | x, | ||
const s16 | y, | ||
const s16 | vX, | ||
const s16 | vY, | ||
const KeyCode | keyCode | ||
) | [inline] |
Constructor.
source | Pointer to the Gadget object that raised the event. |
x | The x co-ord of the event. |
y | The y co-ord of the event. |
vX | The x distance of the event. |
vY | The y distance of the event. |
keyCode | The keycode of the event. |
const KeyCode WoopsiUI::GadgetEventArgs::getKeyCode | ( | ) | const [inline] |
Get the keycode of the event.
const s16 WoopsiUI::GadgetEventArgs::getVX | ( | ) | const [inline] |
Get the x-axis stylus move distance of the event.
const s16 WoopsiUI::GadgetEventArgs::getVY | ( | ) | const [inline] |
Get the y-axis stylus move distance of the event.
const s16 WoopsiUI::GadgetEventArgs::getX | ( | ) | const [inline] |
Get the x co-ord of the event.
const s16 WoopsiUI::GadgetEventArgs::getY | ( | ) | const [inline] |
Get the y co-ord of the event.