1TICKIT_TERM_BIND_EVENT(3)  Library Functions Manual  TICKIT_TERM_BIND_EVENT(3)
2
3
4

NAME

6       tickit_term_bind_event,  tickit_term_unbind_event_id  -  add  or remove
7       event handlers
8

SYNOPSIS

10       #include <tickit.h>
11
12       typedef int TickitTermEventFn(TickitTerm *tt, TickitEventFlags flags,
13           void *info, void *user);
14
15       int tickit_term_bind_event(TickitTerm *tt, TickitTermEvent ev,
16           TickitBindFlags flags,
17           TickitTermEventFn *fn, void *user);
18       void tickit_term_unbind_event_id(TickitTerm *tt, int id);
19
20       Link with -ltickit.
21

DESCRIPTION

23       tickit_term_bind_event() adds a new event handler to the list  of  han‐
24       dlers  stored  by the terminal, and returns an integer to identify this
25       handler. This handler will be invoked  for  occurrances  of  the  event
26       given  by the ev argument. When invoked, func will be passed the termi‐
27       nal instance, a flags bitmask, a pointer to an event information struc‐
28       ture  whose type depends on the event, and the user data pointer it was
29       installed with.
30
31       tickit_term_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_term_bind_event()     returns     an     identifier     integer.
37       tickit_term_unbind_event_id() returns no value.
38

SEE ALSO

40       tickit_term_new(3), tickit_term(7), tickit(7)
41
42
43
44                                                     TICKIT_TERM_BIND_EVENT(3)
Impressum