WebRadioApp  0.1
_WidgetSetGaugeConfig.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 _WidgetSetGaugeConfig_H
28 #define _WidgetSetGaugeConfig_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 "_WidgetSetWidgetConfig.h"
46 
47 /* Forward declaration of the class Resources::Bitmap */
48 #ifndef _ResourcesBitmap_
49  EW_DECLARE_CLASS( ResourcesBitmap )
50 #define _ResourcesBitmap_
51 #endif
52 
53 /* Forward declaration of the class WidgetSet::GaugeConfig */
54 #ifndef _WidgetSetGaugeConfig_
55  EW_DECLARE_CLASS( WidgetSetGaugeConfig )
56 #define _WidgetSetGaugeConfig_
57 #endif
58 
59 
60 /* This class implements the functionality permitting you to simply customize the
61  look and feel of a 'gauge' widget (WidgetSet::Gauge). In the practice, you will
62  create an instance of this class, configure its properties with bitmaps, colors
63  and other relevant attributes according to your design expectations and assign
64  such prepared configuration object to the property 'Appearance' of every affected
65  gauge widget. Thereupon the widgets will use the configuration information provided
66  in the object.
67  Since with the configuration object you determine the appearance of the gauge
68  you should know from which views the gauge is composed of:
69  - 'Scale' is an image view (Views::Image) displayed centered in the background
70  within the widget area. In the configuration object you can specify the desired
71  bitmap (@Scale), the frame number within the bitmap (@ScaleFrame) and opacity
72  or color to tint the bitmap (@ScaleTint). The gauge widget can automatically
73  play animated bitmaps if the specified frame number is -1.
74  - 'TrackLeft' is a vector graphic view (Views::FillPath) displaying a circle
75  segment between the needle's leftmost position (clockwise) and its actual position.
76  From this results the effect of a track behind the needle. You can configure
77  the track radius (@TrackLeftRadius), its thickness (@TrackLeftThickness), color
78  (@TrackLeftColor) and the appearance of its caps (@TrackLeftRoundedStart and
79  @TrackLeftRoundedEnd).
80  - 'TrackRight' is a vector graphic view (Views::FillPath) displaying a circle
81  segment between the actual position of the needle and its rightmost position
82  (clockwise). From this results the effect of a track behind the needle. You can
83  configure the track radius (@TrackRightRadius), its thickness (@TrackRightThickness),
84  color (@TrackRightColor) and the appearance of its caps (@TrackRightRoundedStart
85  and @TrackRightRoundedEnd).
86  - 'Needle' is a warp image view (Views::WarpImage) displayed and rotated around
87  predetermined pivot position and along a circle segment with given radius. In
88  the configuration object you can specify the desired bitmap (@Needle), the frame
89  number within the bitmap (@NeedleFrame) and opacity or color to tint the bitmap
90  (@NeedleTint). The desired rotation range (the angles corresponding to 'MinValue'
91  and 'MaxValue' specified in the gauge widget) are determined in the properties
92  @NeedleMinAngle and @NeedleMaxAngle. The position around it the needle is rotated
93  is determined in the properties @CenterOffset, @NeedleRadius and @NeedlePivot.
94  With the property @NeedleRotate you control whether the bitmap should appear
95  rotated or only moved along the circle segment. The gauge widget can automatically
96  play animated bitmaps if the specified frame number is -1.
97  - 'Cover' is an image view (Views::Image) displayed centered within the widget
98  area and covering so eventually the scale and needle images. In the configuration
99  object you can specify the desired bitmap (@Cover), the frame number within the
100  bitmap (@CoverFrame) and opacity or color to tint the bitmap (@CoverTint). The
101  gauge widget can automatically play animated bitmaps if the specified frame number
102  is -1.
103  The gauge widget can rotate the needle with a smooth animation. This can be configured
104  in the properties @SwingDuration and @SwingElastic.
105  With the properties @WidgetMinSize and @WidgetMaxSize you can configure size
106  constraints for the widget itself. You can, for example, limit the gauge to not
107  shrink below a specified width or height. */
108 EW_DEFINE_FIELDS( WidgetSetGaugeConfig, WidgetSetWidgetConfig )
109  EW_PROPERTY( Cover, ResourcesBitmap )
110  EW_PROPERTY( Needle, ResourcesBitmap )
111  EW_PROPERTY( Scale, ResourcesBitmap )
112  EW_PROPERTY( SwingDuration, XInt32 )
113  EW_PROPERTY( TrackRightColor, XColor )
114  EW_PROPERTY( TrackRightThickness, XFloat )
115  EW_PROPERTY( TrackRightRadius, XFloat )
116  EW_PROPERTY( TrackLeftColor, XColor )
117  EW_PROPERTY( TrackLeftThickness, XFloat )
118  EW_PROPERTY( TrackLeftRadius, XFloat )
119  EW_PROPERTY( CoverTint, XColor )
120  EW_PROPERTY( CoverFrame, XInt32 )
121  EW_PROPERTY( NeedleMaxAngle, XFloat )
122  EW_PROPERTY( NeedleMinAngle, XFloat )
123  EW_PROPERTY( NeedleRadius, XFloat )
124  EW_PROPERTY( NeedlePivot, XPoint )
125  EW_PROPERTY( NeedleTint, XColor )
126  EW_PROPERTY( NeedleFrame, XInt32 )
127  EW_PROPERTY( CenterOffset, XPoint )
128  EW_PROPERTY( ScaleTint, XColor )
129  EW_PROPERTY( ScaleFrame, XInt32 )
130  EW_PROPERTY( WidgetMaxSize, XPoint )
131  EW_PROPERTY( WidgetMinSize, XPoint )
132  EW_PROPERTY( NeedleRotate, XBool )
133  EW_PROPERTY( TrackLeftRoundedStart, XBool )
134  EW_PROPERTY( TrackLeftRoundedEnd, XBool )
135  EW_PROPERTY( TrackRightRoundedStart, XBool )
136  EW_PROPERTY( TrackRightRoundedEnd, XBool )
137  EW_PROPERTY( SwingElastic, XBool )
138 EW_END_OF_FIELDS( WidgetSetGaugeConfig )
139 
140 /* Virtual Method Table (VMT) for the class : 'WidgetSet::GaugeConfig' */
141 EW_DEFINE_METHODS( WidgetSetGaugeConfig, WidgetSetWidgetConfig )
142 EW_END_OF_METHODS( WidgetSetGaugeConfig )
143 
144 /* 'C' function for method : 'WidgetSet::GaugeConfig.OnSetSwingElastic()' */
145 void WidgetSetGaugeConfig_OnSetSwingElastic( WidgetSetGaugeConfig _this, XBool value );
146 
147 /* 'C' function for method : 'WidgetSet::GaugeConfig.OnSetSwingDuration()' */
148 void WidgetSetGaugeConfig_OnSetSwingDuration( WidgetSetGaugeConfig _this, XInt32
149  value );
150 
151 /* 'C' function for method : 'WidgetSet::GaugeConfig.OnSetTrackLeftRoundedStart()' */
152 void WidgetSetGaugeConfig_OnSetTrackLeftRoundedStart( WidgetSetGaugeConfig _this,
153  XBool value );
154 
155 /* 'C' function for method : 'WidgetSet::GaugeConfig.OnSetTrackLeftColor()' */
156 void WidgetSetGaugeConfig_OnSetTrackLeftColor( WidgetSetGaugeConfig _this, XColor
157  value );
158 
159 /* 'C' function for method : 'WidgetSet::GaugeConfig.OnSetTrackLeftThickness()' */
160 void WidgetSetGaugeConfig_OnSetTrackLeftThickness( WidgetSetGaugeConfig _this, XFloat
161  value );
162 
163 /* 'C' function for method : 'WidgetSet::GaugeConfig.OnSetTrackLeftRadius()' */
164 void WidgetSetGaugeConfig_OnSetTrackLeftRadius( WidgetSetGaugeConfig _this, XFloat
165  value );
166 
167 /* 'C' function for method : 'WidgetSet::GaugeConfig.OnSetNeedleMaxAngle()' */
168 void WidgetSetGaugeConfig_OnSetNeedleMaxAngle( WidgetSetGaugeConfig _this, XFloat
169  value );
170 
171 /* 'C' function for method : 'WidgetSet::GaugeConfig.OnSetNeedleMinAngle()' */
172 void WidgetSetGaugeConfig_OnSetNeedleMinAngle( WidgetSetGaugeConfig _this, XFloat
173  value );
174 
175 /* 'C' function for method : 'WidgetSet::GaugeConfig.OnSetNeedlePivot()' */
176 void WidgetSetGaugeConfig_OnSetNeedlePivot( WidgetSetGaugeConfig _this, XPoint value );
177 
178 /* 'C' function for method : 'WidgetSet::GaugeConfig.OnSetNeedle()' */
179 void WidgetSetGaugeConfig_OnSetNeedle( WidgetSetGaugeConfig _this, ResourcesBitmap
180  value );
181 
182 /* 'C' function for method : 'WidgetSet::GaugeConfig.OnSetCenterOffset()' */
183 void WidgetSetGaugeConfig_OnSetCenterOffset( WidgetSetGaugeConfig _this, XPoint
184  value );
185 
186 /* 'C' function for method : 'WidgetSet::GaugeConfig.OnSetScale()' */
187 void WidgetSetGaugeConfig_OnSetScale( WidgetSetGaugeConfig _this, ResourcesBitmap
188  value );
189 
190 /* 'C' function for method : 'WidgetSet::GaugeConfig.OnSetWidgetMinSize()' */
191 void WidgetSetGaugeConfig_OnSetWidgetMinSize( WidgetSetGaugeConfig _this, XPoint
192  value );
193 
194 #ifdef __cplusplus
195  }
196 #endif
197 
198 #endif /* _WidgetSetGaugeConfig_H */
199 
200 /* Embedded Wizard */
WidgetSetGaugeConfig_OnSetTrackLeftRoundedStart
void WidgetSetGaugeConfig_OnSetTrackLeftRoundedStart(WidgetSetGaugeConfig _this, XBool value)
Definition: WidgetSet.c:443
ewrte.h
WidgetSetGaugeConfig_OnSetTrackLeftRadius
void WidgetSetGaugeConfig_OnSetTrackLeftRadius(WidgetSetGaugeConfig _this, XFloat value)
Definition: WidgetSet.c:476
_WidgetSetWidgetConfig.h
WidgetSetGaugeConfig_OnSetNeedle
void WidgetSetGaugeConfig_OnSetNeedle(WidgetSetGaugeConfig _this, ResourcesBitmap value)
Definition: WidgetSet.c:519
XColor
Definition: ewrte.h:1700
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
WidgetSetGaugeConfig_OnSetCenterOffset
void WidgetSetGaugeConfig_OnSetCenterOffset(WidgetSetGaugeConfig _this, XPoint value)
Definition: WidgetSet.c:530
WidgetSetGaugeConfig_OnSetNeedleMaxAngle
void WidgetSetGaugeConfig_OnSetNeedleMaxAngle(WidgetSetGaugeConfig _this, XFloat value)
Definition: WidgetSet.c:487
ewgfx.h
WidgetSetGaugeConfig_OnSetTrackLeftColor
void WidgetSetGaugeConfig_OnSetTrackLeftColor(WidgetSetGaugeConfig _this, XColor value)
Definition: WidgetSet.c:454
WidgetSetGaugeConfig_OnSetWidgetMinSize
void WidgetSetGaugeConfig_OnSetWidgetMinSize(WidgetSetGaugeConfig _this, XPoint value)
Definition: WidgetSet.c:552
XInt32
signed long XInt32
Definition: ewrte.h:1586
value
XRect CoreOutline aOutline XPoint value
Definition: _ViewsWarpView.h:137
XBool
char XBool
Definition: ewrte.h:1592
EW_DEFINE_METHODS
#define EW_DEFINE_METHODS(aClass, aSuperClass)
Definition: ewrte.h:524
WidgetSetGaugeConfig_OnSetScale
void WidgetSetGaugeConfig_OnSetScale(WidgetSetGaugeConfig _this, ResourcesBitmap value)
Definition: WidgetSet.c:541
WidgetSetGaugeConfig_OnSetSwingDuration
void WidgetSetGaugeConfig_OnSetSwingDuration(WidgetSetGaugeConfig _this, XInt32 value)
Definition: WidgetSet.c:432
WidgetSetGaugeConfig_OnSetNeedleMinAngle
void WidgetSetGaugeConfig_OnSetNeedleMinAngle(WidgetSetGaugeConfig _this, XFloat value)
Definition: WidgetSet.c:498
XFloat
float XFloat
Definition: ewrte.h:1595
XPoint
Definition: ewrte.h:1616
EW_PROPERTY
#define EW_PROPERTY(aName, aType)
Definition: ewrte.h:466
WidgetSetGaugeConfig_OnSetNeedlePivot
void WidgetSetGaugeConfig_OnSetNeedlePivot(WidgetSetGaugeConfig _this, XPoint value)
Definition: WidgetSet.c:509
WidgetSetGaugeConfig_OnSetTrackLeftThickness
void WidgetSetGaugeConfig_OnSetTrackLeftThickness(WidgetSetGaugeConfig _this, XFloat value)
Definition: WidgetSet.c:465
WidgetSetGaugeConfig_OnSetSwingElastic
void WidgetSetGaugeConfig_OnSetSwingElastic(WidgetSetGaugeConfig _this, XBool value)
Definition: WidgetSet.c:422
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