Neonode zForce(TM) SDK

OffsetMessage.h
Go to the documentation of this file.
1
8 #ifndef MESSAGE_OFFSETMESSAGE_OFFSETMESSAGE_H
9 #define MESSAGE_OFFSETMESSAGE_OFFSETMESSAGE_H 1
10
11 #ifndef ZFORCECOMMON_H
12 #error Please include "zForceCommon.h" before this file.
13 #endif // ZFORCECOMMON_H
14
20 struct OffsetMessage
21 {
27 MessageType MessageType;
33 MessageGroup MessageGroup;
39 bool Error;
45 int ErrorCode;
51 uint64_t SerialNumber;
57 void ( * Destructor)(Message * self);
58 uint32_t OffsetX;
59 bool HasOffsetX;
60 uint32_t OffsetY;
61 bool HasOffsetY;
62 };
63
64 #ifdef __cplusplus
65 extern "C"
66 {
67 #endif // __cplusplus
68
84 DLLINTERNAL OffsetMessage * OffsetMessage_New (MessageGroup messageGroup, uint32_t size);
85
86 #ifdef __cplusplus
87 }
88 #endif // __cplusplus
89
90 #endif // MESSAGE_OFFSETMESSAGE_OFFSETMESSAGE_H
OffsetMessage_New
DLLINTERNAL OffsetMessage * OffsetMessage_New(MessageGroup messageGroup, uint32_t size)
Internal constructor for OffsetMessage.
Message
The main Message struct.
Definition: Message.h:21
OffsetMessage
This structure represents an offset message.
Definition: OffsetMessage.h:21
OffsetMessage::OffsetX
uint32_t OffsetX
X Offset.
Definition: OffsetMessage.h:58
OffsetMessage::HasOffsetY
bool HasOffsetY
True when OffsetY is valid.
Definition: OffsetMessage.h:61
OffsetMessage::HasOffsetX
bool HasOffsetX
True when OffsetX is valid.
Definition: OffsetMessage.h:59
OffsetMessage::Destructor
void(* Destructor)(Message *self)
Definition: OffsetMessage.h:57
OffsetMessage::SerialNumber
uint64_t SerialNumber
Definition: OffsetMessage.h:51
OffsetMessage::Error
bool Error
Definition: OffsetMessage.h:39
OffsetMessage::ErrorCode
int ErrorCode
Definition: OffsetMessage.h:45
OffsetMessage::MessageType
MessageType MessageType
Definition: OffsetMessage.h:27
OffsetMessage::MessageGroup
MessageGroup MessageGroup
Definition: OffsetMessage.h:33
OffsetMessage::OffsetY
uint32_t OffsetY
Y Offset.
Definition: OffsetMessage.h:60
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