WebRadioApp  0.1
_ApplicationRadioInterface.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 _ApplicationRadioInterface_H
28 #define _ApplicationRadioInterface_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 
46 #include "_ApplicationFFTViews.h"
47 #include "_ApplicationStations.h"
48 #include "_ApplicationVUMeter.h"
49 #include "_CoreGroup.h"
50 #include "_CoreOutline.h"
51 #include "_CorePropertyObserver.h"
53 #include "_EffectsBoolEffect.h"
54 #include "_EffectsPointEffect.h"
55 #include "_ViewsImage.h"
56 #include "_ViewsRectangle.h"
57 #include "_ViewsText.h"
59 #include "_WidgetSetPushButton.h"
61 
62 /* Forward declaration of the class Application::DeviceClass */
63 #ifndef _ApplicationDeviceClass_
64  EW_DECLARE_CLASS( ApplicationDeviceClass )
65 #define _ApplicationDeviceClass_
66 #endif
67 
68 /* Forward declaration of the class Application::RadioInterface */
69 #ifndef _ApplicationRadioInterface_
70  EW_DECLARE_CLASS( ApplicationRadioInterface )
71 #define _ApplicationRadioInterface_
72 #endif
73 
74 /* Forward declaration of the class Core::DialogContext */
75 #ifndef _CoreDialogContext_
76  EW_DECLARE_CLASS( CoreDialogContext )
77 #define _CoreDialogContext_
78 #endif
79 
80 /* Forward declaration of the class Core::KeyPressHandler */
81 #ifndef _CoreKeyPressHandler_
82  EW_DECLARE_CLASS( CoreKeyPressHandler )
83 #define _CoreKeyPressHandler_
84 #endif
85 
86 /* Forward declaration of the class Core::LayoutContext */
87 #ifndef _CoreLayoutContext_
88  EW_DECLARE_CLASS( CoreLayoutContext )
89 #define _CoreLayoutContext_
90 #endif
91 
92 /* Forward declaration of the class Core::TaskQueue */
93 #ifndef _CoreTaskQueue_
94  EW_DECLARE_CLASS( CoreTaskQueue )
95 #define _CoreTaskQueue_
96 #endif
97 
98 /* Forward declaration of the class Core::View */
99 #ifndef _CoreView_
100  EW_DECLARE_CLASS( CoreView )
101 #define _CoreView_
102 #endif
103 
104 /* Forward declaration of the class Effects::Fader */
105 #ifndef _EffectsFader_
107 #define _EffectsFader_
108 #endif
109 
110 /* Forward declaration of the class Graphics::Canvas */
111 #ifndef _GraphicsCanvas_
112  EW_DECLARE_CLASS( GraphicsCanvas )
113 #define _GraphicsCanvas_
114 #endif
115 
116 
117 /* This is the RadioInterface component where the user can iteract with the whole
118  application. */
119 EW_DEFINE_FIELDS( ApplicationRadioInterface, CoreGroup )
120  EW_VARIABLE( Device, ApplicationDeviceClass )
121  EW_OBJECT ( Background, ViewsImage )
122  EW_OBJECT ( Blackout, ViewsRectangle )
123  EW_OBJECT ( RadioInfoText, ViewsText )
124  EW_OBJECT ( ConnectionInfoText, ViewsText )
125  EW_OBJECT ( BufferInfoText, ViewsText )
126  EW_OBJECT ( VolumeText, ViewsText )
127  EW_OBJECT ( HardButtonEventHandler, CoreSystemEventHandler )
128  EW_OBJECT ( BoolEffect, EffectsBoolEffect )
129  EW_OBJECT ( HardButtonCounterObserver, CorePropertyObserver )
130  EW_OBJECT ( BufferInfoValue, WidgetSetHorizontalValueBar )
131  EW_OBJECT ( BufferValueObserver, CorePropertyObserver )
132  EW_OBJECT ( RadioInfoObserver, CorePropertyObserver )
133  EW_OBJECT ( ConnnectionInfoObserver, CorePropertyObserver )
134  EW_OBJECT ( StationInfoText, ViewsText )
135  EW_OBJECT ( StationInfoObserver, CorePropertyObserver )
136  EW_OBJECT ( FFTDrawObserver, CorePropertyObserver )
137  EW_OBJECT ( PointEffect, EffectsPointEffect )
138  EW_OBJECT ( VUMeterMarker, WidgetSetPushButton )
139  EW_OBJECT ( SeparateLRMarker, WidgetSetPushButton )
140  EW_OBJECT ( OverlayLRMarker, WidgetSetPushButton )
141  EW_OBJECT ( StationsMarker, WidgetSetPushButton )
142  EW_OBJECT ( VolumeSlider, WidgetSetVerticalSlider )
143  EW_OBJECT ( Outline, CoreOutline )
144  EW_OBJECT ( VUMeter, ApplicationVUMeter )
145  EW_OBJECT ( FFTViews, ApplicationFFTViews )
146  EW_OBJECT ( Stations, ApplicationStations )
147  EW_OBJECT ( ClockScreen, ApplicationClockScreen )
148  EW_OBJECT ( MetaInfoText, ViewsText )
149  EW_OBJECT ( MetaInfoObserver, CorePropertyObserver )
150  EW_OBJECT ( VUMeterDrawObserver, CorePropertyObserver )
151 EW_END_OF_FIELDS( ApplicationRadioInterface )
152 
153 /* Virtual Method Table (VMT) for the class : 'Application::RadioInterface' */
154 EW_DEFINE_METHODS( ApplicationRadioInterface, CoreGroup )
155  EW_METHOD( initLayoutContext, void )( CoreRectView _this, XRect aBounds, CoreOutline
156  aOutline )
157  EW_METHOD( GetRoot, CoreRoot )( CoreView _this )
158  EW_METHOD( Draw, void )( CoreGroup _this, GraphicsCanvas aCanvas,
160  EW_METHOD( HandleEvent, XObject )( CoreView _this, CoreEvent aEvent )
161  EW_METHOD( CursorHitTest, CoreCursorHit )( CoreGroup _this, XRect aArea, XInt32
162  aFinger, XInt32 aStrikeCount, CoreView aDedicatedView, XSet aRetargetReason )
163  EW_METHOD( ArrangeView, XPoint )( CoreRectView _this, XRect aBounds, XEnum
164  aFormation )
165  EW_METHOD( MoveView, void )( CoreRectView _this, XPoint aOffset, XBool
166  aFastMove )
167  EW_METHOD( GetExtent, XRect )( CoreRectView _this )
168  EW_METHOD( ChangeViewState, void )( CoreGroup _this, XSet aSetState, XSet aClearState )
169  EW_METHOD( OnSetBounds, void )( CoreGroup _this, XRect value )
170  EW_METHOD( drawContent, void )( CoreGroup _this, GraphicsCanvas aCanvas,
172  EW_METHOD( OnSetFocus, void )( CoreGroup _this, CoreView value )
173  EW_METHOD( OnSetBuffered, void )( CoreGroup _this, XBool value )
174  EW_METHOD( OnSetOpacity, void )( CoreGroup _this, XInt32 value )
175  EW_METHOD( IsDialog, XBool )( CoreGroup _this, XBool aRecursive )
176  EW_METHOD( DispatchEvent, XObject )( CoreGroup _this, CoreEvent aEvent )
177  EW_METHOD( BroadcastEvent, XObject )( CoreGroup _this, CoreEvent aEvent, XSet
178  aFilter )
179  EW_METHOD( UpdateLayout, void )( CoreGroup _this, XPoint aSize )
180  EW_METHOD( UpdateViewState, void )( CoreGroup _this, XSet aState )
181  EW_METHOD( InvalidateArea, void )( CoreGroup _this, XRect aArea )
182 EW_END_OF_METHODS( ApplicationRadioInterface )
183 
184 /* 'C' function for method : 'Application::RadioInterface.onHardButtonEvent()' */
185 void ApplicationRadioInterface_onHardButtonEvent( ApplicationRadioInterface _this,
187 
188 /* 'C' function for method : 'Application::RadioInterface.onCounterEvent()' */
189 void ApplicationRadioInterface_onCounterEvent( ApplicationRadioInterface _this,
190  XObject sender );
191 
192 /* This method updates the buffer value in the Radio interface */
193 void ApplicationRadioInterface_onBufferValueEvent( ApplicationRadioInterface _this,
194  XObject sender );
195 
196 /* This method updates the radio information in the Radio interface */
197 void ApplicationRadioInterface_onRadioInfoEvent( ApplicationRadioInterface _this,
198  XObject sender );
199 
200 /* This method updates the connection information in the Radio interface */
201 void ApplicationRadioInterface_onConnectionInfoEvent( ApplicationRadioInterface _this,
202  XObject sender );
203 
204 /* This method updates the station information in the Radio interface */
205 void ApplicationRadioInterface_onStationInfoEvent( ApplicationRadioInterface _this,
206  XObject sender );
207 
208 /* This method updates the volume value in the Radio interface */
209 void ApplicationRadioInterface_onUpdateVolume( ApplicationRadioInterface _this,
210  XObject sender );
211 
212 /* This method performs the FFT drawings. */
213 void ApplicationRadioInterface_onFFTDrawEvent( ApplicationRadioInterface _this,
214  XObject sender );
215 
216 /* This method is called by the Push buttons (Stations, Overly L&R, Sperate L&R,
217  VU-Meter) when they are pressed and it performs the selection of the respective
218  screen. */
219 void ApplicationRadioInterface_onScreensEvent( ApplicationRadioInterface _this,
220  XObject sender );
221 
222 /* This method updates the metainformation in the Radio interface */
223 void ApplicationRadioInterface_onMetaInfoEvent( ApplicationRadioInterface _this,
224  XObject sender );
225 
226 /* This method performs the volume units display */
227 void ApplicationRadioInterface_onVUMeterDrawEvent( ApplicationRadioInterface _this,
228  XObject sender );
229 
230 #ifdef __cplusplus
231  }
232 #endif
233 
234 #endif /* _ApplicationRadioInterface_H */
235 
236 /* Embedded Wizard */
VUMeter
void VUMeter(XFloat *angle_L, XFloat *angle_R)
Volume unit meter.
Definition: DeviceDriver.cpp:614
CoreCursorHit
XRect CoreOutline aOutline CoreCursorHit(CoreGroup _this, XRect aArea, XInt32 aFinger, XInt32 aStrikeCount, CoreView aDedicatedView, XSet aRetargetReason) EW_METHOD(ArrangeView
ewrte.h
ApplicationRadioInterface_onVUMeterDrawEvent
void ApplicationRadioInterface_onVUMeterDrawEvent(ApplicationRadioInterface _this, XObject sender)
Definition: Application.c:1412
_WidgetSetHorizontalValueBar.h
_ApplicationClockScreen.h
ApplicationRadioInterface_onBufferValueEvent
void ApplicationRadioInterface_onBufferValueEvent(ApplicationRadioInterface _this, XObject sender)
Definition: Application.c:1224
aBounds
XRect aBounds
Definition: _ApplicationRadioInterface.h:155
_CoreGroup.h
EW_END_OF_FIELDS
#define EW_END_OF_FIELDS(aClass)
Definition: ewrte.h:460
_WidgetSetVerticalSlider.h
EW_DECLARE_CLASS
#define EW_DECLARE_CLASS(aClass)
Definition: ewrte.h:393
_ApplicationStations.h
EW_VARIABLE
#define EW_VARIABLE(aName, aType)
Definition: ewrte.h:464
_EffectsPointEffect.h
ewgfx.h
_obj_XObject
Definition: ewrte.h:281
ApplicationRadioInterface_onStationInfoEvent
void ApplicationRadioInterface_onStationInfoEvent(ApplicationRadioInterface _this, XObject sender)
Definition: Application.c:1259
aOutline
XRect CoreOutline aOutline XRect CoreOutline aOutline
Definition: _CoreQuadView.h:109
XInt32
signed long XInt32
Definition: ewrte.h:1586
ApplicationRadioInterface_onScreensEvent
void ApplicationRadioInterface_onScreensEvent(ApplicationRadioInterface _this, XObject sender)
Definition: Application.c:1356
value
XRect CoreOutline aOutline XPoint value
Definition: _ViewsWarpView.h:137
_CorePropertyObserver.h
XBool
char XBool
Definition: ewrte.h:1592
XEnum
unsigned long XEnum
Definition: ewrte.h:1593
EW_DEFINE_METHODS
#define EW_DEFINE_METHODS(aClass, aSuperClass)
Definition: ewrte.h:524
ApplicationRadioInterface_onHardButtonEvent
void ApplicationRadioInterface_onHardButtonEvent(ApplicationRadioInterface _this, XObject sender)
Definition: Application.c:1201
XRect
Definition: ewrte.h:1639
ApplicationRadioInterface_onUpdateVolume
void ApplicationRadioInterface_onUpdateVolume(ApplicationRadioInterface _this, XObject sender)
Definition: Application.c:1270
EffectsFader
EffectsFader(EffectsShowHideTransition _this) EW_METHOD(CreateRestoreFader
XSet
unsigned long XSet
Definition: ewrte.h:1594
_EffectsBoolEffect.h
ApplicationRadioInterface_onRadioInfoEvent
void ApplicationRadioInterface_onRadioInfoEvent(ApplicationRadioInterface _this, XObject sender)
Definition: Application.c:1237
aOpacity
XRect CoreOutline aOutline GraphicsCanvas XRect XPoint XInt32 aOpacity
Definition: _CoreOutline.h:172
_ViewsRectangle.h
ApplicationRadioInterface_onFFTDrawEvent
void ApplicationRadioInterface_onFFTDrawEvent(ApplicationRadioInterface _this, XObject sender)
Definition: Application.c:1284
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
_CoreSystemEventHandler.h
ApplicationRadioInterface_onConnectionInfoEvent
void ApplicationRadioInterface_onConnectionInfoEvent(ApplicationRadioInterface _this, XObject sender)
Definition: Application.c:1248
Stations
Definition: stations.h:37
_WidgetSetPushButton.h
_CoreOutline.h
aOffset
XRect CoreOutline aOutline GraphicsCanvas XRect XPoint aOffset
Definition: _CoreOutline.h:172
EW_OBJECT
#define EW_OBJECT(aName, aObjectClass)
Definition: ewrte.h:468
_ViewsImage.h
aCanvas
XRect CoreOutline aOutline GraphicsCanvas aCanvas
Definition: _CoreOutline.h:171
ApplicationRadioInterface_onCounterEvent
void ApplicationRadioInterface_onCounterEvent(ApplicationRadioInterface _this, XObject sender)
Definition: Application.c:1212
EW_END_OF_METHODS
#define EW_END_OF_METHODS(aClass)
Definition: ewrte.h:539
ApplicationRadioInterface_onMetaInfoEvent
void ApplicationRadioInterface_onMetaInfoEvent(ApplicationRadioInterface _this, XObject sender)
Definition: Application.c:1401
_ViewsText.h
EW_METHOD
EW_METHOD(initLayoutContext, void)(CoreRectView _this
_ApplicationVUMeter.h
aBlend
XRect CoreOutline aOutline GraphicsCanvas XRect XPoint XInt32 XBool aBlend
Definition: _CoreOutline.h:172
_ApplicationFFTViews.h
EW_DEFINE_FIELDS
#define EW_DEFINE_FIELDS(aClass, aSuperClass)
Definition: ewrte.h:451