XtInsertEventHandler(3)


HOME

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/git-gc.1.html
git-gc(1) - Cleanup unnecessary files and optimize the local
Runs a number of housekeeping tasks within the current repository, such as compressing file revisions (to reduce disk space and increase performance) and removi

manpages/inet_network.3.html
inet_addr(3) - Internet address manipulation routines.......
inet_aton() converts the Internet host address cp from the IPv4 numbers-and-dots notation into binary form (in network byte order) and stores it in the structur

manpages/attr_off.3ncurses.html
attr_off(3ncurses) - curses character and window attribute c
These routines manipulate the current attributes of the named window. The current attributes of a window apply to all characters that are written into the windo

manpages/Module::Build::Bundling.3pm.html
Module::Build::Bundling(3pm) - How to bundle Module::Build w
WARNING -- THIS IS AN EXPERIMENTAL FEATURE In order to install a distribution using Module::Build, users must have Module::Build available on their systems. The

manpages/strfile.1.html
strfile(1) create a random access file for storing strings b
strfile reads a file containing groups of lines separated by a line containing a single percent % sign (or other specified delimiter character) and creates a da

manpages/gnutls_x509_crt_deinit.3.html
gnutls_x509_crt_deinit(3) - API function - Linux man page...
This function will deinitialize a certificate structure. REPORTING BUGS Report bugs to <bug-gnutls@gnu.org>. GnuTLS home page: http://www.gnu.org/software/gnutl

manpages/pthread_attr_setguardsize.3.html
pthread_attr_setguardsize(3) - set/get guard size attribute
The pthread_attr_setguardsize() function sets the guard size attribute of the thread attributes object referred to by attr to the value specified in guardsize.

manpages/getgroups32.2.html
getgroups32(2) - get/set list of supplementary group IDs....
getgroups() returns the supplementary group IDs of the calling process in list. The argument size should be set to the maximum number of items that can be store

manpages/reboot.8.html
reboot(8) - Halt, power-off or reboot the machine (ManPage)
halt, poweroff, reboot may be used to halt, power-off or reboot the machine. OPTIONS The following options are understood: --help Print a short help text and ex

manpages/sha1.1ssl.html
sha1(1ssl) message digests (Commands - Linux manual page)...
The digest functions output the message digest of a supplied file or files in hexadecimal. The digest functions also generate and verify digital signatures usin

manpages/Tcl_GetChannelName.3.html
Tcl_GetChannelName(3) - procedures for creating and manipula
Tcl uses a two-layered channel architecture. It provides a generic upper layer to enable C and Tcl programs to perform input and output using the same APIs for

manpages/sigaddset.3.html
sigaddset(3) - POSIX signal set operations. - Linux man page
These functions allow the manipulation of POSIX signal sets. sigemptyset() initializes the signal set given by set to empty, with all signals excluded from the





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