Neonode zForce(TM) SDK

TouchActiveAreaMessage.h
Go to the documentation of this file.
1
8 #ifndef MESSAGE_TOUCHACTIVEAREAMESSAGE_TOUCHACTIVEAREAMESSAGE_H
9 #define MESSAGE_TOUCHACTIVEAREAMESSAGE_TOUCHACTIVEAREAMESSAGE_H 1
10
11 #ifndef ZFORCECOMMON_H
12 #error Please include "zForceCommon.h" before this file.
13 #endif // ZFORCECOMMON_H
14
21 struct TouchActiveAreaMessage
22 {
28 MessageType MessageType;
34 MessageGroup MessageGroup;
40 bool Error;
46 int ErrorCode;
52 uint64_t SerialNumber;
58 void ( * Destructor)(Message * self);
59 uint32_t LowerBoundX;
60 uint32_t UpperBoundX;
61 bool HasX;
62 uint32_t LowerBoundY;
63 uint32_t UpperBoundY;
64 bool HasY;
65 };
66
67 #ifdef __cplusplus
68 extern "C"
69 {
70 #endif // __cplusplus
71
88 DLLINTERNAL TouchActiveAreaMessage * TouchActiveAreaMessage_New (MessageGroup messageGroup, uint32_t size);
89
90 #ifdef __cplusplus
91 }
92 #endif // __cplusplus
93
94 #endif // MESSAGE_TOUCHACTIVEAREAMESSAGE_TOUCHACTIVEAREAMESSAGE_H
TouchActiveAreaMessage_New
DLLINTERNAL TouchActiveAreaMessage * TouchActiveAreaMessage_New(MessageGroup messageGroup, uint32_t size)
Internal constructor for TouchActiveAreaMessage.
Message
The main Message struct.
Definition: Message.h:21
TouchActiveAreaMessage
This structure represents a touch active area message.
Definition: TouchActiveAreaMessage.h:22
TouchActiveAreaMessage::MessageGroup
MessageGroup MessageGroup
Definition: TouchActiveAreaMessage.h:34
TouchActiveAreaMessage::Destructor
void(* Destructor)(Message *self)
Definition: TouchActiveAreaMessage.h:58
TouchActiveAreaMessage::MessageType
MessageType MessageType
Definition: TouchActiveAreaMessage.h:28
TouchActiveAreaMessage::UpperBoundY
uint32_t UpperBoundY
End of the Touch Active Area Y axis.
Definition: TouchActiveAreaMessage.h:63
TouchActiveAreaMessage::SerialNumber
uint64_t SerialNumber
Definition: TouchActiveAreaMessage.h:52
TouchActiveAreaMessage::ErrorCode
int ErrorCode
Definition: TouchActiveAreaMessage.h:46
TouchActiveAreaMessage::HasX
bool HasX
True when LowerBoundX and UpperBoundX are valid.
Definition: TouchActiveAreaMessage.h:61
TouchActiveAreaMessage::LowerBoundX
uint32_t LowerBoundX
Start of the Touch Active Area X axis.
Definition: TouchActiveAreaMessage.h:59
TouchActiveAreaMessage::UpperBoundX
uint32_t UpperBoundX
End of the Touch Active Area X axis.
Definition: TouchActiveAreaMessage.h:60
TouchActiveAreaMessage::Error
bool Error
Definition: TouchActiveAreaMessage.h:40
TouchActiveAreaMessage::LowerBoundY
uint32_t LowerBoundY
Start of the Touch Active Area Y axis.
Definition: TouchActiveAreaMessage.h:62
TouchActiveAreaMessage::HasY
bool HasY
True when LowerBoundY and UpperBoundY are valid.
Definition: TouchActiveAreaMessage.h:64
MessageGroup
MessageGroup
Enum describing the different groups a message can belong to.
Definition: zForceTypes.h:134
MessageType
MessageType
Enum describing the different message types that exists.
Definition: zForceTypes.h:104