WebRadioApp  0.1
_WidgetSetHorizontalValueBarConfig.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 _WidgetSetHorizontalValueBarConfig_H
28 #define _WidgetSetHorizontalValueBarConfig_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::HorizontalValueBarConfig */
54 #ifndef _WidgetSetHorizontalValueBarConfig_
55  EW_DECLARE_CLASS( WidgetSetHorizontalValueBarConfig )
56 #define _WidgetSetHorizontalValueBarConfig_
57 #endif
58 
59 
60 /* This class implements the functionality permitting you to simply customize the
61  look and feel of a 'horizontal value bar' widget (WidgetSet::HorizontalValueBar).
62  In the practice, you will create an instance of this class, configure its properties
63  with bitmaps, colors and other relevant attributes according to your design expectations
64  and assign such prepared configuration object to the property 'Appearance' of
65  every affected horizontal value bar widget. Thereupon the widgets will use the
66  configuration information provided in the object.
67  Since with the configuration object you determine the appearance of the value
68  bar widget you should know from which views the widget is composed of:
69  - 'Face' is a bitmap frame view (Views::Frame) filling vertically centered the
70  entire width in the background of the widget. In the configuration object you
71  can specify the desired bitmap (@Face), the frame number within the bitmap (@FaceFrame)
72  and opacity or color to tint the bitmap (@FaceTint). The value bar widget can
73  automatically play animated bitmaps if the specified frame number is -1.
74  - 'TrackLeft' is a bitmap frame view (Views::Frame) filling vertically centered
75  the background of the widget between its left edge and the actual position of
76  the needle. In the configuration object you can specify the desired bitmap (@TrackLeft),
77  the frame number within the bitmap (@TrackLeftFrame) and opacity or color to
78  tint the bitmap (@TrackLeftTint). With the property @TrackLeftWithEdge you can
79  configure how the right edge of the track (the edge at the needle position) should
80  appear. The value bar can automatically play animated bitmaps if the specified
81  frame number is -1.
82  - 'TrackRight' is a bitmap frame view (Views::Frame) filling vertically centered
83  the background of the widget between the actual position of the needle and the
84  right edge of the widget. In the configuration object you can specify the desired
85  bitmap (@TrackRight), the frame number within the bitmap (@TrackRightFrame) and
86  opacity or color to tint the bitmap (@TrackRightTint). With the property @TrackRightWithEdge
87  you can configure how the left edge of the track (the edge at the needle position)
88  should appear. The value bar can automatically play animated bitmaps if the specified
89  frame number is -1.
90  - 'Needle' is an image view (Views::Image) displayed centered at the actual needle
91  position. In the configuration object you can specify the desired bitmap (@Needle),
92  the frame number within the bitmap (@NeedleFrame) and opacity or color to tint
93  the bitmap (@NeedleTint). If necessary, additional margins on the left and on
94  the right of the needle can be specified by using the properties @NeedleMarginLeft
95  and @NeedleMarginRight. The value bar can automatically play animated bitmaps
96  if the specified frame number is -1.
97  - 'Cover' is a bitmap frame view (Views::Frame) filling vertically centered the
98  entire width of the widget and covering so eventually the needle and track. In
99  the configuration object you can specify the desired bitmap (@Cover), the frame
100  number within the bitmap (@CoverFrame) and opacity or color to tint the bitmap
101  (@CoverTint). The value bar widget can automatically play animated bitmaps if
102  the specified frame number is -1.
103  The value bar widget can move the needle with a smooth animation. This can be
104  configured 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 value bar
107  widget to not shrink below a specified width or height. */
108 EW_DEFINE_FIELDS( WidgetSetHorizontalValueBarConfig, WidgetSetWidgetConfig )
109  EW_PROPERTY( Cover, ResourcesBitmap )
110  EW_PROPERTY( Needle, ResourcesBitmap )
111  EW_PROPERTY( TrackRight, ResourcesBitmap )
112  EW_PROPERTY( TrackLeft, ResourcesBitmap )
113  EW_PROPERTY( Face, ResourcesBitmap )
114  EW_PROPERTY( SwingDuration, XInt32 )
115  EW_PROPERTY( NeedleMarginRight, XInt32 )
116  EW_PROPERTY( NeedleMarginLeft, XInt32 )
117  EW_PROPERTY( CoverTint, XColor )
118  EW_PROPERTY( CoverFrame, XInt32 )
119  EW_PROPERTY( NeedleTint, XColor )
120  EW_PROPERTY( NeedleFrame, XInt32 )
121  EW_PROPERTY( TrackRightTint, XColor )
122  EW_PROPERTY( TrackRightFrame, XInt32 )
123  EW_PROPERTY( TrackLeftTint, XColor )
124  EW_PROPERTY( TrackLeftFrame, XInt32 )
125  EW_PROPERTY( FaceTint, XColor )
126  EW_PROPERTY( FaceFrame, XInt32 )
127  EW_PROPERTY( WidgetMaxSize, XPoint )
128  EW_PROPERTY( WidgetMinSize, XPoint )
129  EW_PROPERTY( TrackLeftWithEdge, XBool )
130  EW_PROPERTY( TrackRightWithEdge, XBool )
131  EW_PROPERTY( SwingElastic, XBool )
132 EW_END_OF_FIELDS( WidgetSetHorizontalValueBarConfig )
133 
134 /* Virtual Method Table (VMT) for the class : 'WidgetSet::HorizontalValueBarConfig' */
135 EW_DEFINE_METHODS( WidgetSetHorizontalValueBarConfig, WidgetSetWidgetConfig )
136 EW_END_OF_METHODS( WidgetSetHorizontalValueBarConfig )
137 
138 /* 'C' function for method : 'WidgetSet::HorizontalValueBarConfig.OnSetTrackRightFrame()' */
139 void WidgetSetHorizontalValueBarConfig_OnSetTrackRightFrame( WidgetSetHorizontalValueBarConfig _this,
140  XInt32 value );
141 
142 /* 'C' function for method : 'WidgetSet::HorizontalValueBarConfig.OnSetTrackRight()' */
143 void WidgetSetHorizontalValueBarConfig_OnSetTrackRight( WidgetSetHorizontalValueBarConfig _this,
144  ResourcesBitmap value );
145 
146 /* 'C' function for method : 'WidgetSet::HorizontalValueBarConfig.OnSetTrackLeftFrame()' */
147 void WidgetSetHorizontalValueBarConfig_OnSetTrackLeftFrame( WidgetSetHorizontalValueBarConfig _this,
148  XInt32 value );
149 
150 /* 'C' function for method : 'WidgetSet::HorizontalValueBarConfig.OnSetTrackLeft()' */
151 void WidgetSetHorizontalValueBarConfig_OnSetTrackLeft( WidgetSetHorizontalValueBarConfig _this,
152  ResourcesBitmap value );
153 
154 /* 'C' function for method : 'WidgetSet::HorizontalValueBarConfig.OnSetWidgetMinSize()' */
155 void WidgetSetHorizontalValueBarConfig_OnSetWidgetMinSize( WidgetSetHorizontalValueBarConfig _this,
156  XPoint value );
157 
158 #ifdef __cplusplus
159  }
160 #endif
161 
162 #endif /* _WidgetSetHorizontalValueBarConfig_H */
163 
164 /* Embedded Wizard */
WidgetSetHorizontalValueBarConfig_OnSetWidgetMinSize
void WidgetSetHorizontalValueBarConfig_OnSetWidgetMinSize(WidgetSetHorizontalValueBarConfig _this, XPoint value)
Definition: WidgetSet.c:356
WidgetSetHorizontalValueBarConfig_OnSetTrackLeft
void WidgetSetHorizontalValueBarConfig_OnSetTrackLeft(WidgetSetHorizontalValueBarConfig _this, ResourcesBitmap value)
Definition: WidgetSet.c:345
ewrte.h
_WidgetSetWidgetConfig.h
XColor
Definition: ewrte.h:1700
EW_END_OF_FIELDS
#define EW_END_OF_FIELDS(aClass)
Definition: ewrte.h:460
WidgetSetHorizontalValueBarConfig_OnSetTrackLeftFrame
void WidgetSetHorizontalValueBarConfig_OnSetTrackLeftFrame(WidgetSetHorizontalValueBarConfig _this, XInt32 value)
Definition: WidgetSet.c:334
EW_DECLARE_CLASS
#define EW_DECLARE_CLASS(aClass)
Definition: ewrte.h:393
ewgfx.h
WidgetSetHorizontalValueBarConfig_OnSetTrackRight
void WidgetSetHorizontalValueBarConfig_OnSetTrackRight(WidgetSetHorizontalValueBarConfig _this, ResourcesBitmap value)
Definition: WidgetSet.c:323
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
WidgetSetHorizontalValueBarConfig_OnSetTrackRightFrame
void WidgetSetHorizontalValueBarConfig_OnSetTrackRightFrame(WidgetSetHorizontalValueBarConfig _this, XInt32 value)
Definition: WidgetSet.c:312
XPoint
Definition: ewrte.h:1616
EW_PROPERTY
#define EW_PROPERTY(aName, aType)
Definition: ewrte.h:466
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