XtManageChildren(3)
๐ธ NAME ๐ธ
okay bestie, welcome to the XT FUNCTIONS corner of the X Toolkit Intrinsics manual ๐ โ this page is about XtManageChildren, XtManageChild, XtUnmanageChildren, XtUnmanageChild, XtChangeManagedSet, and XtIsManaged. their whole job? manage and unmanage children. that's the vibe. periodt. ๐
โจ SYNTAX โจ
#include <X11/Intrinsic.h>
typedef Widget *WidgetList;
void XtManageChildren(WidgetList children, Cardinal num_children);
void XtManageChild(Widget child);
void XtUnmanageChildren(WidgetList children, Cardinal num_children);
void XtUnmanageChild(Widget child);
void XtChangeManagedSet(WidgetList unmanage_children, Cardinal
num_unmanage_children, XtDoChangeProc do_change_proc, XtPointer
client_data, WidgetList manage_children, Cardinal
num_manage_children);
Boolean XtIsManaged(Widget widget);
no cap, that's the whole roster. ๐ซถ
๐ ARGUMENTS ๐
childโ specifies the child. just the one. the solo girl. ๐childrenโ specifies a list of child widgets. the whole friend group. ๐ฆnum_childrenโ specifies the number of children. yes, you have to count them yourself, i don't make the rules. ๐ขwidgetโ specifies the widget. ๐ธmanage_childrenโ specifies the list of widget children to add to the managed set. welcome to the group chat. โจnum_manage_childrenโ specifies the number of entries in themanage_childrenlist. ๐งฎunmanage_childrenโ specifies the list of widget children to remove from the managed set. it's giving banishment, lowkey. ๐num_unmanage_childrenโ specifies the number of entries in theunmanage_childrenlist. ๐ขdo_change_procโ specifies the post unmanage, pre manage hook procedure to invoke. the lil intermission between acts. ๐ญclient_dataโ specifies the client data to be passed to the hook procedure. lil gift bag for the hook. ๐
๐ DESCRIPTION ๐
๐ซ XtManageChildren ๐ซ
okay so XtManageChildren does the following:
- Issues an error if the children do not all have the same parent or if the parent is not a subclass of
compositeWidgetClass. ๐จ like, they ALL have to share one parent, bestie, no mixing families. - Returns immediately if the common parent is being destroyed; otherwise, for each unique child on the list,
XtManageChildrenignores the child if it already is managed or is being destroyed and marks it if not. ๐ so if the parent is actively getting destroyed, we just โ๏ธ out. - If the parent is realized and after all children have been marked, it makes some of the newly managed children viewable:
- Calls the
change_managedroutine of the widgets' parent. - Calls
XtRealizeWidgeton each previously unmanaged child that is unrealized. - Maps each previously unmanaged child that has
map_when_managedTrue. ๐บ๏ธโจ
- Calls the
Managing children is independent of the ordering of children and independent of creating and deleting children. the layout routine of the parent should consider children whose managed field is True and should ignore all other children. ๐ and note that some composite widgets, especially fixed boxes, call XtManageChild from their insert_child procedure. iykyk. ๐
If the parent widget is realized, its change_managed procedure is called to notify it that its set of managed children has changed. the parent can reposition and resize any of its children. it moves each child as needed by calling XtMoveWidget, which first updates the x and y fields and then calls XMoveWindow if the widget is realized. ๐
๐ซ XtManageChild ๐ซ
The XtManageChild function constructs a WidgetList of length one and calls XtManageChildren. that's it, that's the whole function โ a lil wrapper, an icon, a legend. ๐
๐ซ XtUnmanageChildren ๐ซ
The XtUnmanageChildren function performs the following:
- Issues an error if the children do not all have the same parent or if the parent is not a subclass of
compositeWidgetClass. ๐จ same rule as before, bestie. - Returns immediately if the common parent is being destroyed; otherwise, for each unique child on the list,
XtUnmanageChildrenperforms the following:- Ignores the child if it already is unmanaged or is being destroyed and marks it if not.
- If the child is realized, it makes it nonvisible by unmapping it. ๐ป poof, gone from view.
- Calls the
change_managedroutine of the widgets' parent after all children have been marked if the parent is realized.
XtUnmanageChildren does not destroy the children widgets. โ ๏ธ removing widgets from a parent's managed set is often a temporary banishment, and, some time later, you may manage the children again. so likeโฆ soft block, not a block block. ๐ซฃ
๐ซ XtUnmanageChild ๐ซ
The XtUnmanageChild function constructs a widget list of length one and calls XtUnmanageChildren. tiny. adorable. efficient. ๐
๐ซ XtChangeManagedSet ๐ซ
The XtChangeManagedSet function performs the following:
- Issues an error if the widgets specified in the
manage_childrenand theunmanage_childrenlists to no all have the same parent, or if that parent is not a subclass ofcompositeWidgetClass. ๐จ - Returns immediately if the common parent is being destroyed.
- If no
CompositeClassExtensionis defined, or aCompositeClassExtensionis defined but with anallows_change_managed_setfield with a value ofFalse, andXtChangeManagedSetwas invoked with a non-NULLdo_change_procprocedure thenXtChangeManagedSetperforms the following:- Calls
XtUnmanageChildren(unmanage_children,num_unmanage_children). - Calls the
do_change_procspecified. - Calls
XtManageChildren(manage_children,num_manage_children) and then returns immediately. ๐โโ๏ธ
- Calls
- Otherwise, if a
CompositeClassExtensionis defined with anallows_change_managed_setfield with a value ofTrue, or if noCompositeClassExtensionis defined, andXtChangeManagedSetwas invoked with aNULLdo_change_procprocedure, then the following is performed:- For each child on the
unmanage_childrenlist; if the child is already unmanaged or is being destroyed it is ignored, otherwise it is marked as being unmanaged and if it is realized it is made nonvisible by being unmapped. - If the
do_change_procprocedure is non-NULLthen it is invoked as specified. - For each child on the
manage_childrenlist; if the child is already managed or it is being destroyed it is ignored, otherwise it is marked as managed. ๐ฏ
- For each child on the
- If the parent is realized and after all children have been marked, the
change_managedmethod of the parent is invoked and subsequently some of the newly managed children are made viewable by:- Calling
XtRealizeWidgeton each of the previously unmanaged child that is unrealized. - Mapping each previously unmanaged child that has
map_when_managedTrue. ๐
- Calling
๐ซ XtIsManaged ๐ซ
The XtIsManaged function returns True if the specified widget is of class RectObj or any subclass thereof and is managed, or False otherwise. the vibe check of the widget world. โ
โ
๐ฎ SEE ALSO ๐ฎ
XtMapWidget(3)XtRealizeWidget(3)- X Toolkit Intrinsics - C Language Interface
- Xlib - C Language X Interface
and that's the page, bestie!! ๐ซถ this was X Version 11, libXt 1.3.1, and the page itself is XtManageChildren(3) โ go forth and manage your children responsibly, mwah ๐โจ๐ธ
๐ฆ 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