'\"! tbl | mmdoc '\"macro stdmacro .ie n \{\ . ds Cr \fB . ds Cb \fB .\} .el \{\ . ds Cr \f7 . ds Cb \f8 .\} .TH SoXtInputFocus(3IV) .SH NAME SoXtInputFocus \(em reports input focus change events .SH INHERITS FROM SoXtDevice > SoXtInputFocus .SH SYNOPSIS .ps -1 \*(Cr#include .sp \*(Cr#define SO_XT_ALL_FOCUS_EVENTS (EnterWindowMask | LeaveWindowMask) .sp .in 1i \f1Methods from class SoXtInputFocus: .in 0.5i .sp .ta 20m .in 1i+20n .ti 0.5i .ta 20m .ds Pt \*(Cr .ie \w'\*(Pt'>=20n \{\ .ne 3 \*(Pt .ti 0.5i \c\ \} .el\{\ .ne 2 \*(Pt \c\ \} \*(CbSoXtInputFocus\*(Cr(EventMask mask = SO_XT_ALL_FOCUS_EVENTS) .br .in 1i+20n .ti 0.5i .ta 20m .ds Pt \*(Cr .ie \w'\*(Pt'>=20n \{\ .ne 3 \*(Pt .ti 0.5i \c\ \} .el\{\ .ne 2 \*(Pt \c\ \} \*(Cb~SoXtInputFocus\*(Cr() .sp .in 1i \f1Methods from class SoXtDevice: .in 0.5i .sp .ta 25m .in 1i+25n .ti 0.5i .ta 25m .ds Pt \*(Crvirtual void .ie \w'\*(Pt'>=25n \{\ .ne 3 \*(Pt .ti 0.5i \c\ \} .el\{\ .ne 2 \*(Pt \c\ \} \*(Cbenable\*(Cr(Widget w, XtEventHandler f, XtPointer data, Window win = NULL) .br .in 1i+25n .ti 0.5i .ta 25m .ds Pt \*(Crvirtual void .ie \w'\*(Pt'>=25n \{\ .ne 3 \*(Pt .ti 0.5i \c\ \} .el\{\ .ne 2 \*(Pt \c\ \} \*(Cbdisable\*(Cr(Widget w, XtEventHandler f, XtPointer data) .br .in 1i+25n .ti 0.5i .ta 25m .ds Pt \*(Crvirtual const SoEvent * .ie \w'\*(Pt'>=25n \{\ .ne 3 \*(Pt .ti 0.5i \c\ \} .el\{\ .ne 2 \*(Pt \c\ \} \*(CbtranslateEvent\*(Cr(XAnyEvent *xevent) .br .in 1i+25n .ti 0.5i .ta 25m .ds Pt \*(Crvoid .ie \w'\*(Pt'>=25n \{\ .ne 3 \*(Pt .ti 0.5i \c\ \} .el\{\ .ne 2 \*(Pt \c\ \} \*(CbsetWindowSize\*(Cr(const SbVec2s &size) .br .in 1i+25n .ti 0.5i .ta 25m .ds Pt \*(Crconst SbVec2s & .ie \w'\*(Pt'>=25n \{\ .ne 3 \*(Pt .ti 0.5i \c\ \} .el\{\ .ne 2 \*(Pt \c\ \} \*(CbgetWindowSize\*(Cr() const .sp .SH 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.) .SH METHODS .ta 20m .in 1i+20n .ti 0.5i .ta 20m .ds Pt \*(Cr .ie \w'\*(Pt'>=20n \{\ .ne 3 \*(Pt .ti 0.5i \c\ \} .el\{\ .ne 2 \*(Pt \c\ \} \*(CbSoXtInputFocus\*(Cr(EventMask mask = SO_XT_ALL_FOCUS_EVENTS) .br .in 1i+20n .ti 0.5i .ta 20m .ds Pt \*(Cr .ie \w'\*(Pt'>=20n \{\ .ne 3 \*(Pt .ti 0.5i \c\ \} .el\{\ .ne 2 \*(Pt \c\ \} \*(Cb~SoXtInputFocus\*(Cr() .br .in 1i \f1Constructor and destructor. To the constructor, pass which input focus events you are interested in as a bitwise OR of the following values: .sp EnterWindowMask \(em Input focus entered the window .sp LeaveWindowMask \(em \&Input focus left the window .sp Or simply pass the defined value SO_XT_ALL_FOCUS_EVENTS for all input focus events. .sp .in 0.5i .SH SEE ALSO \*(CbSoXtDevice