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

# XtBuildEventMask(3)

retrieve a widget's event mask

## NAME

XtBuildEventMask - retrieve a widget's event mask

## SYNTAX

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

EventMask XtBuildEventMask(Widget *w*);

## ARGUMENTS

- *w*

  Specifies the widget.

## DESCRIPTION

The **XtBuildEventMask** function returns the event mask representing the logical OR of all event masks for event handlers registered on the widget with **XtAddEventHandler** and all event translations, including accelerators, installed on the widget. This is the same event mask stored into the **XSetWindowAttributes** structure by **XtRealizeWidget** and sent to the server when event handlers and translations are installed or removed on the realized widget.

## SEE ALSO

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