XMCONTAINERREORDER(3)
β¨ XmContainerReorder β¨
okay so bestie, we're diving into the Motif library call XmContainerReorder and honestly? it's giving personal assistant for your widget children π«Ά she literally rearranges everybody and makes it look effortless.
πΈ NAME πΈ
XmContainerReorder β Container widget function to reorder children
like... the Container widget's very own glow-up manager for its kids π
π SYNOPSIS π
#include <Xm/Container.h>
void XmContainerReorder(
Widget container,
WidgetList widgets,
int num_widgets);
no cap, that's the whole spell. three args and she's off π
π DESCRIPTION π
okay so here's the tea, and it's actually SO clean: XmContainerReorder grabs the XmNpositionIndex constraint resources of every single widget you listed in widgets, sorts them into ascending order, and then writes the XmNpositionIndex constraint resources back into each widget in that brand-new order. that's it. that's the whole job. slay π₯
and plot twist: if the XmNlayoutType resource of Container is XmOUTLINE or XmDETAIL, XmContainerReorder will force a layout of all items. like she's not asking, she's rearranging the whole room and re-hanging every picture. main character energy fr fr π
the cast of characters (aka the arguments, bestie):
containerβ Specifies the Container widget ID. this is the parent, the one in charge, the group chat admin πwidgetsβ Specifies an array of widget children of container. the whole squad, lined up π¦num_widgetsβ Specifies the number of items in the widgets array. don't lie about the count, she WILL notice π
ngl if you want the complete definition of Container and its associated resources, go read XmContainer(3). that's the required reading, no skipping β¨
π RELATED π
XmContainer(3). yes queen, one link, and it's the important one π
and that's the whole vibe!! β¨ this lil' beauty comes to you straight out of the XmContainerReorder(library call) manual β that's the source tag on the tin, so you know exactly where she's from π«Ά go forth and reorder, bestie, you're gonna eat πππ
π¦ where this page comes from
- alpine 3.24: motif-doc 2.5.2-r0 Β· LGPL-2.1-or-later
- arch rolling: openmotif 2.3.8-4 Β· LGPL-2.1-or-later
- centos-stream 9: motif-devel 2.3.4-32.el9 Β· LGPLv2+
- centos-stream 9: motif-devel 2.3.4-32.el9 Β· LGPLv2+
- epel 10: motif-devel 2.3.8-2.el10_2 Β· LicenseRef-Callaway-LGPLv2+
- fedora 43: motif-devel 2.3.8-1.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 43: motif-devel 2.3.8-1.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 43: motif-devel 2.3.8-2.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 43: motif-devel 2.3.8-2.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 44: motif-devel 2.3.8-3.fc44 Β· LicenseRef-Callaway-LGPLv2+
- fedora 44: motif-devel 2.3.8-3.fc44 Β· LicenseRef-Callaway-LGPLv2+
- nixos 26.05: motif 2.3.8
- nixpkgs unstable: motif 2.3.8
- opensuse-leap 16.0: motif-devel 2.3.8-bp160.1.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: motif-devel 2.3.8-bp160.1.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: motif-devel 2.3.8-bp160.1.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: motif-devel 2.3.8-bp160.1.1 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms