WebRadioApp  0.1
_ApplicationClockScreen.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 _ApplicationClockScreen_H
28 #define _ApplicationClockScreen_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 #include "_ApplicationDigit.h"
46 #include "_CoreGroup.h"
47 #include "_CoreTime.h"
48 #include "_CoreTimer.h"
49 #include "_GraphicsArcPath.h"
50 #include "_ViewsFillPath.h"
51 #include "_ViewsText.h"
52 
53 /* Forward declaration of the class Application::ClockScreen */
54 #ifndef _ApplicationClockScreen_
55  EW_DECLARE_CLASS( ApplicationClockScreen )
56 #define _ApplicationClockScreen_
57 #endif
58 
59 /* Forward declaration of the class Core::DialogContext */
60 #ifndef _CoreDialogContext_
61  EW_DECLARE_CLASS( CoreDialogContext )
62 #define _CoreDialogContext_
63 #endif
64 
65 /* Forward declaration of the class Core::KeyPressHandler */
66 #ifndef _CoreKeyPressHandler_
67  EW_DECLARE_CLASS( CoreKeyPressHandler )
68 #define _CoreKeyPressHandler_
69 #endif
70 
71 /* Forward declaration of the class Core::LayoutContext */
72 #ifndef _CoreLayoutContext_
73  EW_DECLARE_CLASS( CoreLayoutContext )
74 #define _CoreLayoutContext_
75 #endif
76 
77 /* Forward declaration of the class Core::TaskQueue */
78 #ifndef _CoreTaskQueue_
79  EW_DECLARE_CLASS( CoreTaskQueue )
80 #define _CoreTaskQueue_
81 #endif
82 
83 /* Forward declaration of the class Core::View */
84 #ifndef _CoreView_
85  EW_DECLARE_CLASS( CoreView )
86 #define _CoreView_
87 #endif
88 
89 /* Forward declaration of the class Effects::Fader */
90 #ifndef _EffectsFader_
92 #define _EffectsFader_
93 #endif
94 
95 /* Forward declaration of the class Graphics::Canvas */
96 #ifndef _GraphicsCanvas_
97  EW_DECLARE_CLASS( GraphicsCanvas )
98 #define _GraphicsCanvas_
99 #endif
100 
101 
102 /* It is a component that displays a clock */
103 EW_DEFINE_FIELDS( ApplicationClockScreen, CoreGroup )
104  EW_OBJECT ( Timer, CoreTimer )
105  EW_OBJECT ( Time, CoreTime )
106  EW_OBJECT ( DotPath, GraphicsArcPath )
107  EW_OBJECT ( Date, ViewsText )
108  EW_OBJECT ( Dot1, ViewsFillPath )
109  EW_OBJECT ( Dot2, ViewsFillPath )
110  EW_OBJECT ( Digit0, ApplicationDigit )
111  EW_OBJECT ( Digit1, ApplicationDigit )
112  EW_OBJECT ( Digit2, ApplicationDigit )
113  EW_OBJECT ( Digit3, ApplicationDigit )
114  EW_OBJECT ( Digit4, ApplicationDigit )
115  EW_OBJECT ( Digit5, ApplicationDigit )
116 EW_END_OF_FIELDS( ApplicationClockScreen )
117 
118 /* Virtual Method Table (VMT) for the class : 'Application::ClockScreen' */
119 EW_DEFINE_METHODS( ApplicationClockScreen, CoreGroup )
120  EW_METHOD( initLayoutContext, void )( CoreRectView _this, XRect aBounds, CoreOutline
121  aOutline )
122  EW_METHOD( GetRoot, CoreRoot )( CoreView _this )
123  EW_METHOD( Draw, void )( CoreGroup _this, GraphicsCanvas aCanvas,
125  EW_METHOD( HandleEvent, XObject )( CoreView _this, CoreEvent aEvent )
126  EW_METHOD( CursorHitTest, CoreCursorHit )( CoreGroup _this, XRect aArea, XInt32
127  aFinger, XInt32 aStrikeCount, CoreView aDedicatedView, XSet aRetargetReason )
128  EW_METHOD( ArrangeView, XPoint )( CoreRectView _this, XRect aBounds, XEnum
129  aFormation )
130  EW_METHOD( MoveView, void )( CoreRectView _this, XPoint aOffset, XBool
131  aFastMove )
132  EW_METHOD( GetExtent, XRect )( CoreRectView _this )
133  EW_METHOD( ChangeViewState, void )( CoreGroup _this, XSet aSetState, XSet aClearState )
134  EW_METHOD( OnSetBounds, void )( CoreGroup _this, XRect value )
135  EW_METHOD( drawContent, void )( CoreGroup _this, GraphicsCanvas aCanvas,
137  EW_METHOD( OnSetFocus, void )( CoreGroup _this, CoreView value )
138  EW_METHOD( OnSetBuffered, void )( CoreGroup _this, XBool value )
139  EW_METHOD( OnSetOpacity, void )( CoreGroup _this, XInt32 value )
140  EW_METHOD( IsDialog, XBool )( CoreGroup _this, XBool aRecursive )
141  EW_METHOD( DispatchEvent, XObject )( CoreGroup _this, CoreEvent aEvent )
142  EW_METHOD( BroadcastEvent, XObject )( CoreGroup _this, CoreEvent aEvent, XSet
143  aFilter )
144  EW_METHOD( UpdateLayout, void )( CoreGroup _this, XPoint aSize )
145  EW_METHOD( UpdateViewState, void )( CoreGroup _this, XSet aState )
146  EW_METHOD( InvalidateArea, void )( CoreGroup _this, XRect aArea )
147 EW_END_OF_METHODS( ApplicationClockScreen )
148 
149 /* The method Init() is invoked automatically after the component has been created.
150  This method can be overridden and filled with logic containing additional initialization
151  statements. */
152 void ApplicationClockScreen_Init( ApplicationClockScreen _this, XHandle aArg );
153 
154 /* 'C' function for method : 'Application::ClockScreen.updateCurrentTime()' */
155 void ApplicationClockScreen_updateCurrentTime( ApplicationClockScreen _this, XObject
156  sender );
157 
158 #ifdef __cplusplus
159  }
160 #endif
161 
162 #endif /* _ApplicationClockScreen_H */
163 
164 /* Embedded Wizard */
ApplicationClockScreen_Init
void ApplicationClockScreen_Init(ApplicationClockScreen _this, XHandle aArg)
Definition: Application.c:3324
ApplicationClockScreen_updateCurrentTime
void ApplicationClockScreen_updateCurrentTime(ApplicationClockScreen _this, XObject sender)
Definition: Application.c:3333
ewrte.h
_CoreTimer.h
_CoreGroup.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
CoreCursorHit
XRect CoreOutline aOutline CoreCursorHit(CoreGroup _this, XRect aArea, XInt32 aFinger, XInt32 aStrikeCount, CoreView aDedicatedView, XSet aRetargetReason) EW_METHOD(ArrangeView
ewgfx.h
aBounds
XRect aBounds
Definition: _ApplicationClockScreen.h:120
_obj_XObject
Definition: ewrte.h:281
aOutline
XRect CoreOutline aOutline XRect CoreOutline aOutline
Definition: _CoreQuadView.h:109
XInt32
signed long XInt32
Definition: ewrte.h:1586
value
XRect CoreOutline aOutline XPoint value
Definition: _ViewsWarpView.h:137
_ViewsFillPath.h
XBool
char XBool
Definition: ewrte.h:1592
XEnum
unsigned long XEnum
Definition: ewrte.h:1593
aArg
XRect CoreOutline aOutline XHandle aArg
Definition: _ApplicationClockScreen.h:152
EW_DEFINE_METHODS
#define EW_DEFINE_METHODS(aClass, aSuperClass)
Definition: ewrte.h:524
XRect
Definition: ewrte.h:1639
_CoreTime.h
_GraphicsArcPath.h
EffectsFader
EffectsFader(EffectsShowHideTransition _this) EW_METHOD(CreateRestoreFader
XSet
unsigned long XSet
Definition: ewrte.h:1594
EW_METHOD
EW_METHOD(initLayoutContext, void)(CoreRectView _this
aOpacity
XRect CoreOutline aOutline GraphicsCanvas XRect XPoint XInt32 aOpacity
Definition: _CoreOutline.h:172
aClip
XRect CoreOutline aOutline GraphicsCanvas XRect aClip
Definition: _CoreOutline.h:171
sender
XRect CoreOutline aOutline XObject sender
Definition: _ApplicationRadioInterface.h:186
XPoint
Definition: ewrte.h:1616
aOffset
XRect CoreOutline aOutline GraphicsCanvas XRect XPoint aOffset
Definition: _CoreOutline.h:172
EW_OBJECT
#define EW_OBJECT(aName, aObjectClass)
Definition: ewrte.h:468
aCanvas
XRect CoreOutline aOutline GraphicsCanvas aCanvas
Definition: _CoreOutline.h:171
EW_END_OF_METHODS
#define EW_END_OF_METHODS(aClass)
Definition: ewrte.h:539
_ViewsText.h
_ApplicationDigit.h
aBlend
XRect CoreOutline aOutline GraphicsCanvas XRect XPoint XInt32 XBool aBlend
Definition: _CoreOutline.h:172
EW_DEFINE_FIELDS
#define EW_DEFINE_FIELDS(aClass, aSuperClass)
Definition: ewrte.h:451