XtBuildEventMask(3) XT FUNCTIONS XtBuildEventMask(3)

# [NAME](#NAME)

XtBuildEventMask - retrieve a widget's event mask

# [SYNTAX](#SYNTAX)

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

EventMask XtBuildEventMask(Widget *w*);

# [ARGUMENTS](#ARGUMENTS)

[*w*](#w)

Specifies the widget.

# [DESCRIPTION](#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](#SEE_ALSO)

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

libXt 1.3.1 X Version 11

---

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