---
name: "XtMapWidget"
section: "3x"
platform: "linux"
package: "libxt-dev"
version: "4.3.0.dfsg.1-14sarge7"
release: "Debian 3.1 (Sarge)"
platforms: ["linux"]
url: "https://new.carta.tech/XtMapWidget/3x"
---

# XtMapWidget(3x)

map and unmap widgets

## NAME

XtMapWidget, XtSetMappedWhenManaged, XtUnmapWidget - map and unmap widgets

## SYNTAX

int XtMapWidget(Widget *w*);

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

int 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(3Xt)\
 *X Toolkit Intrinsics - C Language Interface*\
 *Xlib - C Language X Interface*
