SoXtMouse(3IV)

SoXtMouse (SoXtMouse) - translates and reports events for the mouse

As shipped in IRIX 6.5.22. Added in IRIX 6.5.22.

NAME
     SoXtMouse (SoXtMouse) - translates and reports events for the mouse

INHERITS FROM
     SoXtDevice > SoXtMouse

SYNOPSIS
     #include <Inventor_c/Xt/devices/SoXtMouse.h>

     #define SO_XT_ALL_MOUSE_EVENTS
         (ButtonPressMask | ButtonReleaseMask |
          PointerMotionMask | ButtonMotionMask)

          Functions from class SoXtMouse:

     SoXtMouse *         SoXtMouseCreate(EventMask mask =
                              SO_XT_ALL_MOUSE_EVENTS)
     void                SoXtMouseDelete(SoXtMouse *this)

          Functions from class SoXtDevice:

     void                SoXtMouseEnable(SoXtMouse *this, Widget w,
                              XtEventHandler f, XtPointer data, Window win =
                              NULL)
     void                SoXtMouseDisable(SoXtMouse *this, Widget w,
                              XtEventHandler f, XtPointer data)
     const SoEvent *     SoXtMouseXlateEv(SoXtMouse *this, XAnyEvent *xevent)
     void                SoXtMouseSetWinSize(SoXtMouse *this, const SbVec2s
                              *size)
     const SbVec2s *     SoXtMouseGetWinSize(const SoXtMouse *this)


DESCRIPTION
     This class manages events generated by the mouse, including mouse motion
     (SoLocation2Event), and mouse button press and release events
     (SoMouseButtonEvent).

FUNCTIONS
     SoXtMouse *         SoXtMouseCreate(EventMask mask =
                              SO_XT_ALL_MOUSE_EVENTS)
     void                SoXtMouseDelete(SoXtMouse *this)
          Constructor and destructor. To the constructor, pass which mouse
          events you are interested in as a bitwise OR of the following
          values:

          ButtonPressMask - Mouse press events

          ButtonReleaseMask - Mouse release events

          PointerMotionMask - Mouse motion with no buttons

          ButtonMotionMask - Mouse motion with buttons pressed
          Or simply pass the defined value SO_XT_ALL_MOUSE_EVENTS for all
          mouse events. The device will only report events of this type for
          the widget it is enabled on.


SEE ALSO
     SoXtDevice, SoLocation2Event, SoMouseButtonEvent