man SoXtInputFocus () - reports input focus change events

NAME

SoXtInputFocus - reports input focus change events

INHERITS FROM

SoXtDevice > SoXtInputFocus

SYNOPSIS

#include <Inventor/Xt/devices/SoXtInputFocus.h> #define SO_XT_ALL_FOCUS_EVENTS (EnterWindowMask | LeaveWindowMask) Methods from class SoXtInputFocus: c } c } SoXtInputFocus(EventMask mask = SO_XT_ALL_FOCUS_EVENTS)

c } c } ~SoXtInputFocus() Methods from class SoXtDevice: c } c } enable(Widget w, XtEventHandler f, XtPointer data, Window win = NULL)

c } c } disable(Widget w, XtEventHandler f, XtPointer data)

c } c } translateEvent(XAnyEvent *xevent)

c } c } setWindowSize(const SbVec2s &size)

c } c } getWindowSize() const

DESCRIPTION

This class reports input focus change events (i.e. when the cursor crosses into or out of the window). There are no input focus events in Inventor, so this always returns NULL when asked to translate events. When this class is registered on a render area, the render area will receive X input focus change events. (This class is extensively employed by the viewer classes.)

METHODS

c } c } SoXtInputFocus(EventMask mask = SO_XT_ALL_FOCUS_EVENTS)

c } c } ~SoXtInputFocus()

Constructor and destructor. To the constructor, pass which input focus events you are interested in as a bitwise OR of the following values: EnterWindowMask - Input focus entered the window LeaveWindowMask - Input focus left the window Or simply pass the defined value SO_XT_ALL_FOCUS_EVENTS for all input focus events.

SEE ALSO

SoXtDevice