tickit_window_bind_event - Man Page

add or remove event handlers

Synopsis

#include <tickit.h>

typedef int TickitWindowEventFn(TickitWindow *win, TickitEventFlags flags,
    void *info, void *user);

int tickit_window_bind_event(TickitWindow *win, TickitWindowEvent ev,
    TickitBindFlags flags,
    TickitWindowEventFn *fn, void *user);
void tickit_window_unbind_event_id(TickitWindow *win, int id);

Link with -ltickit.

Description

tickit_window_bind_event() adds a new event handler to the list of handlers stored by the window, and returns an integer to identify this handler. This handler will be invoked for occurrences of the event given by the ev argument. When invoked, func will be passed the window instance, a flags bitmask, a pointer to an event information structure whose type depends on the event, and the user data pointer it was installed with.

tickit_window_unbind_event_id() removes an event handler previously added, by the identifier returned when it was added, invoking it with the TICKIT_EV_UNBIND flag if it was installed with TICKIT_BIND_UNBIND.

Return Value

tickit_window_bind_event() returns an identifier integer. tickit_window_unbind_event_id() returns no value.

See Also

tickit_window_new(3), tickit_window_flush(3), tickit_window(7), tickit(7)

Referenced By

tickit(7), tickit_window(7), tickit_window_destroy(3), tickit_window_expose(3), tickit_window_flush(3), tickit_window_new(3), tickit_window_new_root(3), tickit_window_raise(3), tickit_window_set_focus_child_notify(3), tickit_window_set_geometry(3), tickit_window_show(3), tickit_window_take_focus(3).

The man page tickit_window_unbind_event_id(3) is an alias of tickit_window_bind_event(3).