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

SoMouseButtonEvent — mouse button press and release events

Description

SoMouseButtonEvent represents mouse button press and release events in the Inventor event model.

Inherits From

       SoEvent > SoButtonEvent > SoMouseButtonEvent

Methods

SoMouseButtonEvent()
          Constructor.

     staticSoTypegetClassTypeId()
          Return the type id for the SoMouseButtonEvent class.

     voidsetButton(SoMouseButtonEvent::Buttonb)SoMouseButtonEvent::ButtongetButton()const
          Set and get which mouse button generated the event.

     staticSbBoolisButtonPressEvent(constSoEvent*e,SoMouseButtonEvent::ButtonwhichButton)staticSbBoolisButtonReleaseEvent(constSoEvent*e,SoMouseButtonEvent::ButtonwhichButton)
          Returns  whether  the passed event is a mouse button press or release event of the passed button. When
          SoMouseButtonEvent::ANY is passed, this returns TRUE if the event represents a button press or release
          of any mouse button.

Name

       SoMouseButtonEvent — mouse button press and release events

See Also

SoEvent,SoButtonEvent,SoKeyboardEvent,SoLocation2Event,SoMotion3Event,SoSpaceballButtonEvent,SoHandleEventAction,SoEventCallback,SoSelection,SoInteraction,SoXtDeviceSoMouseButtonEvent(3IV)()

Synopsis

#include<Inventor/events/SoMouseButtonEvent.h>#defineSO_MOUSE_PRESS_EVENT(EVENT,BUTTON)(SoMouseButtonEvent::isButtonPressEvent(EVENT,SoMouseButtonEvent::BUTTON))#defineSO_MOUSE_RELEASE_EVENT(EVENT,BUTTON)(SoMouseButtonEvent::isButtonReleaseEvent(EVENT,SoMouseButtonEvent::BUTTON))enumButton{SoMouseButtonEvent::ANY      Any button
          SoMouseButtonEvent::BUTTON1  First mouse button
          SoMouseButtonEvent::BUTTON2  Second mouse button
          SoMouseButtonEvent::BUTTON3  Third mouse button
     }

          Methods from class SoMouseButtonEvent:

                                 SoMouseButtonEvent()staticSoTypegetClassTypeId()voidsetButton(SoMouseButtonEvent::Buttonb)SoMouseButtonEvent::ButtongetButton()conststaticSbBoolisButtonPressEvent(constSoEvent*e,SoMouseButtonEvent::ButtonwhichButton)staticSbBoolisButtonReleaseEvent(constSoEvent*e,SoMouseButtonEvent::ButtonwhichButton)

          Methods from class SoButtonEvent:

     voidsetState(SoButtonEvent::States)SoButtonEvent::StategetState()const

          Methods from class SoEvent:

     virtualSoTypegetTypeId()constSbBoolisOfType(SoTypetype)constvoidsetTime(SbTimet)SbTimegetTime()constvoidsetPosition(constSbVec2s&p)constSbVec2s&getPosition()constconstSbVec2s&getPosition(constSbViewportRegion&vpRgn)constconstSbVec2f&getNormalizedPosition(constSbViewportRegion&vpRgn)constvoidsetShiftDown(SbBoolisDown)voidsetCtrlDown(SbBoolisDown)voidsetAltDown(SbBoolisDown)SbBoolwasShiftDown()constSbBoolwasCtrlDown()constSbBoolwasAltDown()const

See Also