Neonode zForce(TM) SDK

ResolutionMessage.h
Go to the documentation of this file.
1
8 #ifndef MESSAGE_RESOLUTIONMESSAGE_RESOLUTIONMESSAGE_H
9 #define MESSAGE_RESOLUTIONMESSAGE_RESOLUTIONMESSAGE_H 1
10
11 #ifndef ZFORCECOMMON_H
12 #error Please include "zForceCommon.h" before this file.
13 #endif // ZFORCECOMMON_H
14
20 struct ResolutionMessage
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 X;
59 bool HasX;
60 uint32_t Y;
61 bool HasY;
62 uint32_t Z;
63 bool HasZ;
64 };
65
66 #ifdef __cplusplus
67 extern "C"
68 {
69 #endif // __cplusplus
70
86 DLLINTERNAL ResolutionMessage * ResolutionMessage_New (MessageGroup messageGroup, uint32_t size);
87
88 #ifdef __cplusplus
89 }
90 #endif // __cplusplus
91
92 #endif // MESSAGE_RESOLUTIONMESSAGE_RESOLUTIONMESSAGE_H
ResolutionMessage_New
DLLINTERNAL ResolutionMessage * ResolutionMessage_New(MessageGroup messageGroup, uint32_t size)
Internal constructor for ResolutionMessage.
Message
The main Message struct.
Definition: Message.h:21
ResolutionMessage
This structure represents a resolution message.
Definition: ResolutionMessage.h:21
ResolutionMessage::HasY
bool HasY
True when Y is valid.
Definition: ResolutionMessage.h:61
ResolutionMessage::Z
uint32_t Z
Z axis value.
Definition: ResolutionMessage.h:62
ResolutionMessage::HasZ
bool HasZ
True when Z is valid.
Definition: ResolutionMessage.h:63
ResolutionMessage::MessageType
MessageType MessageType
Definition: ResolutionMessage.h:27
ResolutionMessage::Y
uint32_t Y
Y axis value.
Definition: ResolutionMessage.h:60
ResolutionMessage::SerialNumber
uint64_t SerialNumber
Definition: ResolutionMessage.h:51
ResolutionMessage::Destructor
void(* Destructor)(Message *self)
Definition: ResolutionMessage.h:57
ResolutionMessage::MessageGroup
MessageGroup MessageGroup
Definition: ResolutionMessage.h:33
ResolutionMessage::HasX
bool HasX
True when X is valid.
Definition: ResolutionMessage.h:59
ResolutionMessage::Error
bool Error
Definition: ResolutionMessage.h:39
ResolutionMessage::X
uint32_t X
X axis value.
Definition: ResolutionMessage.h:58
ResolutionMessage::ErrorCode
int ErrorCode
Definition: ResolutionMessage.h:45
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