1TICKIT_WINDOW_BIND_EVENT(3)Library Functions ManualTICKIT_WINDOW_BIND_EVENT(3)
2
3
4

NAME

6       tickit_window_bind_event, tickit_window_unbind_event_id - add or remove
7       event handlers
8

SYNOPSIS

10       #include <tickit.h>
11
12       typedef int TickitWindowEventFn(TickitWindow *win, TickitEventFlags flags,
13           void *info, void *user);
14
15       int tickit_window_bind_event(TickitWindow *win, TickitWindowEvent ev,
16           TickitBindFlags flags,
17           TickitWindowEventFn *fn, void *user);
18       void tickit_window_unbind_event_id(TickitWindow *win, int id);
19
20       Link with -ltickit.
21

DESCRIPTION

23       tickit_window_bind_event() adds a new event handler to the list of han‐
24       dlers  stored  by  the  window, and returns an integer to identify this
25       handler. This handler will be invoked for occurances of the event given
26       by  the  ev  argument.  When  invoked,  func  will be passed the window
27       instance, a flags bitmask, a pointer to an event information  structure
28       whose  type  depends  on  the  event,  and the user data pointer it was
29       installed with.
30
31       tickit_window_unbind_event_id() removes  an  event  handler  previously
32       added,  by  the identifier returned when it was added, invoking it with
33       the TICKIT_EV_UNBIND flag if it was installed with TICKIT_BIND_UNBIND.
34

RETURN VALUE

36       tickit_window_bind_event() returns an identifier  integer.  tickit_win‐
37       dow_unbind_event_id() returns no value.
38

SEE ALSO

40       tickit_window_new(3),     tickit_window_flush(3),     tickit_window(7),
41       tickit(7)
42
43
44
45                                                   TICKIT_WINDOW_BIND_EVENT(3)
Impressum