QEvent Struct Reference

Event structure. More...

#include <qevent.h>

Data Fields

QSignal sig
uint8_t dynamic_

Detailed Description

Event structure.

QEvent represents events without parameters and serves as the base structure for derivation of events with parameters.

The following example illustrates how to add an event parameter by derivation of the QEvent structure. Please note that the QEvent member super_ is defined as the FIRST member of the derived struct.

typedef struct QCalcEvtTag {
    QEvent super;                                    /* derives from QEvent */
    uint8_t keyId;                               /* ID of the key depressed */
} QCalcEvt;
See also:
Encapsulation and Single Inheritance in C

Definition at line 150 of file qevent.h.


Field Documentation

attributes of dynamic event (0 for static event)

Definition at line 152 of file qevent.h.

Referenced by QActive_get_(), QEQueue_get(), and QF_new_().

QSignal QEvent::sig

signal of the event instance

Definition at line 151 of file qevent.h.

Referenced by QActive_get_(), QEQueue_get(), QF_new_(), QF_tick(), and QFsm_dispatch().


The documentation for this struct was generated from the following file:
Generated on Tue Mar 16 19:38:12 2010 for QP/C by  doxygen 1.6.3