logo
Free, Micro AI Code Reviews That Run on Git Commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, Micro AI Code Reviews That Run on Git Commit | Product Hunt git-lrc - Free, Micro AI Code Reviews That Run on Git Commit | Product Hunt

tickit_pen_bind_event, tickit_pen_unbind_event_id - add or remove event handlers

Description

tickit_pen_bind_event()  adds  a new event handler to the list of handlers stored by the pen, 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 pen 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_pen_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.

Name

       tickit_pen_bind_event, tickit_pen_unbind_event_id - add or remove event handlers

Return Value

tickit_pen_bind_event() returns an identifier integer. tickit_pen_unbind_event_id() returns no value.

See Also

tickit_pen_new(3), tickit_pen(7), tickit(7)

                                                                                        TICKIT_PEN_BIND_EVENT(3)

Synopsis

#include<tickit.h>typedefintTickitPenEventFn(TickitPen*tt,TickitEventFlagsflags,void*info,void*user);inttickit_pen_bind_event(TickitPen*tt,TickitPenEventev,TickitBindFlagsflags,TickitPenEventFn*fn,void*user);voidtickit_pen_unbind_event_id(TickitPen*tt,intid);

       Link with -ltickit.

See Also