XtCallCallbacks(3)
β¨ XtCallCallbacks β process callbacks β¨
okay bestie, we're in XtCallCallbacks(3) territory, part of the XT FUNCTIONS crew π this is the trio that runs your callback lists and checks whether they even exist. let's get into it π«Ά
πΈ NAME πΈ
XtCallCallbacks, XtCallCallbackList, XtHasCallbacks β process callbacks β¨
π SYNTAX π
#include <X11/Intrinsic.h>
void XtCallCallbacks(Widget w, const char *callback_name, XtPointer call_data);
void XtCallCallbackList(Widget w, XtCallbackList callbacks, XtPointer call_data);
typedef enum {XtCallbackNoList, XtCallbackHasNone, XtCallbackHasSome}
XtCallbackStatus;
XtCallbackStatus XtHasCallbacks(Widget w, const char *callback_name);
like yes that's a lot of signatures but they're all cute and serving their own little purpose π
π ARGUMENTS π
callback_nameβ the callback list you wanna execute or check, specified by name. it's giving "which list, bestie?" πcall_dataβ a callback-list specific data value that gets passed to each and every callback procedure in the list. yes, all of them. no cap. β¨callbacksβ the callback list that's about to get executed π₯wβ the widget. the main character. obviously. π
π DESCRIPTION π
so, XtCallCallbacks calls each procedure that's registered in the specified widget's callback list. that's it, that's the whole vibe. it goes down the list and calls everybody. slay. π
then we have XtCallCallbackList β if callbacks is not NULL, it calls each of the callback procedures in the list, passing client data and call_data. β οΈ but bestie, hear me: the callbacks parameter must specify the contents of a widget or object resource declared with representation type XtRCallback. that's not optional, that's the rules. π«Ά
and finally XtHasCallbacks, the little detective of the group π it checks if the widget even has a callback list identified by callback_name:
- if the callback list does not exist,
XtHasCallbacksreturnsXtCallbackNoListβ it's giving nonexistent, ghosted, no list found π - if the callback list exists but is empty, it returns
XtCallbackHasNoneβ the list is there but it's just sitting there, empty, no thoughts, head empty π - if the callback list exists and has at least one callback registered, it returns
XtCallbackHasSomeβ okay periodt, we have callbacks, we are so back π₯
π¦ SEE ALSO π¦
XtAddCallback(3)- X Toolkit Intrinsics - C Language Interface
- Xlib - C Language X Interface
okay that's the whole page, you ate that π this was X Version 11, libXt 1.3.1, and yes she's iconic, she's XtCallCallbacks(3), go call some callbacks bestie ππ
π¦ where this page comes from
- alpine 3.22: libxt-doc 1.3.1-r0 Β· MIT
- alpine 3.23: libxt-doc 1.3.1-r0 Β· MIT
- alpine 3.24: libxt-doc 1.3.1-r0 Β· MIT
- arch rolling: libxt 1.3.1-1 Β· MIT AND HPND-sell-variant AND SMLNJ AND MIT-open-group AND X11
- fedora 43: libXt-devel 1.3.1-3.fc43 Β· MIT AND HPND-sell-variant AND SMLNJ AND MIT-open-group AND X11
- fedora 43: libXt-devel 1.3.1-3.fc43 Β· MIT AND HPND-sell-variant AND SMLNJ AND MIT-open-group AND X11
- fedora 44: libXt-devel 1.3.1-4.fc44 Β· MIT AND HPND-sell-variant AND SMLNJ AND MIT-open-group AND X11
- fedora 44: libXt-devel 1.3.1-4.fc44 Β· MIT AND HPND-sell-variant AND SMLNJ AND MIT-open-group AND X11
- opensuse-leap 16.0: libXt-devel 1.3.1-160000.3.2 Β· MIT
- opensuse-leap 16.0: libXt-devel 1.3.1-160000.3.2 Β· MIT
- opensuse-leap 16.0: libXt-devel 1.3.1-160000.3.2 Β· MIT
- opensuse-leap 16.0: libXt-devel 1.3.1-160000.3.2 Β· MIT
- Copyright (c) 1993, 1994 X Consortium
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms