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  -  SOBUTTONEVENT (3)

NAME

SoButtonEvent — base class for all button events

CONTENTS

Inherits From
Synopsis
Description
Methods
See Also

INHERITS FROM

SoEvent > SoButtonEvent

SYNOPSIS

#include <Inventor/events/SoButtonEvent.h>

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

Methods from class SoButtonEvent:

       
                      
                       SoButtonEvent()    
static SoType    
                      
static SoType          getClassTypeId()    
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

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.

METHODS

       
                      
                       SoButtonEvent()
Constructor.

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

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

SEE ALSO

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

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


SOBUTTONEVENT(3IV) (-->)

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