MX_EVENT
Event types
(../include/depui/corepui.h)
(library depui : module corepui)
# define mx_event(o,t,d,l)
Send an event
This macro sends an event to an object.
(../include/depui/corepui.h)
(library depui : module corepui)
# define mx_eventmatch(e,o)
Check if two events match with type and destination
This macro is useful in window event handler to recognize events for
different objects.
(../include/depui/corepui.h)
(library depui : module corepui)
typedef void (*MX_HANDLER) (struct MX_WIN* win);
Event handler
Functions of this type are assoctaied with windows. These functions process
all events bieng passed to all objects within the window.
(../include/depui/corepui.h)
(library depui : module corepui)
void mx_win_handler(MX_WIN* win)
The default window handler function
(../include/depui/corepui.h)
!The default window handler
(../include/depui/corepui.c)
(library depui : module corepui)
void mx_default_handler(void)
The default window handler function
(../include/depui/corepui.h)
!The default window handler
(../include/depui/corepui.c)
If any object of a window is pressed, the window is brought to the top. (../include/depui/corepui.c)
This function passes the event to the desination object.
(../include/depui/corepui.c)
(library depui : module corepui)
unsigned int mx_emit(MX_EVENT event, const void* data, unsigned int datalen)
Emit an event to parent object
This function informs the current objects parent of an event. This is
indended for very local communication. This is used between scrollbars (MX_SLIDER)
and scrollabale areas (MX_SCROLL) to indicate movement of the scrollbar.
(../include/depui/corepui.c)
(library depui : module corepui)
unsigned int mx_inform(MX_EVENT event, const void* data, unsigned int datalen)
Inform parent window of event
This function passes an event to a parent window of the object/window
currently handling an event. This is intended for child windows to pass
events to thier parents without explicitly knowing who thier parent are.
(../include/depui/corepui.c)
(library depui : module corepui)
void mx_answer(unsigned int answer)
Set the answer to an event
This function sets the return value of the event. (../include/depui/corepui.c)
This function does not force an end to event handling, you have to do that by returning from the event handler. (../include/depui/corepui.c)
If this function is called twice during the handling of the event then
the first return value is forgotten and the last one is used.
(../include/depui/corepui.c)
(library depui : module corepui)
MX_EXPOSE events dont get passed to
the window handler. Instead they go directly to the object class
function.
(../include/depui/corepui.c)
(library depui : module corepui)
Generated by MXDOC 2.2 on Sun Feb 4 15:16:26 2007