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 
21 {
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
DLLINTERNAL SnappingFilterMessage * SnappingFilterMessage_New(MessageGroup messageGroup, uint32_t size)
Internal constructor for SnappingFilterMessage.
The main Message struct.
Definition: Message.h:21
This structure represents an snapping filter message.
Definition: SnappingFilterMessage.h:21
MessageType MessageType
Definition: SnappingFilterMessage.h:27
uint32_t TopInner
Distance from edge to the inner snapping edge, top side of Touch Active Area.
Definition: SnappingFilterMessage.h:66
MessageGroup MessageGroup
Definition: SnappingFilterMessage.h:33
uint32_t RightOuter
Distance from edge to the outer snapping edge, right side of Touch Active Area.
Definition: SnappingFilterMessage.h:64
uint32_t LeftInner
Distance from edge to the inner snapping edge, left side of Touch Active Area.
Definition: SnappingFilterMessage.h:60
uint32_t BottomOuter
Distance from edge to the outer snapping edge, bottom side of Touch Active Area.
Definition: SnappingFilterMessage.h:70
void(* Destructor)(Message *self)
Definition: SnappingFilterMessage.h:57
bool HasRight
True when RightInner & RightOuter is valid.
Definition: SnappingFilterMessage.h:65
uint64_t SerialNumber
Definition: SnappingFilterMessage.h:51
bool HasLeft
True when LeftInner & LeftOuter is valid.
Definition: SnappingFilterMessage.h:62
bool HasTop
True when TopInner & TopOuter is valid.
Definition: SnappingFilterMessage.h:68
uint32_t RightInner
Distance from edge to the inner snapping edge, right side of Touch Active Area.
Definition: SnappingFilterMessage.h:63
bool Enabled
True when Snapping Filter is enabled.
Definition: SnappingFilterMessage.h:58
int ErrorCode
Definition: SnappingFilterMessage.h:45
bool HasEnabled
True when Enabled is valid.
Definition: SnappingFilterMessage.h:59
uint32_t TopOuter
Distance from edge to the outer snapping edge, top side of Touch Active Area.
Definition: SnappingFilterMessage.h:67
uint32_t LeftOuter
Distance from edge to the outer snapping edge, left side of Touch Active Area.
Definition: SnappingFilterMessage.h:61
uint32_t BottomInner
Distance from edge to the inner snapping edge, bottom side of Touch Active Area.
Definition: SnappingFilterMessage.h:69
bool Error
Definition: SnappingFilterMessage.h:39
bool HasBottom
True when BottomInner & BottomOuter is valid.
Definition: SnappingFilterMessage.h:71
MessageGroup
Enum describing the different groups a message can belong to.
Definition: zForceTypes.h:134
MessageType
Enum describing the different message types that exists.
Definition: zForceTypes.h:104