Photon microGUI widgets library 0.6.0
PhEvent_t Struct Reference

#include <PhWidgetsNativeTypes.h>

Detailed Description

Data structure describing an event.

The PhEvent_t structure describes an event. It contains at least the following members:

Members

‍unsigned long type A predefined event type.

‍unsigned short subtype Further information about the event.

‍unsigned short processing_flags Flags used or set in processing the event. These flags are ignored when you emit an event, and always zero in a received event.

PhEventRegion_t emitter A PhEventRegion_t structure identifying the region that emitted the event.

PhEventRegion_t collector A PhEventRegion_t structure identifying the region that collected the event. When your process has many regions open, collector lets you distinguish which of its regions was involved.

‍unsigned short input_group The number of the input group. A value of 0 means there's no input group.

‍unsigned short flags Event-modifier flags.

‍unsigned long timestamp When the event was emitted, in milliseconds. The Photon Manager generates this member.

PhPoint_t translation A PhPoint_t structure that specifies the translation between the emitting region's origin and the collecting region's origin. An application uses this member to convert coordinates that are relative to the emitter's region to coordinates that are relative to the collector's region.

‍unsigned short num_rects The number of rectangles associated with the event.

‍unsigned short data_len The length of the data associated with the event. Since event data is optional, you can set data_len to 0 when there's no data.

Remarks
For more information see events of PhWidgets.
See also

The documentation for this struct was generated from the following file: