XtMapWidget(3) XT FUNCTIONS XtMapWidget(3)

# [NAME](#NAME)

XtMapWidget, XtSetMappedWhenManaged, XtUnmapWidget - map and unmap widgets

# [SYNTAX](#SYNTAX)

#include &lt;X11/Intrinsic.h&gt;

void XtMapWidget(Widget *w*);

void XtSetMappedWhenManaged(Widget *w*, Boolean *map\_when\_managed*);

void XtUnmapWidget(Widget *w*);

# [ARGUMENTS](#ARGUMENTS)

[*map\_when\_managed*](#map_when_managed)

Specifies a Boolean value that indicates the new value of the map\_when\_managed field.

[*w*](#w)

Specifies the widget.

# [DESCRIPTION](#DESCRIPTION)

If the widget is realized and managed and if the new value of map\_when\_managed is **True**, **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 that is equivalent to (but slightly faster than) calling **XtSetValues** and setting the new value for the mappedWhenManaged resource. As an alternative to using **XtSetMappedWhenManaged** to control mapping, a client may set mapped\_when\_managed to **False** and use **XtMapWidget** and **XtUnmapWidget** explicitly.

# [SEE ALSO](#SEE_ALSO)

[XtManageChildren(3)](/man/os/libxt/XtManageChildren.3)  
*X Toolkit Intrinsics - C Language Interface*  
*Xlib - C Language X Interface*

libXt 1.3.1 X Version 11

---

Document: XtUnmapWidget(3) from libxt 1.3.1-r10 (Chainguard OS)
Source: https://gitlab.freedesktop.org/xorg/lib/libxt.git
