WebRadioApp  0.1
_ApplicationDigit.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 _ApplicationDigit_H
28 #define _ApplicationDigit_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 "_CoreGroup.h"
46 #include "_EffectsFloatEffect.h"
47 #include "_GraphicsPath.h"
48 #include "_ViewsStrokePath.h"
49 
50 /* Forward declaration of the class Application::Digit */
51 #ifndef _ApplicationDigit_
52  EW_DECLARE_CLASS( ApplicationDigit )
53 #define _ApplicationDigit_
54 #endif
55 
56 /* Forward declaration of the class Core::DialogContext */
57 #ifndef _CoreDialogContext_
58  EW_DECLARE_CLASS( CoreDialogContext )
59 #define _CoreDialogContext_
60 #endif
61 
62 /* Forward declaration of the class Core::KeyPressHandler */
63 #ifndef _CoreKeyPressHandler_
64  EW_DECLARE_CLASS( CoreKeyPressHandler )
65 #define _CoreKeyPressHandler_
66 #endif
67 
68 /* Forward declaration of the class Core::LayoutContext */
69 #ifndef _CoreLayoutContext_
70  EW_DECLARE_CLASS( CoreLayoutContext )
71 #define _CoreLayoutContext_
72 #endif
73 
74 /* Forward declaration of the class Core::TaskQueue */
75 #ifndef _CoreTaskQueue_
76  EW_DECLARE_CLASS( CoreTaskQueue )
77 #define _CoreTaskQueue_
78 #endif
79 
80 /* Forward declaration of the class Core::View */
81 #ifndef _CoreView_
82  EW_DECLARE_CLASS( CoreView )
83 #define _CoreView_
84 #endif
85 
86 /* Forward declaration of the class Effects::Fader */
87 #ifndef _EffectsFader_
89 #define _EffectsFader_
90 #endif
91 
92 /* Forward declaration of the class Graphics::Canvas */
93 #ifndef _GraphicsCanvas_
94  EW_DECLARE_CLASS( GraphicsCanvas )
95 #define _GraphicsCanvas_
96 #endif
97 
98 
99 /* Custom digit widget */
100 EW_DEFINE_FIELDS( ApplicationDigit, CoreGroup )
101  EW_OBJECT ( FloatEffect, EffectsFloatEffect )
102  EW_OBJECT ( Path, GraphicsPath )
103  EW_OBJECT ( StrokePath, ViewsStrokePath )
104  EW_PROPERTY( Value, XInt32 )
105  EW_ARRAY ( Points, XPoint, [13])
106  EW_PROPERTY( Edges, XInt32 )
107  EW_PROPERTY( Color, XColor )
108  EW_PROPERTY( StrokeWidth, XFloat )
109  EW_ARRAY ( Points0, XPoint, [13])
110  EW_ARRAY ( Points1, XPoint, [13])
111  EW_ARRAY ( Points2, XPoint, [13])
112  EW_ARRAY ( Points3, XPoint, [13])
113  EW_ARRAY ( Points4, XPoint, [13])
114  EW_ARRAY ( Points5, XPoint, [13])
115  EW_ARRAY ( Points6, XPoint, [13])
116  EW_ARRAY ( Points7, XPoint, [13])
117  EW_ARRAY ( Points8, XPoint, [13])
118  EW_ARRAY ( Points9, XPoint, [13])
119  EW_VARIABLE( oldDigit, XInt32 )
120  EW_PROPERTY( Helpers, XBool )
121 EW_END_OF_FIELDS( ApplicationDigit )
122 
123 /* Virtual Method Table (VMT) for the class : 'Application::Digit' */
124 EW_DEFINE_METHODS( ApplicationDigit, CoreGroup )
125  EW_METHOD( initLayoutContext, void )( CoreRectView _this, XRect aBounds, CoreOutline
126  aOutline )
127  EW_METHOD( GetRoot, CoreRoot )( CoreView _this )
128  EW_METHOD( Draw, void )( CoreGroup _this, GraphicsCanvas aCanvas,
130  EW_METHOD( HandleEvent, XObject )( CoreView _this, CoreEvent aEvent )
131  EW_METHOD( CursorHitTest, CoreCursorHit )( CoreGroup _this, XRect aArea, XInt32
132  aFinger, XInt32 aStrikeCount, CoreView aDedicatedView, XSet aRetargetReason )
133  EW_METHOD( ArrangeView, XPoint )( CoreRectView _this, XRect aBounds, XEnum
134  aFormation )
135  EW_METHOD( MoveView, void )( CoreRectView _this, XPoint aOffset, XBool
136  aFastMove )
137  EW_METHOD( GetExtent, XRect )( CoreRectView _this )
138  EW_METHOD( ChangeViewState, void )( CoreGroup _this, XSet aSetState, XSet aClearState )
139  EW_METHOD( OnSetBounds, void )( CoreGroup _this, XRect value )
140  EW_METHOD( drawContent, void )( ApplicationDigit _this, GraphicsCanvas aCanvas,
142  EW_METHOD( OnSetFocus, void )( CoreGroup _this, CoreView value )
143  EW_METHOD( OnSetBuffered, void )( CoreGroup _this, XBool value )
144  EW_METHOD( OnSetOpacity, void )( CoreGroup _this, XInt32 value )
145  EW_METHOD( IsDialog, XBool )( CoreGroup _this, XBool aRecursive )
146  EW_METHOD( DispatchEvent, XObject )( CoreGroup _this, CoreEvent aEvent )
147  EW_METHOD( BroadcastEvent, XObject )( CoreGroup _this, CoreEvent aEvent, XSet
148  aFilter )
149  EW_METHOD( UpdateLayout, void )( ApplicationDigit _this, XPoint aSize )
150  EW_METHOD( UpdateViewState, void )( CoreGroup _this, XSet aState )
151  EW_METHOD( InvalidateArea, void )( CoreGroup _this, XRect aArea )
152 EW_END_OF_METHODS( ApplicationDigit )
153 
154 /* The method Init() is invoked automatically after the component has been created.
155  This method can be overridden and filled with logic containing additional initialization
156  statements. */
157 void ApplicationDigit_Init( ApplicationDigit _this, XHandle aArg );
158 
159 /* 'C' function for method : 'Application::Digit.drawContent()' */
160 void ApplicationDigit_drawContent( ApplicationDigit _this, GraphicsCanvas aCanvas,
162 
163 /* The method UpdateLayout() is invoked automatically after the size of the component
164  has been changed. This method can be overridden and filled with logic to perform
165  a sophisticated arrangement calculation for one or more enclosed views. In this
166  case the parameter aSize can be used. It contains the current size of the component.
167  Usually, all enclosed views are arranged automatically accordingly to their @Layout
168  property. UpdateLayout() gives the derived components a chance to extend this
169  automatism by a user defined algorithm. */
170 void ApplicationDigit_UpdateLayout( ApplicationDigit _this, XPoint aSize );
171 
172 /* 'C' function for method : 'Application::Digit.OnSetValue()' */
173 void ApplicationDigit_OnSetValue( ApplicationDigit _this, XInt32 value );
174 
175 /* 'C' function for method : 'Application::Digit.OnSetEdges()' */
176 void ApplicationDigit_OnSetEdges( ApplicationDigit _this, XInt32 value );
177 
178 /* 'C' function for method : 'Application::Digit.OnSetColor()' */
179 void ApplicationDigit_OnSetColor( ApplicationDigit _this, XColor value );
180 
181 /* 'C' function for method : 'Application::Digit.OnSetStrokeWidth()' */
182 void ApplicationDigit_OnSetStrokeWidth( ApplicationDigit _this, XFloat value );
183 
184 /* 'C' function for method : 'Application::Digit.drawPoint()' */
185 void ApplicationDigit_drawPoint( ApplicationDigit _this, GraphicsCanvas aCanvas,
187 
188 /* 'C' function for method : 'Application::Digit.OnSetHelpers()' */
189 void ApplicationDigit_OnSetHelpers( ApplicationDigit _this, XBool value );
190 
191 /* 'C' function for method : 'Application::Digit.updatePoints()' */
192 void ApplicationDigit_updatePoints( ApplicationDigit _this, XObject sender );
193 
194 /* 'C' function for method : 'Application::Digit.updatePath()' */
195 void ApplicationDigit_updatePath( ApplicationDigit _this, XObject sender );
196 
197 #ifdef __cplusplus
198  }
199 #endif
200 
201 #endif /* _ApplicationDigit_H */
202 
203 /* Embedded Wizard */
ApplicationDigit_updatePoints
void ApplicationDigit_updatePoints(ApplicationDigit _this, XObject sender)
Definition: Application.c:2795
aBounds
XRect aBounds
Definition: _ApplicationDigit.h:125
ApplicationDigit_drawPoint
void ApplicationDigit_drawPoint(ApplicationDigit _this, GraphicsCanvas aCanvas, XRect aClip, XPoint aOffset, XInt32 aOpacity, XBool aBlend, XPoint aPoint)
Definition: Application.c:2758
CoreCursorHit
XRect CoreOutline aOutline CoreCursorHit(CoreGroup _this, XRect aArea, XInt32 aFinger, XInt32 aStrikeCount, CoreView aDedicatedView, XSet aRetargetReason) EW_METHOD(ArrangeView
ewrte.h
ApplicationDigit_OnSetColor
void ApplicationDigit_OnSetColor(ApplicationDigit _this, XColor value)
Definition: Application.c:2738
EW_ARRAY
#define EW_ARRAY(aName, aType, aArraySize)
Definition: ewrte.h:470
XColor
Definition: ewrte.h:1700
_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_METHOD
EW_METHOD(initLayoutContext, void)(CoreRectView _this
EW_DECLARE_CLASS
#define EW_DECLARE_CLASS(aClass)
Definition: ewrte.h:393
ApplicationDigit_OnSetStrokeWidth
void ApplicationDigit_OnSetStrokeWidth(ApplicationDigit _this, XFloat value)
Definition: Application.c:2748
EW_VARIABLE
#define EW_VARIABLE(aName, aType)
Definition: ewrte.h:464
ewgfx.h
ApplicationDigit_OnSetEdges
void ApplicationDigit_OnSetEdges(ApplicationDigit _this, XInt32 value)
Definition: Application.c:2729
ApplicationDigit_updatePath
void ApplicationDigit_updatePath(ApplicationDigit _this, XObject sender)
Definition: Application.c:2949
_obj_XObject
Definition: ewrte.h:281
_GraphicsPath.h
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
ApplicationDigit_drawContent
void ApplicationDigit_drawContent(ApplicationDigit _this, GraphicsCanvas aCanvas, XRect aClip, XPoint aOffset, XInt32 aOpacity, XBool aBlend)
Definition: Application.c:2677
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
XRect
Definition: ewrte.h:1639
ApplicationDigit_OnSetHelpers
void ApplicationDigit_OnSetHelpers(ApplicationDigit _this, XBool value)
Definition: Application.c:2785
EffectsFader
EffectsFader(EffectsShowHideTransition _this) EW_METHOD(CreateRestoreFader
XSet
unsigned long XSet
Definition: ewrte.h:1594
aOpacity
XRect CoreOutline aOutline GraphicsCanvas XRect XPoint XInt32 aOpacity
Definition: _CoreOutline.h:172
ApplicationDigit_UpdateLayout
void ApplicationDigit_UpdateLayout(ApplicationDigit _this, XPoint aSize)
Definition: Application.c:2709
ApplicationDigit_Init
void ApplicationDigit_Init(ApplicationDigit _this, XHandle aArg)
Definition: Application.c:2668
XFloat
float XFloat
Definition: ewrte.h:1595
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
EW_PROPERTY
#define EW_PROPERTY(aName, aType)
Definition: ewrte.h:466
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
_ViewsStrokePath.h
EW_END_OF_METHODS
#define EW_END_OF_METHODS(aClass)
Definition: ewrte.h:539
aArg
XRect CoreOutline aOutline XHandle aArg
Definition: _ApplicationDigit.h:157
ApplicationDigit_OnSetValue
void ApplicationDigit_OnSetValue(ApplicationDigit _this, XInt32 value)
Definition: Application.c:2718
_EffectsFloatEffect.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