SoWin  1.6.2
Coin3D GUI toolkit binding
Loading...
Searching...
No Matches
SoWinKeyboard Class Reference

The SoWinKeyboard class is the keyboard input device abstraction. More...

#include <Inventor/Win/devices/SoWinKeyboard.h>

Inheritance diagram for SoWinKeyboard:
SoWinDevice SoWinObject

Public Types

enum  Events { KEY_PRESS = 0x01 , KEY_RELEASE = 0x02 , ALL_EVENTS = KEY_PRESS | KEY_RELEASE }
 

Public Member Functions

 SoWinKeyboard (int eventmask=ALL_EVENTS)
 
virtual ~SoWinKeyboard (void)
 
virtual void disable (HWND widget, SoWinEventHandler *handler, void *closure)
 
virtual void enable (HWND widget, SoWinEventHandler *handler, void *closure)
 
virtual const SoEvent * translateEvent (MSG *event)
 
- Public Member Functions inherited from SoWinDevice
virtual ~SoWinDevice ()
 
SbVec2s getWindowSize (void) const
 
void setWindowSize (const SbVec2s size)
 
- Public Member Functions inherited from SoWinObject
virtual SoType getTypeId (void) const =0
 
SbBool isOfType (SoType type) const
 

Additional Inherited Members

- Static Public Member Functions inherited from SoWinDevice
static void initClasses (void)
 
- Static Public Member Functions inherited from SoWinObject
static SoType getClassTypeId (void)
 
static void init (void)
 
static void initClass (void)
 
- Protected Member Functions inherited from SoWinDevice
 SoWinDevice (void)
 
void addEventHandler (HWND, SoWinEventHandler *, void *)
 
void invokeHandlers (MSG *event)
 
void removeEventHandler (HWND, SoWinEventHandler *, void *)
 
void setEventPosition (SoEvent *event, int x, int y) const
 
- Static Protected Member Functions inherited from SoWinDevice
static SbVec2s getLastEventPosition (void)
 

Detailed Description

The SoWinKeyboard class is the keyboard input device abstraction.

The SoWinKeyboard class is the glue between native keyboard handling and keyboard interaction with the Inventor scene graph.

All components derived from the SoWinRenderArea have got an SoWinKeyboard device attached by default.

Member Enumeration Documentation

◆ Events

Enumeration over supported event types.

Enumerator
KEY_PRESS 

Maskbit for a keyboard button press event.

KEY_RELEASE 

Maskbit for a keyboard button release event.

ALL_EVENTS 

Combined bitmask for all possible events.

Constructor & Destructor Documentation

◆ SoWinKeyboard()

SoWinKeyboard::SoWinKeyboard ( int mask = ALL_EVENTS)

Constructor. The mask specifies which keyboard-related events to handle. Others will just be ignored.

◆ ~SoWinKeyboard()

SoWinKeyboard::~SoWinKeyboard ( void )
virtual

Destructor.

Member Function Documentation

◆ disable()

void SoWinKeyboard::disable ( HWND widget,
SoWinEventHandler * handler,
void * closure )
virtual

This method will disable the handler for the device.

Implements SoWinDevice.

◆ enable()

void SoWinKeyboard::enable ( HWND widget,
SoWinEventHandler * handler,
void * closure )
virtual

This method will enable the device for the widget.

handler is invoked with the closure argument when an event occur in widget.

Implements SoWinDevice.

◆ translateEvent()

const SoEvent * SoWinKeyboard::translateEvent ( MSG * event)
virtual

This method translates from native events to Open Inventor SoEvent events.

Implements SoWinDevice.


The documentation for this class was generated from the following files: