Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

soxtkeyboard(3iv) [debian man page]

SoXtKeyboard(3IV)()													       SoXtKeyboard(3IV)()

NAME
SoXtKeyboard -- translates and reports events for the keyboard INHERITS FROM
SoXtDevice > SoXtKeyboard SYNOPSIS
#include <Inventor/Xt/devices/SoXtKeyboard.h> #define SO_XT_ALL_KEYBOARD_EVENTS (KeyPressMask | KeyReleaseMask) Methods from class SoXtKeyboard: SoXtKeyboard(EventMask mask = SO_XT_ALL_KEYBOARD_EVENTS) ~SoXtKeyboard() Methods from class SoXtDevice: virtual void enable(Widget w, XtEventHandler f, XtPointer data, Window win = NULL) virtual void disable(Widget w, XtEventHandler f, XtPointer data) virtual const SoEvent * translateEvent(XAnyEvent *xevent) void setWindowSize(const SbVec2s &size) const SbVec2s & getWindowSize() const DESCRIPTION
This class manages events generated by the keyboard, including key press and release events (SoKeyboardEvent). METHODS
SoXtKeyboard(EventMask mask = SO_XT_ALL_KEYBOARD_EVENTS) ~SoXtKeyboard() Constructor and destructor. To the constructor, pass which keyboard events you are interested in as a bitwise OR of the following val- ues: KeyPressMask -- Key press events KeyReleaseMask -- Key release events Or simply pass the defined value SO_XT_ALL_KEYBOARD_EVENTS for all keyboard events. The device will only report events of this type for the widget it is enabled on. SEE ALSO
SoXtDevice, SoKeyboardEvent SoXtKeyboard(3IV)()

Check Out this Related Man Page

SoQtKeyboard(3) 						       SoQt							   SoQtKeyboard(3)

NAME
SoQtKeyboard - The SoQtKeyboard class is the keyboard input device abstraction. The SoQtKeyboard class is the glue between native keyboard handling and keyboard interaction with the Inventor scenegraph. SYNOPSIS
#include <Inventor/Qt/devices/SoQtKeyboard.h> Inherits SoQtDevice. Public Types enum Events { KEY_PRESS = 0x01, KEY_RELEASE = 0x02, ALL_EVENTS = KEY_PRESS | KEY_RELEASE } Public Member Functions SoQtKeyboard (int eventmask=ALL_EVENTS) virtual ~SoQtKeyboard (void) virtual void enable (QWidget *widget, SoQtEventHandler *handler, void *closure) virtual void disable (QWidget *widget, SoQtEventHandler *handler, void *closure) virtual const SoEvent * translateEvent (QEvent *event) Friends class SoQtKeyboardP class SoGuiKeyboardP Detailed Description The SoQtKeyboard class is the keyboard input device abstraction. The SoQtKeyboard class is the glue between native keyboard handling and keyboard interaction with the Inventor scenegraph. All components derived from the SoQtRenderArea have got an SoQtKeyboard device attached by default. Member Enumeration Documentation enum SoQtKeyboard::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 SoQtKeyboard::SoQtKeyboard (intmask = ALL_EVENTS) Constructor. The mask specifies which keyboard-related events to handle. Others will just be ignored. SoQtKeyboard::~SoQtKeyboard (void) [virtual] Destructor. Member Function Documentation void SoQtKeyboard::enable (QWidget *widget, SoQtEventHandler *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 SoQtDevice. void SoQtKeyboard::disable (QWidget *widget, SoQtEventHandler *handler, void *closure) [virtual] This method will disable the handler for the device. Implements SoQtDevice. const SoEvent * SoQtKeyboard::translateEvent (QEvent *event) [virtual] This method translates from native events to Open Inventor SoEvent events. Implements SoQtDevice. References SoQtDevice::getLastEventPosition(), KEY_PRESS, KEY_RELEASE, and SoQtDevice::setEventPosition(). Author Generated automatically by Doxygen for SoQt from the source code. Version 1.5.0 Sun Dec 11 2011 SoQtKeyboard(3)
Man Page