WebRadioApp  0.1
_ViewsFillPath.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 _ViewsFillPath_H
28 #define _ViewsFillPath_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 "_CoreRectView.h"
46 
47 /* Forward declaration of the class Core::Group */
48 #ifndef _CoreGroup_
49  EW_DECLARE_CLASS( CoreGroup )
50 #define _CoreGroup_
51 #endif
52 
53 /* Forward declaration of the class Core::LayoutContext */
54 #ifndef _CoreLayoutContext_
55  EW_DECLARE_CLASS( CoreLayoutContext )
56 #define _CoreLayoutContext_
57 #endif
58 
59 /* Forward declaration of the class Core::View */
60 #ifndef _CoreView_
61  EW_DECLARE_CLASS( CoreView )
62 #define _CoreView_
63 #endif
64 
65 /* Forward declaration of the class Graphics::Canvas */
66 #ifndef _GraphicsCanvas_
67  EW_DECLARE_CLASS( GraphicsCanvas )
68 #define _GraphicsCanvas_
69 #endif
70 
71 /* Forward declaration of the class Graphics::Path */
72 #ifndef _GraphicsPath_
73  EW_DECLARE_CLASS( GraphicsPath )
74 #define _GraphicsPath_
75 #endif
76 
77 /* Forward declaration of the class Views::FillPath */
78 #ifndef _ViewsFillPath_
79  EW_DECLARE_CLASS( ViewsFillPath )
80 #define _ViewsFillPath_
81 #endif
82 
83 
84 /* The class Views::FillPath provides a kind of view specialized to draw a filled
85  polygon. The shape of the polygon (the coordinates of the line segments) is provided
86  in a Graphics::Path object assigned to the property @Path. The position and the
87  size of the area to display the path are determined by the property @Bounds.
88  The color to fill the path is defined by the property @Color. Alternatively,
89  the path can be filled with a color gradient specified by the properties @ColorTL,
90  @ColorTR, @ColorBL and @ColorBR. For each view's corner different color can be
91  set.
92  The property @FillRule determines the algorithm to decide which parts of complex
93  nested paths should be considered as filled and which are empty. With the property
94  @FlipY and @Offset you can control the orientation and the origin position of
95  the path coordinate system. Finally, the property @Quality determines whether
96  the paths is rasterized with or without antialiasing.
97  The visibility of the filled path is controlled by the properties @Visible and
98  @Embedded. In particular the property @Embedded can determine whether the corresponding
99  view is limited (== embedded) to the boundary of a sibling Core::Outline view
100  or not. The embedding of views within a Core::Outline allows a kind of sub-groups
101  within the GUI component itself. Very useful for any kind of scrollable lists,
102  menus, etc.
103  Finally, the property @Buffered controls whether the view should store its aspect
104  in an off-screen bitmap. This feature is useful to optimize screen update avoiding
105  the rasterization of the path. */
106 EW_DEFINE_FIELDS( ViewsFillPath, CoreRectView )
107  EW_PROPERTY( Path, GraphicsPath )
108  EW_VARIABLE( buffer, XHandle )
109  EW_PROPERTY( ColorBL, XColor )
110  EW_PROPERTY( ColorBR, XColor )
111  EW_PROPERTY( ColorTR, XColor )
112  EW_PROPERTY( ColorTL, XColor )
113  EW_PROPERTY( Offset, XPoint )
114  EW_PROPERTY( FillRule, XEnum )
115  EW_PROPERTY( Buffered, XBool )
116  EW_PROPERTY( Quality, XBool )
117  EW_PROPERTY( FlipY, XBool )
118 EW_END_OF_FIELDS( ViewsFillPath )
119 
120 /* Virtual Method Table (VMT) for the class : 'Views::FillPath' */
121 EW_DEFINE_METHODS( ViewsFillPath, CoreRectView )
122  EW_METHOD( initLayoutContext, void )( CoreRectView _this, XRect aBounds, CoreOutline
123  aOutline )
124  EW_METHOD( GetRoot, CoreRoot )( CoreView _this )
125  EW_METHOD( Draw, void )( ViewsFillPath _this, GraphicsCanvas aCanvas,
127  EW_METHOD( HandleEvent, XObject )( CoreView _this, CoreEvent aEvent )
128  EW_METHOD( CursorHitTest, CoreCursorHit )( CoreView _this, XRect aArea, XInt32
129  aFinger, XInt32 aStrikeCount, CoreView aDedicatedView, XSet aRetargetReason )
130  EW_METHOD( ArrangeView, XPoint )( CoreRectView _this, XRect aBounds, XEnum
131  aFormation )
132  EW_METHOD( MoveView, void )( CoreRectView _this, XPoint aOffset, XBool
133  aFastMove )
134  EW_METHOD( GetExtent, XRect )( CoreRectView _this )
135  EW_METHOD( ChangeViewState, void )( CoreView _this, XSet aSetState, XSet aClearState )
136  EW_METHOD( OnSetBounds, void )( ViewsFillPath _this, XRect value )
137 EW_END_OF_METHODS( ViewsFillPath )
138 
139 /* The method Draw() is invoked automatically if parts of the view should be redrawn
140  on the screen. This can occur when e.g. the view has been moved or the appearance
141  of the view has changed before.
142  Draw() is invoked automatically by the framework, you never will need to invoke
143  this method directly. However you can request an invocation of this method by
144  calling the method InvalidateArea() of the views @Owner. Usually this is also
145  unnecessary unless you are developing your own view.
146  The passed parameters determine the drawing destination aCanvas and the area
147  to redraw aClip in the coordinate space of the canvas. The parameter aOffset
148  contains the displacement between the origin of the views owner and the origin
149  of the canvas. You will need it to convert views coordinates into these of the
150  canvas.
151  The parameter aOpacity contains the opacity descended from this view's @Owner.
152  It lies in range 0 .. 255. If the view implements its own 'Opacity', 'Color',
153  etc. properties, the Draw() method should calculate the resulting real opacity
154  by mixing the values of these properties with the one passed in aOpacity parameter.
155  The parameter aBlend contains the blending mode descended from this view's @Owner.
156  It determines, whether the view should be drawn with alpha-blending active or
157  not. If aBlend is false, the outputs of the view should overwrite the corresponding
158  pixel in the drawing destination aCanvas. If aBlend is true, the outputs should
159  be mixed with the pixel already stored in aCanvas. For this purpose all Graphics
160  Engine functions provide a parameter to specify the mode for the respective drawing
161  operation. If the view implements its own 'Blend' property, the Draw() method
162  should calculate the resulting real blend mode by using logical AND operation
163  of the value of the property and the one passed in aBlend parameter. */
164 void ViewsFillPath_Draw( ViewsFillPath _this, GraphicsCanvas aCanvas, XRect aClip,
166 
167 /* 'C' function for method : 'Views::FillPath.OnSetBounds()' */
168 void ViewsFillPath_OnSetBounds( ViewsFillPath _this, XRect value );
169 
170 /* 'C' function for method : 'Views::FillPath.Done()' */
171 void ViewsFillPath_Done( ViewsFillPath _this );
172 
173 /* 'C' function for method : 'Views::FillPath.destroyBuffer()' */
174 void ViewsFillPath_destroyBuffer( ViewsFillPath _this );
175 
176 /* 'C' function for method : 'Views::FillPath.updateBuffer()' */
177 void ViewsFillPath_updateBuffer( ViewsFillPath _this, XObject sender );
178 
179 /* 'C' function for method : 'Views::FillPath.updatePath()' */
180 void ViewsFillPath_updatePath( ViewsFillPath _this, XObject sender );
181 
182 /* 'C' function for method : 'Views::FillPath.OnSetColor()' */
183 void ViewsFillPath_OnSetColor( ViewsFillPath _this, XColor value );
184 
185 /* 'C' function for method : 'Views::FillPath.OnSetOffset()' */
186 void ViewsFillPath_OnSetOffset( ViewsFillPath _this, XPoint value );
187 
188 /* 'C' function for method : 'Views::FillPath.OnSetFillRule()' */
189 void ViewsFillPath_OnSetFillRule( ViewsFillPath _this, XEnum value );
190 
191 /* 'C' function for method : 'Views::FillPath.OnSetPath()' */
192 void ViewsFillPath_OnSetPath( ViewsFillPath _this, GraphicsPath value );
193 
194 #ifdef __cplusplus
195  }
196 #endif
197 
198 #endif /* _ViewsFillPath_H */
199 
200 /* Embedded Wizard */
ViewsFillPath_OnSetBounds
void ViewsFillPath_OnSetBounds(ViewsFillPath _this, XRect value)
Definition: Views.c:2895
ViewsFillPath_Draw
void ViewsFillPath_Draw(ViewsFillPath _this, GraphicsCanvas aCanvas, XRect aClip, XPoint aOffset, XInt32 aOpacity, XBool aBlend)
Definition: Views.c:2844
ewrte.h
ViewsFillPath_updateBuffer
void ViewsFillPath_updateBuffer(ViewsFillPath _this, XObject sender)
Definition: Views.c:2924
XColor
Definition: ewrte.h:1700
ViewsFillPath_OnSetOffset
void ViewsFillPath_OnSetOffset(ViewsFillPath _this, XPoint value)
Definition: Views.c:2977
XHandle
unsigned long XHandle
Definition: ewrte.h:291
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
ViewsFillPath_Done
void ViewsFillPath_Done(ViewsFillPath _this)
Definition: Views.c:2905
ViewsFillPath_updatePath
void ViewsFillPath_updatePath(ViewsFillPath _this, XObject sender)
Definition: Views.c:2946
EW_VARIABLE
#define EW_VARIABLE(aName, aType)
Definition: ewrte.h:464
ewgfx.h
aBlend
XRect CoreOutline aOutline GraphicsCanvas XRect XPoint XInt32 XBool aBlend
Definition: _ViewsFillPath.h:165
aClip
XRect CoreOutline aOutline GraphicsCanvas XRect aClip
Definition: _ViewsFillPath.h:164
aCanvas
XRect CoreOutline aOutline GraphicsCanvas aCanvas
Definition: _ViewsFillPath.h:164
_obj_XObject
Definition: ewrte.h:281
ViewsFillPath_OnSetColor
void ViewsFillPath_OnSetColor(ViewsFillPath _this, XColor value)
Definition: Views.c:2960
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
aBounds
XRect aBounds
Definition: _ViewsFillPath.h:122
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
_CoreRectView.h
XSet
unsigned long XSet
Definition: ewrte.h:1594
ViewsFillPath_OnSetPath
void ViewsFillPath_OnSetPath(ViewsFillPath _this, GraphicsPath value)
Definition: Views.c:3009
ViewsFillPath_OnSetFillRule
void ViewsFillPath_OnSetFillRule(ViewsFillPath _this, XEnum value)
Definition: Views.c:2993
aOffset
XRect CoreOutline aOutline GraphicsCanvas XRect XPoint aOffset
Definition: _ViewsFillPath.h:165
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
aOpacity
XRect CoreOutline aOutline GraphicsCanvas XRect XPoint XInt32 aOpacity
Definition: _ViewsFillPath.h:165
ViewsFillPath_destroyBuffer
void ViewsFillPath_destroyBuffer(ViewsFillPath _this)
Definition: Views.c:2911
EW_END_OF_METHODS
#define EW_END_OF_METHODS(aClass)
Definition: ewrte.h:539
CoreCursorHit
XRect CoreOutline aOutline CoreCursorHit(CoreView _this, XRect aArea, XInt32 aFinger, XInt32 aStrikeCount, CoreView aDedicatedView, XSet aRetargetReason) EW_METHOD(ArrangeView
EW_METHOD
EW_METHOD(initLayoutContext, void)(CoreRectView _this
EW_DEFINE_FIELDS
#define EW_DEFINE_FIELDS(aClass, aSuperClass)
Definition: ewrte.h:451