logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SoXtInputFocus — reports input focus change events

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.)

Inherits From

       SoXtDevice > SoXtInputFocus

Methods

SoXtInputFocus(EventMaskmask=SO_XT_ALL_FOCUS_EVENTS)~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.

Name

       SoXtInputFocus — reports input focus change events

See Also

SoXtDeviceSoXtInputFocus(3IV)()

Synopsis

#include<Inventor/Xt/devices/SoXtInputFocus.h>#defineSO_XT_ALL_FOCUS_EVENTS(EnterWindowMask|LeaveWindowMask)

          Methods from class SoXtInputFocus:

                         SoXtInputFocus(EventMaskmask=SO_XT_ALL_FOCUS_EVENTS)~SoXtInputFocus()

          Methods from class SoXtDevice:

     virtualvoidenable(Widgetw,XtEventHandlerf,XtPointerdata,Windowwin=NULL)virtualvoiddisable(Widgetw,XtEventHandlerf,XtPointerdata)virtualconstSoEvent*translateEvent(XAnyEvent*xevent)voidsetWindowSize(constSbVec2s&size)constSbVec2s&getWindowSize()const

See Also