carta
XtMainLoop(3)

XtMainLoop3

Query and process events and input

Part of XtNextEvent(3).

Usage

void XtNextEvent(XEvent *event_return);

Boolean XtPeekEvent(XEvent *event_return);

Boolean XtPending(void);

void XtProcessEvent(XtInputMask mask);

void XtMainLoop(void);

Arguments

event

Specifies a pointer to the event structure that is to be dispatched to the appropriate event handler.

event_return

Returns the event information to the specified event structure.

mask

Specifies what types of events to process. The mask is the bitwise inclusive OR of any combination of XtIMXEvent, XtIMTimer, XtIMAlternateInput, and XtIMSignal. As a convenience, the X Toolkit defines the symbolic name XtIMAll to be the bitwise inclusive OR of all event types.

Overview

XtNextEvent has been replaced by XtAppNextEvent.

XtPeekEvent has been replaced by XtAppPeekEvent.

XtPending has been replaced by XtAppPending.

XtProcessEvent has been replaced by XtAppProcessEvent.

XtMainLoop has been replaced by XtAppMainLoop.

History

  • Arch Linux 2026-11-01: the text shown here
  • Debian 13 (Trixie) to Debian 12 (Bookworm)
  • Debian 11 (Bullseye)
  • Debian 10 (Buster) to Debian 9 (Stretch)
  • Debian 8 (Jessie)
  • Debian 7 (Wheezy)
  • Debian 6.0 (Squeeze)
  • Debian 5.0 (Lenny)
  • Debian 4.0 (Etch)

From libxt 1.3.1-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.