WebRadioApp  0.1
_CoreEvent.h
Go to the documentation of this file.
1 /*******************************************************************************
2 *
3 * E M B E D D E D W I Z A R D P R O J E C T
4 *
5 * Copyright (c) TARA Systems GmbH
6 * written by Paul Banach and Manfred Schweyer
7 *
8 ********************************************************************************
9 *
10 * This file was generated automatically by Embedded Wizard Studio.
11 *
12 * Please do not make any modifications of this file! The modifications are lost
13 * when the file is generated again by Embedded Wizard Studio!
14 *
15 * The template of this heading text can be found in the file 'head.ewt' in the
16 * directory 'Platforms' of your Embedded Wizard installation directory. If you
17 * wish to adapt this text, please copy the template file 'head.ewt' into your
18 * project directory and edit the copy only. Please avoid any modifications of
19 * the original template file!
20 *
21 * Version : 10.00
22 * Profile : STM32H747
23 * Platform : STM.STM32.RGB565
24 *
25 *******************************************************************************/
26 
27 #ifndef _CoreEvent_H
28 #define _CoreEvent_H
29 
30 #ifdef __cplusplus
31  extern "C"
32  {
33 #endif
34 
35 #include "ewrte.h"
36 #if EW_RTE_VERSION != 0x000A0000
37  #error Wrong version of Embedded Wizard Runtime Environment.
38 #endif
39 
40 #include "ewgfx.h"
41 #if EW_GFX_VERSION != 0x000A0000
42  #error Wrong version of Embedded Wizard Graphics Engine.
43 #endif
44 
45 /* Forward declaration of the class Core::Event */
46 #ifndef _CoreEvent_
47  EW_DECLARE_CLASS( CoreEvent )
48 #define _CoreEvent_
49 #endif
50 
51 
52 /* The class Core::Event provides the base functionality for all events. The events
53  are used to feed GUI components with user inputs and notifications from the target
54  device, like an 'empty battery' event, etc. The events are dispatched and propagated
55  by the framework. The necessary infrastructure is provided in the classes Core::View
56  and Core::Group.
57  The class Core::Event doesn't define any particular behavior. It exists as an
58  empty base for all derived event classes like the Core::KeyEvent or Core::LanguageEvent. */
59 EW_DEFINE_FIELDS( CoreEvent, XObject )
60  EW_VARIABLE( Time, XUInt32 )
61  EW_VARIABLE( IsTimeExact, XBool )
62 EW_END_OF_FIELDS( CoreEvent )
63 
64 /* Virtual Method Table (VMT) for the class : 'Core::Event' */
65 EW_DEFINE_METHODS( CoreEvent, XObject )
66 EW_END_OF_METHODS( CoreEvent )
67 
68 /* 'C' function for method : 'Core::Event.Init()' */
69 void CoreEvent_Init( CoreEvent _this, XHandle aArg );
70 
71 /* The method 'GetCurrentTime()' returns the current time expressed in milliseconds.
72  The value can be used e.g. to calculate the time span elapsed since the event
73  was generated (see @Time). */
74 XUInt32 CoreEvent_GetCurrentTime( CoreEvent _this );
75 
76 #ifdef __cplusplus
77  }
78 #endif
79 
80 #endif /* _CoreEvent_H */
81 
82 /* Embedded Wizard */
ewrte.h
XHandle
unsigned long XHandle
Definition: ewrte.h:291
EW_END_OF_FIELDS
#define EW_END_OF_FIELDS(aClass)
Definition: ewrte.h:460
EW_DECLARE_CLASS
#define EW_DECLARE_CLASS(aClass)
Definition: ewrte.h:393
EW_VARIABLE
#define EW_VARIABLE(aName, aType)
Definition: ewrte.h:464
ewgfx.h
aArg
XRect CoreOutline aOutline XHandle aArg
Definition: _ApplicationApplication.h:151
_obj_XObject
Definition: ewrte.h:281
XBool
char XBool
Definition: ewrte.h:1592
EW_DEFINE_METHODS
#define EW_DEFINE_METHODS(aClass, aSuperClass)
Definition: ewrte.h:524
CoreEvent_GetCurrentTime
XUInt32 CoreEvent_GetCurrentTime(CoreEvent _this)
Definition: Core.c:5012
XUInt32
unsigned long XUInt32
Definition: ewrte.h:1590
CoreEvent_Init
void CoreEvent_Init(CoreEvent _this, XHandle aArg)
Definition: Core.c:5001
EW_END_OF_METHODS
#define EW_END_OF_METHODS(aClass)
Definition: ewrte.h:539
EW_DEFINE_FIELDS
#define EW_DEFINE_FIELDS(aClass, aSuperClass)
Definition: ewrte.h:451