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

SoButtonEvent — base class for all button events

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
       SoSpaceballButtonEvent. This class stores the down/up state of the button when the event occurred.

Inherits From

       SoEvent > SoButtonEvent

Methods

SoButtonEvent()
          Constructor.

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

     voidsetState(SoButtonEvent::States)SoButtonEvent::StategetState()const
          Set and get the state of the button.

Name

       SoButtonEvent — base class for all button events

See Also

SoEvent,SoKeyboardEvent,SoLocation2Event,SoMotion3Event,SoMouseButtonEvent,SoSpaceballButtonEvent,SoHandleEventAction,SoEventCallback,SoSelection,SoInteraction,SoXtDeviceSoButtonEvent(3IV)()

Synopsis

#include<Inventor/events/SoButtonEvent.h>enumState{SoButtonEvent::UP       Button up event
          SoButtonEvent::DOWN     Button down event
          SoButtonEvent::UNKNOWN  Button in unknown state
     }

          Methods from class SoButtonEvent:

                           SoButtonEvent()staticSoTypegetClassTypeId()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