libvisual
0.5.0
|
Namespaces | |
namespace | LV |
Libvisual namespace. | |
Classes | |
struct | VisEventKeyboard |
Keyboard event. More... | |
struct | VisEventMouseMotion |
Mouse movement event. More... | |
struct | VisEventMouseButton |
Mouse button event. More... | |
struct | VisEventResize |
Resize event. More... | |
struct | VisEventNewSong |
Song change event. More... | |
struct | VisEventQuit |
Application quit event. More... | |
struct | VisEventVisibility |
Visibility event. More... | |
struct | VisEventParam |
Parameter change event. More... | |
struct | VisEventCustom |
Custom event. More... | |
struct | VisEvent |
Generic event. More... | |
Typedefs | |
typedef LV::EventQueue | VisEventQueue |
Enumerations | |
enum | VisEventType { VISUAL_EVENT_NOEVENT, VISUAL_EVENT_KEYDOWN, VISUAL_EVENT_KEYUP, VISUAL_EVENT_MOUSEMOTION, VISUAL_EVENT_MOUSEBUTTONDOWN, VISUAL_EVENT_MOUSEBUTTONUP, VISUAL_EVENT_NEWSONG, VISUAL_EVENT_RESIZE, VISUAL_EVENT_PARAM, VISUAL_EVENT_QUIT, VISUAL_EVENT_CUSTOM, VISUAL_EVENT_VISIBILITY } |
Types of events supported by LV. More... | |
enum | VisKeyState { VISUAL_KEY_DOWN, VISUAL_KEY_UP } |
Indicates the state of a key. More... | |
enum | VisMouseState { VISUAL_MOUSE_DOWN, VISUAL_MOUSE_UP } |
Indicates the state of a mouse button. More... | |
Functions | |
VisEvent * | visual_event_new_keyboard (VisKey keysym, VisKeyMod keymod, VisKeyState state) |
Creates a new keyboard event. More... | |
VisEvent * | visual_event_new_mousemotion (int dx, int dy) |
Creates a new mouse movement event. More... | |
VisEvent * | visual_event_new_mousebutton (int button, VisMouseState state, int x, int y) |
Creates a new mouse button event. More... | |
VisEvent * | visual_event_new_resize (int width, int height) |
Creates a resize event. More... | |
VisEvent * | visual_event_new_newsong (VisSongInfo *songinfo) |
Creates a new song change event. More... | |
VisEvent * | visual_event_new_param (void *param) |
Creates a new parameter change event. More... | |
VisEvent * | visual_event_new_quit (void) |
Creates a quit event. More... | |
VisEvent * | visual_event_new_visibility (int is_visible) |
Creates a new visibility event. More... | |
void | visual_event_copy (VisEvent *dest, VisEvent *src) |
Copies a VisEvent. More... | |
void | visual_event_free (VisEvent *event) |
Frees a VisEvent. More... | |
VisEvent * | visual_event_new_custom (int eid, int param_int, void *param_ptr) |
Creates a new custom event. More... | |
VisEventQueue * | visual_event_queue_new (void) |
void | visual_event_queue_free (VisEventQueue *eventqueue) |
void | visual_event_queue_add (VisEventQueue *eventqueue, VisEvent *event) |
int | visual_event_queue_poll (VisEventQueue *eventqueue, VisEvent *event) |
enum VisEventType |
Types of events supported by LV.
Definition at line 15 of file lv_event.h.
enum VisKeyState |
Indicates the state of a key.
Enumerator | |
---|---|
VISUAL_KEY_DOWN |
Key is pressed. |
VISUAL_KEY_UP |
Key is released. |
Definition at line 33 of file lv_event.h.
enum VisMouseState |
Indicates the state of a mouse button.
Enumerator | |
---|---|
VISUAL_MOUSE_DOWN |
Mouse button is pressed. |
VISUAL_MOUSE_UP |
Mouse button is released. |
Definition at line 41 of file lv_event.h.
void visual_event_copy | ( | VisEvent * | dest, |
VisEvent * | src | ||
) |
Copies a VisEvent.
dest | Event to copy to |
src | Event to copy |
Definition at line 147 of file lv_event_c.cpp.
void visual_event_free | ( | VisEvent * | event | ) |
VisEvent* visual_event_new_custom | ( | int | eid, |
int | param_int, | ||
void * | param_ptr | ||
) |
Creates a new custom event.
eid | Unique ID for type identification |
param_int | Optional integer value |
param_ptr | Optional data pointer |
Definition at line 134 of file lv_event_c.cpp.
VisEvent* visual_event_new_keyboard | ( | VisKey | keysym, |
VisKeyMod | keymod, | ||
VisKeyState | state | ||
) |
Creates a new keyboard event.
keysym | Key used |
keymod | Key modifier used |
state | State of key i.e. pressed or released |
Definition at line 33 of file lv_event_c.cpp.
VisEvent* visual_event_new_mousebutton | ( | int | button, |
VisMouseState | state, | ||
int | x, | ||
int | y | ||
) |
Creates a new mouse button event.
button | Mouse button that was used |
state | State of mouse button i.e. pressed or released |
x | X-coordinate of the mouse pointer |
y | Y-coordinate of the mouse pointer |
Definition at line 61 of file lv_event_c.cpp.
VisEvent* visual_event_new_mousemotion | ( | int | dx, |
int | dy | ||
) |
Creates a new mouse movement event.
dx | X displacement |
dy | Y displacement |
Definition at line 48 of file lv_event_c.cpp.
VisEvent* visual_event_new_newsong | ( | VisSongInfo * | songinfo | ) |
Creates a new song change event.
songinfo | Song information |
Definition at line 91 of file lv_event_c.cpp.
Referenced by LV::Actor::run().
VisEvent* visual_event_new_param | ( | void * | param | ) |
Creates a new parameter change event.
param | Param that has changed |
Definition at line 103 of file lv_event_c.cpp.
VisEvent* visual_event_new_quit | ( | void | ) |
VisEvent* visual_event_new_resize | ( | int | width, |
int | height | ||
) |
Creates a resize event.
width | New width |
height | New height |
Definition at line 79 of file lv_event_c.cpp.
Referenced by LV::Actor::video_negotiate().
VisEvent* visual_event_new_visibility | ( | int | is_visible | ) |
Creates a new visibility event.
is_visible | TRUE when visible, FALSE when not visible. |
Definition at line 124 of file lv_event_c.cpp.