ubit
Public Member Functions | Friends | List of all members
ubit::UKeyEvent Class Reference

keyboard events More...

#include <uevent.hpp>

Inheritance diagram for ubit::UKeyEvent:
ubit::UInputEvent ubit::UEvent ubit::UModifier

Public Member Functions

 UKeyEvent (const UCond &, UView *source, UEventFlow *, unsigned long time, int state, int keycode, short keychar)
 
virtual UKeyEventtoKeyEvent ()
 
short getKeyChar () const
 returns the typed character (in ISO Latin).
 
int getKeyCode () const
 returns the key code ( More...
 
virtual void setKeyChar (short keychar)
 changes the typed character (in ISO Latin). More...
 
virtual void setKeyCode (int keycode)
 changes the key code ( More...
 
- Public Member Functions inherited from ubit::UInputEvent
 UInputEvent (const UCond &, UView *source_view, UEventFlow *, unsigned long when, int state)
 
virtual UInputEventtoInputEvent ()
 dynamic cast: returns 'this' converted to the requested class or null.
 
virtual UElemgetSource () const
 returns the object that received this event.
 
UViewgetView () const
 returns the object's view that received this event. More...
 
UViewgetViewOf (const UBox &box) const
 returns the view of 'box' that (indirectly) received this event. More...
 
unsigned long getWhen () const
 returns the time when this event was produced.
 
virtual int getModifiers () const
 returns an ORed mask of mouse buttons and modifiers that are pressed. More...
 
bool isShiftDown () const
 
bool isControlDown () const
 
bool isMetaDown () const
 
bool isAltDown () const
 
bool isAltGraphDown () const
 
UWingetWin () const
 returns the hard window that received this event.
 
UViewgetWinView () const
 returns the view of the hard window that received this event.
 
UEventFlowgetFlow () const
 returns the Event Flow that received this event (for two-handed interaction or groupware). More...
 
UDispgetDisp () const
 returns the display that received this event. More...
 
bool dontCloseMenu () const
 impl.
 
- Public Member Functions inherited from ubit::UEvent
 UEvent (const UCond &c, UObject *source, UObject *aux=null)
 
const UCondgetCond () const
 returns the event condition that detected this event. More...
 
virtual UObjectgetAux () const
 returns auxilliary data.
 
virtual UMouseEventtoMouseEvent ()
 
virtual UWheelEventtoWheelEvent ()
 
virtual UViewEventtoViewEvent ()
 
virtual UPaintEventtoPaintEvent ()
 
virtual UResizeEventtoResizeEvent ()
 
virtual UTimerEventtoTimerEvent ()
 
virtual UWinEventtoWinEvent ()
 
virtual UMessageEventtoMessageEvent ()
 
virtual USysWMEventtoSysWMEvent ()
 
virtual UUserEventtoUserEvent ()
 
void setCond (const UCond &)
 

Friends

class UElem
 

Additional Inherited Members

- Static Public Member Functions inherited from ubit::UModifier
static void mapKeys (UDisp *)
 impl: init keys mapping.
 
- Static Public Attributes inherited from ubit::UModifier
static const int LeftButton
 
static const int RightButton
 
static const int MidButton
 
static const int ShiftDown
 
static const int ControlDown
 
static const int & MetaDown
 
static const int & AltDown
 
static const int AltGraphDown
 
- Protected Attributes inherited from ubit::UInputEvent
struct ubit::UInputEvent::Modes modes
 
int state
 
unsigned long when
 
UViewsource_view
 
UEventFloweflow
 
UElemevent_observer
 
- Protected Attributes inherited from ubit::UEvent
const UCondcond
 
UObjectsource
 
UObjectaux
 

Detailed Description

keyboard events

See also
UOn::kpress, UOn::krelease, UOn::ktype for explanations.

Member Function Documentation

§ getKeyCode()

int ubit::UKeyEvent::getKeyCode ( ) const
inline

returns the key code (

See also
UKey constants).

§ setKeyChar()

void UKeyEvent::setKeyChar ( short  keychar)
virtual

changes the typed character (in ISO Latin).

Note: this can be useful to hide actual text when typing a password etc.

§ setKeyCode()

void UKeyEvent::setKeyCode ( int  keycode)
virtual

changes the key code (

See also
UKey constants).

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