Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
SoXtMouse(3IV)()					      SoXtMouse(3IV)()

NAME
       SoXtMouse -- translates and reports events for the mouse

INHERITS FROM
       SoXtDevice > SoXtMouse

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

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

	  Methods from class SoXtMouse:

			 SoXtMouse(EventMask mask = SO_XT_ALL_MOUSE_EVENTS)
			 ~SoXtMouse()

	  Methods from class SoXtDevice:

     virtual  void	       enable(Widget  w,  XtEventHandler  f, XtPointer
				   data, Window	win = NULL)
     virtual void	      disable(Widget w,	 XtEventHandler	 f,  XtPointer
				   data)
     virtual const SoEvent *  translateEvent(XAnyEvent *xevent)
     void		      setWindowSize(const SbVec2s &size)
     const SbVec2s &	      getWindowSize() const

DESCRIPTION
       This  class  manages events generated by	the mouse, including mouse mo-
       tion (SoLocation2Event),	and mouse button press and release events (So-
       MouseButtonEvent).

METHODS
			 SoXtMouse(EventMask mask = SO_XT_ALL_MOUSE_EVENTS)
			 ~SoXtMouse()
	  Constructor  and  destructor.	 To  the constructor, pass which mouse
	  events you are interested in as a bitwise OR of the  following  val-
	  ues:

	  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

							      SoXtMouse(3IV)()

NAME | INHERITS FROM | SYNOPSIS | DESCRIPTION | METHODS | SEE ALSO

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=SoXtMouse&sektion=3iv&manpath=FreeBSD+12.0-RELEASE+and+Ports>

home | help