XtGetSubresources(3)
π XtGetSubresources(3) β XT FUNCTIONS π
okay bestie, gather round, because we're doing subresources today and honestly? it's giving β¨organizedβ¨. this is part of the X Toolkit Intrinsics crew, and it's here to fetch subresources for you, no cap.
πΈ NAME πΈ
XtGetSubresources, XtVaGetSubresources β obtain subresources π«Ά
β¨ SYNTAX β¨
#include <X11/Intrinsic.h>
void XtGetSubresources(Widget w, XtPointer base, const char *name, const
char * class, XtResourceList resources, Cardinal num_resources,
ArgList args, Cardinal num_args);
void XtVaGetSubresources(Widget w, XtPointer base, const char *name,
const char *class, XtResourceList resources, Cardinal
num_resources, ...);
π ARGUMENTS π
argsβ the argument list that overrides whatever resources came out of the resource database. it's the "actually, no, use this" list πbaseβ the base address of the subpart data structure, aka where the resources get written. this is the drop-off spot, bestie πclassβ the class of the subpart.nameβ the name of the subpart.num_argsβ how many arguments are in that argument list.num_resourcesβ how many resources are in the resource list.resourcesβ the resource list for the subpart.wβ the widget that wants resources for a subpart, or that identifies the resource database to search π...β the variable arguments that override resources obtained from the resource database.
π DESCRIPTION π
so XtGetSubresources builds a name/class list, right? it constructs it from the application name/class, then the name/classes of all its ancestors, and then the widget itself. iconic lineage behavior fr fr π
then it appends the name/class pair you passed in to that list. and then β the main character moment β the resources are fetched from the argument list, the resource database, or the default values in the resource list. after that they get copied into the subpart record. that's the whole glow-up π¦
β οΈ one little thing, no cap: ifargsisNULL, thennum_argsmust be zero. but flip side β ifnum_argsis zero, the argument list is not referenced at all. so like... it's fine, it's just not looking at it π
π₯ SEE ALSO π₯
XtGetApplicationResources,XtVaGetApplicationResources- X Toolkit Intrinsics - C Language Interface
- Xlib - C Language X Interface
and that's the page, bestie!! this one's from X Version 11, libXt 1.3.1, and it's the XtGetSubresources(3) page β so if you ever forget, just remember: subresources obtained, vibes immaculate, periodt π
β¨π
π¦ 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 1993 X Consortium
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms