---
name: "XtMapWidget"
section: "3"
platform: "linux"
package: "libxt"
version: "1.3.1-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/XtMapWidget"
---

# XtMapWidget(3)

map and unmap widgets

## NAME

XtMapWidget, XtSetMappedWhenManaged, XtUnmapWidget - map and unmap widgets

## SYNTAX

\#include \<X11/Intrinsic.h\>

void XtMapWidget(Widget *w*);

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

void XtUnmapWidget(Widget *w*);

## ARGUMENTS

- *map\_when\_managed*

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

- *w*

  Specifies the widget.

## 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

[XtManageChildren(3)](/XtManageChildren/3.md)\
 *X Toolkit Intrinsics - C Language Interface*\
 *Xlib - C Language X Interface*
