TICKIT_PEN_BIND_EVENT(3)
π TICKIT_PEN_BIND_EVENT π
okay so bestie, welcome to the TICKIT_PEN_BIND_EVENT(3) page from the Library Functions Manual β¨ this is the one about tickit_pen_bind_event and tickit_pen_unbind_event_id β aka adding and removing event handlers on a pen. no cap, it's giving very much "let me know when something happens to my pen" energy ποΈπ
πΈ NAME πΈ
tickit_pen_bind_event, tickit_pen_unbind_event_id β add or remove event handlers π
β¨ SYNOPSIS β¨
#include <tickit.h>
typedef int TickitPenEventFn(TickitPen *tt, TickitEventFlags flags,
void *info, void *user);
int tickit_pen_bind_event(TickitPen *tt, TickitPenEvent ev,
TickitBindFlags flags,
TickitPenEventFn *fn, void *user);
void tickit_pen_unbind_event_id(TickitPen *tt, int id);
Link with -ltickit.
π¦ DESCRIPTION π¦
tickit_pen_bind_event() is literally the "hey bestie, watch this for me" function π it adds a brand new event handler to the list of handlers that the pen is holding onto, and it hands you back an integer so you can identify that handler later. that handler is gonna get invoked every time the event given by the ev argument happens. and when it does get invoked, func gets passed:
- the pen instance ποΈ
- a
flagsbitmask βοΈ - a pointer to an event information structure (whose type depends on the event β so like, it depends ok??) π¦
- the user data pointer it was installed with π
tickit_pen_unbind_event_id() is the opposite vibe β it removes an event handler you added earlier, using the identifier that got returned when it was added. and if that handler was installed with TICKIT_BIND_UNBIND, then it gets invoked with the TICKIT_EV_UNBIND flag on its way out π it's not ghosting, it's saying a proper goodbye.
β RETURN VALUE β
tickit_pen_bind_event()returns an identifier integer π’tickit_pen_unbind_event_id()returns no value β it's avoidgirlie, she gives nothing back π
π«Ά SEE ALSO π«Ά
and that's the whole page, bestie π this was the TICKIT_PEN_BIND_EVENT(3) page, straight outta the Library Functions Manual, and that footer line at the bottom? yeah that's just her name again β TICKIT_PEN_BIND_EVENT(3) β same energy, different corner of the page πβ¨ stay iconic, go bind some events, and remember: unbind responsibly ππ¦π
π¦ where this page comes from
- alpine 3.24: libtickit-doc 0.4.6-r0 Β· MIT
- debian bookworm: libtickit-dev 0.4.3-1 Β· MIT
- debian trixie: libtickit-dev 0.4.3-2 Β· MIT
- fedora 43: libtickit-devel 0.4.5-2.fc43 Β· MIT
- fedora 43: libtickit-devel 0.4.5-2.fc43 Β· MIT
- fedora 44: libtickit-devel 0.4.5-3.fc44 Β· MIT
- fedora 44: libtickit-devel 0.4.5-3.fc44 Β· MIT
- nixos 26.05: libtickit 0.4.5
- nixpkgs unstable: libtickit 0.4.6
- ubuntu jammy: libtickit-dev 0.4.1-1 Β· MIT
- ubuntu noble: libtickit-dev 0.4.3-1.1build1 Β· MIT
- ubuntu questing: libtickit-dev 0.4.3-2
- ubuntu resolute: libtickit-dev 0.4.3-2build1 Β· MIT
- ubuntu stonking: libtickit-dev 0.4.3-2build1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms