WebRadioApp  0.1
_WidgetSetPushButtonConfig.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 _WidgetSetPushButtonConfig_H
28 #define _WidgetSetPushButtonConfig_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 Resources::Font */
54 #ifndef _ResourcesFont_
55  EW_DECLARE_CLASS( ResourcesFont )
56 #define _ResourcesFont_
57 #endif
58 
59 /* Forward declaration of the class WidgetSet::PushButtonConfig */
60 #ifndef _WidgetSetPushButtonConfig_
61  EW_DECLARE_CLASS( WidgetSetPushButtonConfig )
62 #define _WidgetSetPushButtonConfig_
63 #endif
64 
65 
66 /* This class implements the functionality permitting you to simply customize the
67  look and feel of a monostable 'push button' widget (WidgetSet::PushButton). In
68  the practice, you will create an instance of this class, configure its properties
69  with bitmaps, colors and other relevant attributes according to your design expectations
70  and assign such prepared configuration object to the property 'Appearance' of
71  every affected push button widget. Thereupon the widgets will use the configuration
72  information provided in the object.
73  During its lifetime the button remains always in one of the four states: 'disabled',
74  'default', 'focused' and 'active'. The state 'disabled' is true for every not
75  available button (the property 'Enabled' of the button is 'false'). Such buttons
76  will ignore all user inputs. The state 'default' determines a button, which is
77  ready to be touched by the user or ready to become focused. As soon as the button
78  becomes focused, it switches in the state 'focused'. In this state the user can
79  activate the button by pressing a key on the keyboard. Finally, the state 'active'
80  is true, if the user actually interacts with the button (the button is pressed).
81  With the configuration object you can specify the appearance of the button for
82  every state individually. For this purpose you should know from which views the
83  button is composed of:
84  - 'Face' is a bitmap frame view (Views::Frame) filling per default the entire
85  background of the button. In the configuration object you can individually specify
86  for every button state the desired bitmap (@FaceActive, @FaceDefault, @FaceDisabled,
87  @FaceFocused), the frame number within the bitmap (@FaceFrameActive, @FaceFrameDefault,
88  @FaceFrameDisabled, @FaceFrameFocused) and opacity or color to tint the bitmap
89  (@FaceTintActive, @FaceTintDefault, @FaceTintDisabled, @FaceTintFocused). The
90  button can automatically play animated bitmaps if the corresponding frame number
91  is -1. If desired, with the property @FaceLayout you can also configure the bitmap
92  to be arranged horizontally and vertically instead of filling the entire widget
93  area.
94  - 'Icon' is an image view (Views::Image) displayed per default in the center
95  of the button. The corresponding bitmap is determined in the property 'Icon'
96  in the push button widget. In the configuration object you can specify the alignment
97  (@IconAlignment) and margins (@IconMarginBottom, @IconMarginLeft, @IconMarginRight,
98  @IconMarginTop) how to arrange the 'Icon' bitmap within the button area. Furthermore,
99  for every button state the opacity or color to tint the bitmap can be determined
100  (@IconTintActive, @IconTintDefault, @IconTintDisabled, @IconTintFocused).
101  - 'Label' is a text view (Views::Text) displayed per default in the center of
102  the button. The corresponding text is determined in the property 'Label' in the
103  push button widget. In the configuration object you can specify the font (@LabelFont),
104  alignment (@LabelAlignment) and margins (@LabelMarginBottom, @LabelMarginLeft,
105  @LabelMarginRight, @LabelMarginTop) to use for the text view. For every button
106  state you can specify individual text color values (@LabelColorActive, @LabelColorDefault,
107  @LabelColorDisabled, @LabelColorFocused).
108  If the button is actually focused, it can also be activated by pressing the keyboard
109  key specified in the property @KeyCode. To prevent the button from being able
110  to be focused, initialize this property with the value Core::KeyCode.NoKey. The
111  property @PressedFeedbackDuration configures the duration how long the button
112  should appear active (pressed) even if it has been taped for a very short time.
113  With the properties @WidgetMinSize and @WidgetMaxSize you can configure size
114  constraints for the widget itself. You can, for example, limit the button to
115  not shrink below a specified width or height. */
116 EW_DEFINE_FIELDS( WidgetSetPushButtonConfig, WidgetSetWidgetConfig )
117  EW_PROPERTY( LabelFont, ResourcesFont )
118  EW_PROPERTY( FaceActive, ResourcesBitmap )
119  EW_PROPERTY( FaceFocused, ResourcesBitmap )
120  EW_PROPERTY( FaceDisabled, ResourcesBitmap )
121  EW_PROPERTY( FaceDefault, ResourcesBitmap )
122  EW_PROPERTY( PressedFeedbackDuration, XInt32 )
123  EW_PROPERTY( LabelColorActive, XColor )
124  EW_PROPERTY( LabelColorFocused, XColor )
125  EW_PROPERTY( LabelColorDisabled, XColor )
126  EW_PROPERTY( LabelColorDefault, XColor )
127  EW_PROPERTY( LabelMarginBottom, XInt32 )
128  EW_PROPERTY( LabelMarginTop, XInt32 )
129  EW_PROPERTY( LabelMarginRight, XInt32 )
130  EW_PROPERTY( LabelMarginLeft, XInt32 )
131  EW_PROPERTY( IconTintActive, XColor )
132  EW_PROPERTY( IconTintFocused, XColor )
133  EW_PROPERTY( IconTintDisabled, XColor )
134  EW_PROPERTY( IconTintDefault, XColor )
135  EW_PROPERTY( IconMarginBottom, XInt32 )
136  EW_PROPERTY( IconMarginTop, XInt32 )
137  EW_PROPERTY( IconMarginRight, XInt32 )
138  EW_PROPERTY( IconMarginLeft, XInt32 )
139  EW_PROPERTY( LabelAlignment, XSet )
140  EW_PROPERTY( IconAlignment, XSet )
141  EW_PROPERTY( FaceLayout, XSet )
142  EW_PROPERTY( FaceTintActive, XColor )
143  EW_PROPERTY( FaceTintFocused, XColor )
144  EW_PROPERTY( FaceTintDisabled, XColor )
145  EW_PROPERTY( FaceTintDefault, XColor )
146  EW_PROPERTY( FaceFrameActive, XInt32 )
147  EW_PROPERTY( FaceFrameFocused, XInt32 )
148  EW_PROPERTY( FaceFrameDisabled, XInt32 )
149  EW_PROPERTY( FaceFrameDefault, XInt32 )
150  EW_PROPERTY( WidgetMaxSize, XPoint )
151  EW_PROPERTY( WidgetMinSize, XPoint )
152  EW_PROPERTY( KeyCode, XEnum )
153 EW_END_OF_FIELDS( WidgetSetPushButtonConfig )
154 
155 /* Virtual Method Table (VMT) for the class : 'WidgetSet::PushButtonConfig' */
156 EW_DEFINE_METHODS( WidgetSetPushButtonConfig, WidgetSetWidgetConfig )
157 EW_END_OF_METHODS( WidgetSetPushButtonConfig )
158 
159 /* 'C' function for method : 'WidgetSet::PushButtonConfig.OnSetLabelColorActive()' */
160 void WidgetSetPushButtonConfig_OnSetLabelColorActive( WidgetSetPushButtonConfig _this,
161  XColor value );
162 
163 /* 'C' function for method : 'WidgetSet::PushButtonConfig.OnSetLabelColorFocused()' */
164 void WidgetSetPushButtonConfig_OnSetLabelColorFocused( WidgetSetPushButtonConfig _this,
165  XColor value );
166 
167 /* 'C' function for method : 'WidgetSet::PushButtonConfig.OnSetLabelColorDisabled()' */
168 void WidgetSetPushButtonConfig_OnSetLabelColorDisabled( WidgetSetPushButtonConfig _this,
169  XColor value );
170 
171 /* 'C' function for method : 'WidgetSet::PushButtonConfig.OnSetLabelColorDefault()' */
172 void WidgetSetPushButtonConfig_OnSetLabelColorDefault( WidgetSetPushButtonConfig _this,
173  XColor value );
174 
175 /* 'C' function for method : 'WidgetSet::PushButtonConfig.OnSetLabelMarginBottom()' */
176 void WidgetSetPushButtonConfig_OnSetLabelMarginBottom( WidgetSetPushButtonConfig _this,
177  XInt32 value );
178 
179 /* 'C' function for method : 'WidgetSet::PushButtonConfig.OnSetLabelMarginTop()' */
180 void WidgetSetPushButtonConfig_OnSetLabelMarginTop( WidgetSetPushButtonConfig _this,
181  XInt32 value );
182 
183 /* 'C' function for method : 'WidgetSet::PushButtonConfig.OnSetLabelMarginRight()' */
184 void WidgetSetPushButtonConfig_OnSetLabelMarginRight( WidgetSetPushButtonConfig _this,
185  XInt32 value );
186 
187 /* 'C' function for method : 'WidgetSet::PushButtonConfig.OnSetLabelMarginLeft()' */
188 void WidgetSetPushButtonConfig_OnSetLabelMarginLeft( WidgetSetPushButtonConfig _this,
189  XInt32 value );
190 
191 /* 'C' function for method : 'WidgetSet::PushButtonConfig.OnSetIconTintDisabled()' */
192 void WidgetSetPushButtonConfig_OnSetIconTintDisabled( WidgetSetPushButtonConfig _this,
193  XColor value );
194 
195 /* 'C' function for method : 'WidgetSet::PushButtonConfig.OnSetIconTintDefault()' */
196 void WidgetSetPushButtonConfig_OnSetIconTintDefault( WidgetSetPushButtonConfig _this,
197  XColor value );
198 
199 /* 'C' function for method : 'WidgetSet::PushButtonConfig.OnSetIconMarginBottom()' */
200 void WidgetSetPushButtonConfig_OnSetIconMarginBottom( WidgetSetPushButtonConfig _this,
201  XInt32 value );
202 
203 /* 'C' function for method : 'WidgetSet::PushButtonConfig.OnSetIconMarginTop()' */
204 void WidgetSetPushButtonConfig_OnSetIconMarginTop( WidgetSetPushButtonConfig _this,
205  XInt32 value );
206 
207 /* 'C' function for method : 'WidgetSet::PushButtonConfig.OnSetIconMarginRight()' */
208 void WidgetSetPushButtonConfig_OnSetIconMarginRight( WidgetSetPushButtonConfig _this,
209  XInt32 value );
210 
211 /* 'C' function for method : 'WidgetSet::PushButtonConfig.OnSetIconMarginLeft()' */
212 void WidgetSetPushButtonConfig_OnSetIconMarginLeft( WidgetSetPushButtonConfig _this,
213  XInt32 value );
214 
215 /* 'C' function for method : 'WidgetSet::PushButtonConfig.OnSetLabelFont()' */
216 void WidgetSetPushButtonConfig_OnSetLabelFont( WidgetSetPushButtonConfig _this,
217  ResourcesFont value );
218 
219 /* 'C' function for method : 'WidgetSet::PushButtonConfig.OnSetFaceFrameActive()' */
220 void WidgetSetPushButtonConfig_OnSetFaceFrameActive( WidgetSetPushButtonConfig _this,
221  XInt32 value );
222 
223 /* 'C' function for method : 'WidgetSet::PushButtonConfig.OnSetFaceFrameFocused()' */
224 void WidgetSetPushButtonConfig_OnSetFaceFrameFocused( WidgetSetPushButtonConfig _this,
225  XInt32 value );
226 
227 /* 'C' function for method : 'WidgetSet::PushButtonConfig.OnSetFaceFrameDisabled()' */
228 void WidgetSetPushButtonConfig_OnSetFaceFrameDisabled( WidgetSetPushButtonConfig _this,
229  XInt32 value );
230 
231 /* 'C' function for method : 'WidgetSet::PushButtonConfig.OnSetFaceFrameDefault()' */
232 void WidgetSetPushButtonConfig_OnSetFaceFrameDefault( WidgetSetPushButtonConfig _this,
233  XInt32 value );
234 
235 /* 'C' function for method : 'WidgetSet::PushButtonConfig.OnSetFaceActive()' */
236 void WidgetSetPushButtonConfig_OnSetFaceActive( WidgetSetPushButtonConfig _this,
237  ResourcesBitmap value );
238 
239 /* 'C' function for method : 'WidgetSet::PushButtonConfig.OnSetFaceFocused()' */
240 void WidgetSetPushButtonConfig_OnSetFaceFocused( WidgetSetPushButtonConfig _this,
241  ResourcesBitmap value );
242 
243 /* 'C' function for method : 'WidgetSet::PushButtonConfig.OnSetFaceDisabled()' */
244 void WidgetSetPushButtonConfig_OnSetFaceDisabled( WidgetSetPushButtonConfig _this,
245  ResourcesBitmap value );
246 
247 /* 'C' function for method : 'WidgetSet::PushButtonConfig.OnSetFaceDefault()' */
248 void WidgetSetPushButtonConfig_OnSetFaceDefault( WidgetSetPushButtonConfig _this,
249  ResourcesBitmap value );
250 
251 /* 'C' function for method : 'WidgetSet::PushButtonConfig.OnSetWidgetMinSize()' */
252 void WidgetSetPushButtonConfig_OnSetWidgetMinSize( WidgetSetPushButtonConfig _this,
253  XPoint value );
254 
255 #ifdef __cplusplus
256  }
257 #endif
258 
259 #endif /* _WidgetSetPushButtonConfig_H */
260 
261 /* Embedded Wizard */
WidgetSetPushButtonConfig_OnSetIconMarginBottom
void WidgetSetPushButtonConfig_OnSetIconMarginBottom(WidgetSetPushButtonConfig _this, XInt32 value)
Definition: WidgetSet.c:1615
ewrte.h
WidgetSetPushButtonConfig_OnSetLabelMarginRight
void WidgetSetPushButtonConfig_OnSetLabelMarginRight(WidgetSetPushButtonConfig _this, XInt32 value)
Definition: WidgetSet.c:1571
_WidgetSetWidgetConfig.h
WidgetSetPushButtonConfig_OnSetLabelMarginLeft
void WidgetSetPushButtonConfig_OnSetLabelMarginLeft(WidgetSetPushButtonConfig _this, XInt32 value)
Definition: WidgetSet.c:1582
XColor
Definition: ewrte.h:1700
WidgetSetPushButtonConfig_OnSetLabelColorDefault
void WidgetSetPushButtonConfig_OnSetLabelColorDefault(WidgetSetPushButtonConfig _this, XColor value)
Definition: WidgetSet.c:1538
WidgetSetPushButtonConfig_OnSetFaceFrameFocused
void WidgetSetPushButtonConfig_OnSetFaceFrameFocused(WidgetSetPushButtonConfig _this, XInt32 value)
Definition: WidgetSet.c:1681
EW_END_OF_FIELDS
#define EW_END_OF_FIELDS(aClass)
Definition: ewrte.h:460
WidgetSetPushButtonConfig_OnSetFaceFrameDefault
void WidgetSetPushButtonConfig_OnSetFaceFrameDefault(WidgetSetPushButtonConfig _this, XInt32 value)
Definition: WidgetSet.c:1703
EW_DECLARE_CLASS
#define EW_DECLARE_CLASS(aClass)
Definition: ewrte.h:393
ewgfx.h
WidgetSetPushButtonConfig_OnSetLabelColorActive
void WidgetSetPushButtonConfig_OnSetLabelColorActive(WidgetSetPushButtonConfig _this, XColor value)
Definition: WidgetSet.c:1505
WidgetSetPushButtonConfig_OnSetIconMarginTop
void WidgetSetPushButtonConfig_OnSetIconMarginTop(WidgetSetPushButtonConfig _this, XInt32 value)
Definition: WidgetSet.c:1626
WidgetSetPushButtonConfig_OnSetIconTintDisabled
void WidgetSetPushButtonConfig_OnSetIconTintDisabled(WidgetSetPushButtonConfig _this, XColor value)
Definition: WidgetSet.c:1593
XInt32
signed long XInt32
Definition: ewrte.h:1586
value
XRect CoreOutline aOutline XPoint value
Definition: _ViewsWarpView.h:137
XEnum
unsigned long XEnum
Definition: ewrte.h:1593
EW_DEFINE_METHODS
#define EW_DEFINE_METHODS(aClass, aSuperClass)
Definition: ewrte.h:524
WidgetSetPushButtonConfig_OnSetIconTintDefault
void WidgetSetPushButtonConfig_OnSetIconTintDefault(WidgetSetPushButtonConfig _this, XColor value)
Definition: WidgetSet.c:1604
XSet
unsigned long XSet
Definition: ewrte.h:1594
WidgetSetPushButtonConfig_OnSetIconMarginRight
void WidgetSetPushButtonConfig_OnSetIconMarginRight(WidgetSetPushButtonConfig _this, XInt32 value)
Definition: WidgetSet.c:1637
WidgetSetPushButtonConfig_OnSetFaceFrameActive
void WidgetSetPushButtonConfig_OnSetFaceFrameActive(WidgetSetPushButtonConfig _this, XInt32 value)
Definition: WidgetSet.c:1670
WidgetSetPushButtonConfig_OnSetFaceDefault
void WidgetSetPushButtonConfig_OnSetFaceDefault(WidgetSetPushButtonConfig _this, ResourcesBitmap value)
Definition: WidgetSet.c:1747
WidgetSetPushButtonConfig_OnSetLabelMarginBottom
void WidgetSetPushButtonConfig_OnSetLabelMarginBottom(WidgetSetPushButtonConfig _this, XInt32 value)
Definition: WidgetSet.c:1549
WidgetSetPushButtonConfig_OnSetLabelColorFocused
void WidgetSetPushButtonConfig_OnSetLabelColorFocused(WidgetSetPushButtonConfig _this, XColor value)
Definition: WidgetSet.c:1516
WidgetSetPushButtonConfig_OnSetLabelFont
void WidgetSetPushButtonConfig_OnSetLabelFont(WidgetSetPushButtonConfig _this, ResourcesFont value)
Definition: WidgetSet.c:1659
WidgetSetPushButtonConfig_OnSetWidgetMinSize
void WidgetSetPushButtonConfig_OnSetWidgetMinSize(WidgetSetPushButtonConfig _this, XPoint value)
Definition: WidgetSet.c:1758
XPoint
Definition: ewrte.h:1616
EW_PROPERTY
#define EW_PROPERTY(aName, aType)
Definition: ewrte.h:466
WidgetSetPushButtonConfig_OnSetFaceFocused
void WidgetSetPushButtonConfig_OnSetFaceFocused(WidgetSetPushButtonConfig _this, ResourcesBitmap value)
Definition: WidgetSet.c:1725
WidgetSetPushButtonConfig_OnSetFaceDisabled
void WidgetSetPushButtonConfig_OnSetFaceDisabled(WidgetSetPushButtonConfig _this, ResourcesBitmap value)
Definition: WidgetSet.c:1736
WidgetSetPushButtonConfig_OnSetLabelColorDisabled
void WidgetSetPushButtonConfig_OnSetLabelColorDisabled(WidgetSetPushButtonConfig _this, XColor value)
Definition: WidgetSet.c:1527
EW_END_OF_METHODS
#define EW_END_OF_METHODS(aClass)
Definition: ewrte.h:539
WidgetSetPushButtonConfig_OnSetIconMarginLeft
void WidgetSetPushButtonConfig_OnSetIconMarginLeft(WidgetSetPushButtonConfig _this, XInt32 value)
Definition: WidgetSet.c:1648
WidgetSetPushButtonConfig_OnSetFaceActive
void WidgetSetPushButtonConfig_OnSetFaceActive(WidgetSetPushButtonConfig _this, ResourcesBitmap value)
Definition: WidgetSet.c:1714
WidgetSetPushButtonConfig_OnSetLabelMarginTop
void WidgetSetPushButtonConfig_OnSetLabelMarginTop(WidgetSetPushButtonConfig _this, XInt32 value)
Definition: WidgetSet.c:1560
WidgetSetPushButtonConfig_OnSetFaceFrameDisabled
void WidgetSetPushButtonConfig_OnSetFaceFrameDisabled(WidgetSetPushButtonConfig _this, XInt32 value)
Definition: WidgetSet.c:1692
EW_DEFINE_FIELDS
#define EW_DEFINE_FIELDS(aClass, aSuperClass)
Definition: ewrte.h:451