GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  SOMOUSEBUTTONEVENT (3)

NAME

SoMouseButtonEvent — mouse button press and release events

CONTENTS

Inherits From
Synopsis
Description
Methods
See Also

INHERITS FROM

SoEvent > SoButtonEvent > SoMouseButtonEvent

SYNOPSIS

#include <Inventor/events/SoMouseButtonEvent.h>

#define SO_MOUSE_PRESS_EVENT(EVENT,BUTTON)
(SoMouseButtonEvent::isButtonPressEvent(EVENT,SoMouseButtonEvent::BUTTON))
#define SO_MOUSE_RELEASE_EVENT(EVENT,BUTTON)
(SoMouseButtonEvent::isButtonReleaseEvent(EVENT,SoMouseButtonEvent::BUTTON))

enum Button {     SoMouseButtonEvent::ANY    
                              SoMouseButtonEvent::ANY       Any button    
SoMouseButtonEvent::BUTTON1    
                              SoMouseButtonEvent::BUTTON1   First mouse button    
SoMouseButtonEvent::BUTTON2    
                              SoMouseButtonEvent::BUTTON2   Second mouse button    
SoMouseButtonEvent::BUTTON3    
                              SoMouseButtonEvent::BUTTON3   Third mouse button
}

Methods from class SoMouseButtonEvent:

       
                            
                             SoMouseButtonEvent()    
static SoType    
                            
static SoType                getClassTypeId()    
void    
                            
void                         setButton(SoMouseButtonEvent::Button b)    
SoMouseButtonEvent::Button    
                            
SoMouseButtonEvent::Button   getButton() const    
static SbBool    
                            
static SbBool                isButtonPressEvent(const SoEvent *e, SoMouseButtonEvent::Button whichButton)    
static SbBool    
                            
static SbBool                isButtonReleaseEvent(const SoEvent *e, SoMouseButtonEvent::Button whichButton)

Methods from class SoButtonEvent:

    void    
                      
void                   setState(SoButtonEvent::State s)    
SoButtonEvent::State    
                      
SoButtonEvent::State   getState() const

Methods from class SoEvent:

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

DESCRIPTION

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

METHODS

       
                            
                             SoMouseButtonEvent()
Constructor.

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

    void    
                            
void                         setButton(SoMouseButtonEvent::Button b)    
SoMouseButtonEvent::Button    
                            
SoMouseButtonEvent::Button   getButton() const
Set and get which mouse button generated the event.

    static SbBool    
                            
static SbBool                isButtonPressEvent(const SoEvent *e, SoMouseButtonEvent::Button whichButton)    
static SbBool    
                            
static SbBool                isButtonReleaseEvent(const SoEvent *e, SoMouseButtonEvent::Button whichButton)
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.

SEE ALSO

SoEvent, SoButtonEvent, SoKeyboardEvent, SoLocation2Event, SoMotion3Event, SoSpaceballButtonEvent, SoHandleEventAction, SoEventCallback, SoSelection, SoInteraction, SoXtDevice

Search for    or go to Top of page |  Section 3 |  Main Index


SOMOUSEBUTTONEVENT(3IV) (-->)

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.