XtAddEventHandler(3)



XtAddEventHandler

NAME
SYNTAX
ARGUMENTS
DESCRIPTION
SEE ALSO

NAME

XtAddEventHandler, XtAddRawEventHandler, XtRemoveEventHandler, XtRemoveRawEventHandler, XtInsertEventHandler, XtInsertRawEventHandler − add and remove event handlers

SYNTAX

void XtAddEventHandler(Widget w, EventMask event_mask, Boolean nonmaskable, XtEventHandler proc, XtPointer client_data);

void XtAddRawEventHandler(Widget w, EventMask event_mask, Boolean nonmaskable, XtEventHandler proc, XtPointer client_data);

void XtRemoveEventHandler(Widget w, EventMask event_mask, Boolean nonmaskable, XtEventHandler proc, XtPointer client_data);

void XtRemoveRawEventHandler(Widget w, EventMask event_mask, Boolean nonmaskable, XtEventHandler proc, XtPointer client_data);

void XtInsertEventHandler(Widget w, EventMask event_mask, Boolean nonmaskable, XtEventHandler proc, XtPointer client_data, XtListPosition position);

void XtInsertRawEventHandler(Widget w, EventMask event_mask, Boolean nonmaskable, XtEventHandler proc, XtPointer client_data, XtListPosition position);

typedef enum { XtListHead, XtListTail } XtListPosition;

ARGUMENTS

client_data

Specifies additional data to be passed to the client’s event handler.

event_mask

Specifies the event mask for which to call or unregister this procedure.

nonmaskable

Specifies a Boolean value that indicates whether this procedure should be called or removed on the nonmaskable events (GraphicsExpose, NoExpose, SelectionClear, SelectionRequest, SelectionNotify, ClientMessage, and MappingNotify).

proc

Specifies the procedure that is to be added or removed.

w

Specifies the widget for which this event handler is being registered.

position

Specifies when the event handler is to be called relative to other previously registered handlers.

DESCRIPTION

The XtAddEventHandler function registers a procedure with the dispatch mechanism that is to be called when an event that matches the mask occurs on the specified widget. If the procedure is already registered with the same client_data, the specified mask is ORed into the existing mask. If the widget is realized, XtAddEventHandler calls XSelectInput, if necessary.

The XtAddRawEventHandler function is similar to XtAddEventHandler except that it does not affect the widget’s mask and never causes an XSelectInput for its events. Note that the widget might already have those mask bits set because of other nonraw event handlers registered on it.

The XtRemoveRawEventHandler function stops the specified procedure from receiving the specified events. Because the procedure is a raw event handler, this does not affect the widget’s mask and never causes a call on XSelectInput.

XtInsertEventHandler is identical to XtAddEventHandler with the additional position argument. if position is XtListHead, the event handler is registered to that it will be called before any event handlers that were previously registered for the same widget. If position is XtListTail, the event handler is registered to be called after any previously registered event handlers. If the procedure is already registered with the same client_data value, the specified mask augments the existing mask and the procedure is repositioned in the list.

XtInsertRawEventHandler is similar to XtInsertEventHandler except that it does not modify the widget’s event mask and never causes an XSelectInput for the specified events. If the procedure is already registered with the same client_data value, the specified mask augments the existing mask and the procedure is repositioned in the list.

SEE ALSO

XtAppNextEvent(3Xt), XtBuildEventMask(3Xt)
X Toolkit Intrinsics − C Language Interface
Xlib − C Language X Interface



More Linux Commands

manpages/bmptoppm.1.html
bmptoppm(1) - replaced by bmptopnm - Linux manual page......
This program is part of Netpbm(1) bmptoppm was replaced in Netpbm 9.25 (March 2002) by bmptopnm(1) bmptopnm is backward compatible with bmptoppm except that it

manpages/pnmtofiasco.1.html
pnmtofiasco(1) - Convert PNM file to FIASCO compressed file
This program is part of Netpbm(1) pnmtofiasco compresses the named pbm, pgm, or ppm image files, or Standard Input if no file is named, and produces a FIASCO fi

manpages/Tk_SetWindowColormap.3.html
Tk_SetWindowColormap(3) - change window configuration or att
These procedures are analogous to the X library procedures with similar names, such as XConfigureWindow. Each one of the above procedures calls the correspondin

manpages/sane-epjitsu.5.html
sane-epjitsu(5) - SANE backend for Epson-based Fujitsu USB s
The sane-epjitsu library implements a SANE (Scanner Access Now Easy) backend which provides basic access the Fujitsu fi-60F and ScanSnap S300/S1300 scanners. HA

manpages/pcre_free_substring.3.html
pcre_free_substring(3) - Perl-compatible regular expressions
This is a convenience function for freeing the store obtained by a previous call to pcre[16|32]_get_substring() or pcre[16|32]_get_named_substring(). Its only a

manpages/btrfs-device.8.html
btrfs-device(8) control btrfs devices - Linux manual page...
btrfs device is used to control the btrfs devices, since btrfs can be used across several devices, btrfs device is used for multiple device management. DEVICE M

manpages/base.3pm.html
base(3pm) - Establish an ISA relationship with base classes
Unless you are using the fields pragma, consider this module discouraged in favor of the lighter-weight parent. Allows you to both load one or more modules, whi

manpages/dhclient-script.8.html
dhclient-script(8) - DHCP client network configuration scrip
The DHCP client network configuration script is invoked from time to time by dhclient-script(8). This script is used by the dhcp client to set each interfaces i

manpages/XtRemoveAllCallbacks.3.html
XtRemoveAllCallbacks(3) - add and remove callback procedures
The XtAddCallback function adds the specified callback procedure to the specified widgets callback list. The XtAddCallbacks add the specified list of callbacks

manpages/glRasterPos4i.3gl.html
glRasterPos4i(3gl) - specify the raster position for pixel o
The GL maintains a 3D position in window coordinates. This position, called the raster position, is used to position pixel and bitmap write operations. It is ma

manpages/Tcl_FSOpenFileChannel.3.html
Tcl_FSOpenFileChannel(3) - procedures to interact with any f
There are several reasons for calling the Tcl_FS API functions (e.g. Tcl_FSAccess and Tcl_FSStat) rather than calling system level functions like access and sta

manpages/auparse_get_num_fields.3.html
auparse_get_num_fields(3) - get the number of fields........
auparse_get_num_fields gets the number of fields in the current record of the current event. RETURN VALUE Returns 0 if an error occurs; otherwise, the number of





We can't live, work or learn in freedom unless the software we use is free.