XtMapWidget(3)
π XtMapWidget β bestie edition π
ok so this is the XtMapWidget(3) page from the XT FUNCTIONS girlies, and it's literally about mapping and unmapping widgets. yes bestie, showing and hiding your windows. it's giving window-management main character energy and we're obsessed. π¦
β¨ NAME β¨
XtMapWidget, XtSetMappedWhenManaged, XtUnmapWidget β the trio that maps and unmaps widgets π
πΈ SYNTAX πΈ
#include <X11/Intrinsic.h>
void XtMapWidget(Widget w);
void XtSetMappedWhenManaged(Widget w, Boolean map_when_managed);
void XtUnmapWidget(Widget w);
no cap, that's the whole vibe. three little functions, zero drama. β¨
π ARGUMENTS π
map_when_managedβ aBooleanvalue, and it's specifying the new value of themap_when_managedfield. it's the little switch that decides everything, iykyk.wβ specifies the widget. that's it. that's the widget. π«Ά
π DESCRIPTION π
ok so here's the tea, fr fr:
If the widget is realized and managed, and if the new value of map_when_managed is True, then XtSetMappedWhenManaged maps the window. π
If the widget is realized and managed, and if the new value of map_when_managed is False, it unmaps the window. π
XtSetMappedWhenManaged is a convenience function β and bestie, she's the fast one β it's equivalent to (but slightly faster than) calling XtSetValues and setting the new value for the mappedWhenManaged resource. π₯
And as an alternative to using XtSetMappedWhenManaged to control mapping, a client may set mapped_when_managed to False and use XtMapWidget and XtUnmapWidget explicitly. so you've got options, and honestly? both ate. π
bothrealizedANDmanagedhave to be true for any of this mapping/unmapping to happen β that's the vibe check the widget has to pass first. β
π SEE ALSO π
XtManageChildren(3)X Toolkit Intrinsics - C Language InterfaceXlib - C Language X Interface
and that's the whole page bestie, we're done here! π this little icon came from X Version 11, specifically libXt 1.3.1, and it's stamped with a date that's just as iconic as it is. slay, go map some widgets. π§ββοΈπ
π¦ 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