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

FreeBSD Manual Pages

  
 
  

home | help
SoButtonEvent(3IV)()					  SoButtonEvent(3IV)()

NAME
       SoButtonEvent --	base class for all button events

INHERITS FROM
       SoEvent > SoButtonEvent

SYNOPSIS
       #include	<Inventor/events/SoButtonEvent.h>

     enum State	{
	  SoButtonEvent::UP	  Button up event
	  SoButtonEvent::DOWN	  Button down event
	  SoButtonEvent::UNKNOWN  Button in unknown state
     }

	  Methods from class SoButtonEvent:

			   SoButtonEvent()
     static SoType	   getClassTypeId()
     void		   setState(SoButtonEvent::State s)
     SoButtonEvent::State  getState() const

	  Methods from class SoEvent:

     virtual SoType	 getTypeId() const
     SbBool		 isOfType(SoType type) const
     void		 setTime(SbTime	t)
     SbTime		 getTime() const
     void		 setPosition(const SbVec2s &p)
     const SbVec2s &	 getPosition() const
     const SbVec2s &	 getPosition(const SbViewportRegion &vpRgn) const
     const  SbVec2f &	  getNormalizedPosition(const SbViewportRegion &vpRgn)
			      const
     void		 setShiftDown(SbBool isDown)
     void		 setCtrlDown(SbBool isDown)
     void		 setAltDown(SbBool isDown)
     SbBool		 wasShiftDown()	const
     SbBool		 wasCtrlDown() const
     SbBool		 wasAltDown() const

DESCRIPTION
       SoButtonEvent represents	generic	button press and release events	in the
       Inventor	 event	model. It is the base class for	device-specific	button
       events, namely SoKeyboardEvent, SoMouseButtonEvent, and SoSpaceballBut-
       tonEvent.  This	class  stores the down/up state	of the button when the
       event occurred.

METHODS
			   SoButtonEvent()
	  Constructor.

     static SoType	   getClassTypeId()
	  Return the type id for the SoButtonEvent class.

     void		   setState(SoButtonEvent::State s)
     SoButtonEvent::State  getState() const
	  Set and get the state	of the button.

SEE ALSO
       SoEvent,	SoKeyboardEvent, SoLocation2Event, SoMotion3Event, SoMouseBut-
       tonEvent, SoSpaceballButtonEvent, SoHandleEventAction, SoEventCallback,
       SoSelection, SoInteraction, SoXtDevice

							  SoButtonEvent(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=SoButtonEvent&sektion=3iv&manpath=FreeBSD+12.1-RELEASE+and+Ports>

home | help