XtGetActionList(3)
π XtGetActionList(3) π
part of the XT FUNCTIONS girlies β this is the XtGetActionList page, bestie, and she's serving
β¨ NAME β¨
XtGetActionList β obtain class action list π
πΈ SYNTAX πΈ
okay so first you gotta pull in the header, no cap:
#include <X11/Intrinsic.h>
void XtGetActionList(WidgetClass widget_class, XtActionList*
actions_return, Cardinal* num_actions_return);
three args, one function, zero drama (unless you forget to free, but we'll get there π)
π¦ ARGUMENTS π¦
widget_classβ the widget class whose actions are to be returned. like, which class's action list are we even talking about, bestie.actions_returnβ returns the action list. this is where she hands you the goods β¨num_actions_returnβ returns the number of action procedures declared by the class. yes, it counts them for you. iconic behavior.
π DESCRIPTION π
XtGetActionList returns the action table defined by the specified widget class. note the word specified β this table does not include actions defined by the superclasses. it's giving "just the class, nothing inherited, mind your business" π«Ά
so here's the vibe check, and listen close because this part matters:
ifwidget_classis not initialized, or is notcoreWidgetClassor a subclass thereof, or if the class does not define any actions, then*actions_returnwill beNULLand*num_actions_returnwill be zero. no action list for you, babes π
and if *actions_return is non-NULL? the client is responsible for freeing the table using XtFree when it is no longer needed. that's on YOU. not her. not the library. you. don't leak it, i'm literally begging π
π SEE ALSO π
- X Toolkit Intrinsics - C Language Interface
- Xlib - C Language X Interface
go read those if you want the full lore, iykyk π
π FINAL VIBES π
this page is living in X Version 11, libXt 1.3.1, and it's been that girl since forever β XtGetActionList, action list obtained, slay πβ¨ππ¦πΈπ
π«Ά
π¦ 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