Neonode zForce(TM) SDK

SnappingFilterMessage.h
Go to the documentation of this file.
1
8 #ifndef MESSAGE_SNAPPINGFILTERMESSAGE_SNAPPINGFILTERMESSAGE_H
9 #define MESSAGE_SNAPPINGFILTERMESSAGE_SNAPPINGFILTERMESSAGE_H 1
10
11 #ifndef ZFORCECOMMON_H
12 #error Please include "zForceCommon.h" before this file.
13 #endif // ZFORCECOMMON_H
14
20 struct SnappingFilterMessage
21 {
27 MessageType MessageType;
33 MessageGroup MessageGroup;
39 bool Error;
45 int ErrorCode;
51 uint64_t SerialNumber;
57 void ( * Destructor)(Message * self);
58 bool Enabled;
59 bool HasEnabled;
60 uint32_t LeftInner;
61 uint32_t LeftOuter;
62 bool HasLeft;
63 uint32_t RightInner;
64 uint32_t RightOuter;
65 bool HasRight;
66 uint32_t TopInner;
67 uint32_t TopOuter;
68 bool HasTop;
69 uint32_t BottomInner;
70 uint32_t BottomOuter;
71 bool HasBottom;
72 };
73
74 #ifdef __cplusplus
75 extern "C"
76 {
77 #endif // __cplusplus
78
94 DLLINTERNAL SnappingFilterMessage * SnappingFilterMessage_New (MessageGroup messageGroup, uint32_t size);
95
96 #ifdef __cplusplus
97 }
98 #endif // __cplusplus
99
100 #endif // MESSAGE_SNAPPINGFILTERMESSAGE_SNAPPINGFILTERMESSAGE_H
SnappingFilterMessage_New
DLLINTERNAL SnappingFilterMessage * SnappingFilterMessage_New(MessageGroup messageGroup, uint32_t size)
Internal constructor for SnappingFilterMessage.
Message
The main Message struct.
Definition: Message.h:21
SnappingFilterMessage
This structure represents an snapping filter message.
Definition: SnappingFilterMessage.h:21
SnappingFilterMessage::MessageType
MessageType MessageType
Definition: SnappingFilterMessage.h:27
SnappingFilterMessage::TopInner
uint32_t TopInner
Distance from edge to the inner snapping edge, top side of Touch Active Area.
Definition: SnappingFilterMessage.h:66
SnappingFilterMessage::MessageGroup
MessageGroup MessageGroup
Definition: SnappingFilterMessage.h:33
SnappingFilterMessage::RightOuter
uint32_t RightOuter
Distance from edge to the outer snapping edge, right side of Touch Active Area.
Definition: SnappingFilterMessage.h:64
SnappingFilterMessage::LeftInner
uint32_t LeftInner
Distance from edge to the inner snapping edge, left side of Touch Active Area.
Definition: SnappingFilterMessage.h:60
SnappingFilterMessage::BottomOuter
uint32_t BottomOuter
Distance from edge to the outer snapping edge, bottom side of Touch Active Area.
Definition: SnappingFilterMessage.h:70
SnappingFilterMessage::Destructor
void(* Destructor)(Message *self)
Definition: SnappingFilterMessage.h:57
SnappingFilterMessage::HasRight
bool HasRight
True when RightInner & RightOuter is valid.
Definition: SnappingFilterMessage.h:65
SnappingFilterMessage::SerialNumber
uint64_t SerialNumber
Definition: SnappingFilterMessage.h:51
SnappingFilterMessage::HasLeft
bool HasLeft
True when LeftInner & LeftOuter is valid.
Definition: SnappingFilterMessage.h:62
SnappingFilterMessage::HasTop
bool HasTop
True when TopInner & TopOuter is valid.
Definition: SnappingFilterMessage.h:68
SnappingFilterMessage::RightInner
uint32_t RightInner
Distance from edge to the inner snapping edge, right side of Touch Active Area.
Definition: SnappingFilterMessage.h:63
SnappingFilterMessage::Enabled
bool Enabled
True when Snapping Filter is enabled.
Definition: SnappingFilterMessage.h:58
SnappingFilterMessage::ErrorCode
int ErrorCode
Definition: SnappingFilterMessage.h:45
SnappingFilterMessage::HasEnabled
bool HasEnabled
True when Enabled is valid.
Definition: SnappingFilterMessage.h:59
SnappingFilterMessage::TopOuter
uint32_t TopOuter
Distance from edge to the outer snapping edge, top side of Touch Active Area.
Definition: SnappingFilterMessage.h:67
SnappingFilterMessage::LeftOuter
uint32_t LeftOuter
Distance from edge to the outer snapping edge, left side of Touch Active Area.
Definition: SnappingFilterMessage.h:61
SnappingFilterMessage::BottomInner
uint32_t BottomInner
Distance from edge to the inner snapping edge, bottom side of Touch Active Area.
Definition: SnappingFilterMessage.h:69
SnappingFilterMessage::Error
bool Error
Definition: SnappingFilterMessage.h:39
SnappingFilterMessage::HasBottom
bool HasBottom
True when BottomInner & BottomOuter is valid.
Definition: SnappingFilterMessage.h:71
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