This behaviour sends a UTF16 keycode to the Keyboard in reaction to a ButtonUp-Event. More...
#include <GUIKeyboardBehaviour.h>
Public Member Functions | |
CGUIKeyboardBehaviour (const eC_UInt uiKeyCode=0, ObjectHandle_t eTargetObject=NO_HANDLE) | |
virtual eC_Bool | DoButtonUp (const eC_Value &vAbsX, const eC_Value &vAbsY) |
virtual eC_Bool | DoClick (const eC_Value &vAbsX, const eC_Value &vAbsY) |
void | HandleKey (const eC_UInt uiKeyCode) |
virtual void | ReadFromStream () |
virtual void | WriteToStream (const eC_Bool bWriteClassID=false) |
![]() | |
virtual | ~CGUIBehaviourDecorator () |
virtual CGUIBehaviourDecorator * | Clone () const |
virtual eC_Bool | IsCompositeBehaviour () const |
![]() | |
virtual eC_Bool | DoScale (const eC_Value &vDelta) |
virtual eC_Bool | DoUserEvent (CGUIEvent *const pEvent) |
virtual void | OnCreate () |
virtual void | OnDataPool (const DataPoolResource_t &eID) |
virtual void | OnDelete () |
virtual void | OnHide () |
virtual void | OnShow () |
virtual eC_Bool | DoLongClick (const eC_Value &vAbsX=eC_FromInt(-1), const eC_Value &vAbsY=eC_FromInt(-1)) |
virtual eC_Bool | DoDoubleClick (const eC_Value &vAbsX=eC_FromInt(-1), const eC_Value &vAbsY=eC_FromInt(-1)) |
virtual eC_Bool | DoButtonDown (const eC_Value &vAbsX=eC_FromInt(-1), const eC_Value &vAbsY=eC_FromInt(-1)) |
virtual eC_Bool | DoDrag (const eC_Value &vDeltaX=eC_FromInt(-1), const eC_Value &vDeltaY=eC_FromInt(-1), const eC_Value &vAbsX=eC_FromInt(-1), const eC_Value &vAbsY=eC_FromInt(-1)) |
virtual eC_Bool | DoDragEnd (const eC_Value &vAbsX=eC_FromInt(-1), const eC_Value &vAbsY=eC_FromInt(-1)) |
virtual eC_Bool | DoMouseEnter (const eC_Value &vAbsX=eC_FromInt(-1), const eC_Value &vAbsY=eC_FromInt(-1)) |
virtual eC_Bool | DoMouseLeave (const eC_Value &vAbsX=eC_FromInt(-1), const eC_Value &vAbsY=eC_FromInt(-1)) |
virtual eC_Bool | DoMouseMove (const eC_Value &vAbsX=eC_FromInt(-1), const eC_Value &vAbsY=eC_FromInt(-1)) |
virtual eC_Bool | FocusPrevious (CGUIObject *const pRefObj=NULL, const eC_Bool &bSubTreeOfRefObjDone=false) |
virtual eC_Bool | FocusNext (CGUIObject *const pRefObj=NULL, const eC_Bool &bSubTreeOfRefObjDone=false) |
virtual void | GetFocus () |
virtual void | LoseFocus () |
virtual eC_Bool | Decrease () |
virtual eC_Bool | Increase () |
virtual eC_Bool | DoKeyDown (const GUIKeyIdentifier_t &eKeyIdentifier, const eC_UInt &uiModifiers) |
virtual eC_Bool | DoKeyUp (const GUIKeyIdentifier_t &eKeyIdentifier, const eC_UInt &uiModifiers) |
virtual eC_Bool | DoChar (const eC_UInt &uiKey, const GUIKeyIdentifier_t &eKeyIdentifier, const eC_UInt &uiModifiers) |
virtual eC_Bool | DoScroll (const eC_Value &vAbsX, const eC_Value &vAbsY, const eC_Value &vDelta, const eC_Bool &bModifierActive) |
![]() | |
const eC_String & | GetXMLTag () const |
virtual void | ReadFromStream () |
void | SetXMLTag (const eC_String &kXMLTag) |
virtual void | WriteToStream (const eC_Bool bWriteClassID=false) |
Protected Attributes | |
ObjectHandle_t | m_eTargetObject |
ID of CGUIEdit which shall receive the keyboard's output. | |
eC_UInt | m_uiKeyCode |
Unicode of key which shall be sent to the keyboard (e.g 0x0041 for 'A') | |
Additional Inherited Members | |
![]() | |
static UUID_t | GenerateUUID () |
![]() | |
static const eC_Char | XMLTAG_BEHAVIOURCLASSID [] |
XML tag to be used when writing a behaviour class ID into a stream. | |
static const eC_Char | XMLTAG_BEHAVIOURCOUNT [] |
XML tag for count. | |
![]() | |
static const eC_Char | XMLTAG_CLASSVERSION [] |
![]() | |
CGUIBehaviourDecorator (CGUIObject *const pkObject=NULL) | |
CGUIBehaviourDecorator (const CGUIBehaviourDecorator &kSource) | |
virtual void | AssociatedObjectChanges (CGUIObject *const pkNewAssociatedObject) |
CGUIObject * | GetAssociatedObject () const |
![]() | |
eC_UInt | ReadStreamingHeader (const eC_UInt &uiClassVersion, const eC_UInt &uiClassMinVersion=0) const |
void | WriteStreamingFooter (const eC_Bool &bWriteClassID) const |
void | WriteStreamingHeader (const eC_Bool &bWriteClassID, const eC_Char *const pkClassIDTag, const eC_Int &iClassID, const eC_UInt &uiClassVersion) const |
This behaviour sends a UTF16 keycode to the Keyboard in reaction to a ButtonUp-Event.
Behaviour for use within an OnScreen-Keyboard / Virtual Keyboard.
CGUIKeyboardBehaviour::CGUIKeyboardBehaviour | ( | const eC_UInt | uiKeyCode = 0 , |
ObjectHandle_t | eTargetObject = NO_HANDLE |
||
) |
Constructor.
uiKeyCode | UTF16 KeyCode (e.g 0x0041 for 'A') which will be sent when this behaviour gets triggered. |
eTargetObject | target-object to receive key |
|
virtual |
Called when the mouse button or finger is released. The object under the mouse at the time of releasing will receive this event.
vAbsX | X-position in screen coordinates where the mouse was released. |
vAbsY | Y-position in screen coordinates where the mouse was released. |
Reimplemented from CGUIBehaviour.
|
virtual |
Called when the object receives a click event. A click can e.g., be the result of a mouse click, a finger press/release sequence on touchscreens, or be triggered by a GK_ACTION keyboard event.
vAbsX | X-position in screen coordinates where the click occurred |
vAbsY | Y-position in screen coordinates where the click occurred |
Reimplemented from CGUIBehaviour.
void CGUIKeyboardBehaviour::HandleKey | ( | const eC_UInt | uiKeyCode | ) |
Handle the given key and pass it to the target-object
uiKeyCode | key-code to handle |
|
virtual |
Reads attributes from the streaming file. Only for use with GUIFactoryManager.
Reimplemented from CGUIStreamableObject.
|
virtual |
Writes attributes to the streaming file. A CGUIStreamWriter has to be initialized.
bWriteClassID | This flag is used to switch writing of the class ID, leading and trailing tags. When implementing a new streamable object, check this flag. If it is true, first write the class ID, then continue with this object's attributes, and finally call the base class implementation with this flag set to false (this is the default). |
Reimplemented from CGUIStreamableObject.