Guiliani  Version 2.5 revision 7293 (documentation build 13)
GUIKeyboardBehaviour.h
1/*
2* Copyright (C) TES Electronic Solutions GmbH,
3* All Rights Reserved.
4* Contact: info@guiliani.de
5*
6* This file is part of the Guiliani HMI framework
7* for the development of graphical user interfaces on embedded systems.
8*/
9
10#ifndef GUIKEYBOARDBEHAVIOUR__H_
11#define GUIKEYBOARDBEHAVIOUR__H_
12
13#include "GUIBehaviourDecorator.h"
15
20{
21public:
26 CGUIKeyboardBehaviour(const eC_UInt uiKeyCode = 0, ObjectHandle_t eTargetObject = NO_HANDLE);
27
28 virtual eC_Bool DoButtonUp(const eC_Value& vAbsX, const eC_Value& vAbsY);
29
30 virtual eC_Bool DoClick(const eC_Value& vAbsX, const eC_Value& vAbsY);
31
35 void HandleKey(const eC_UInt uiKeyCode);
36
37#ifdef GUILIANI_STREAM_GUI
38 virtual void ReadFromStream();
39#endif
40#ifdef GUILIANI_WRITE_GUI
41 virtual void WriteToStream(const eC_Bool bWriteClassID = false);
42#endif
43
44protected:
47
49 eC_UInt m_uiKeyCode;
50};
51
52#endif
Helper Macros in Guiliani
ObjectHandle_t
List of object resource ids.
Definition: GUIObjectHandleResource.h:55
GUIBehaviourDecorator base class.
Definition: GUIBehaviourDecorator.h:78
This behaviour sends a UTF16 keycode to the Keyboard in reaction to a ButtonUp-Event.
Definition: GUIKeyboardBehaviour.h:20
ObjectHandle_t m_eTargetObject
ID of CGUIEdit which shall receive the keyboard's output.
Definition: GUIKeyboardBehaviour.h:46
virtual eC_Bool DoClick(const eC_Value &vAbsX, const eC_Value &vAbsY)
virtual eC_Bool DoButtonUp(const eC_Value &vAbsX, const eC_Value &vAbsY)
CGUIKeyboardBehaviour(const eC_UInt uiKeyCode=0, ObjectHandle_t eTargetObject=NO_HANDLE)
void HandleKey(const eC_UInt uiKeyCode)
virtual void ReadFromStream()
eC_UInt m_uiKeyCode
Unicode of key which shall be sent to the keyboard (e.g 0x0041 for 'A')
Definition: GUIKeyboardBehaviour.h:49
virtual void WriteToStream(const eC_Bool bWriteClassID=false)