WebRadioApp  0.1
_ViewsRectangle.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 _ViewsRectangle_H
28 #define _ViewsRectangle_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 Views::Rectangle */
72 #ifndef _ViewsRectangle_
73  EW_DECLARE_CLASS( ViewsRectangle )
74 #define _ViewsRectangle_
75 #endif
76 
77 
78 /* The class Views::Rectangle provides a kind of view specialized to draw a filled
79  rectangle. The position and the size of the rectangle are determined by the property
80  @Bounds. The color to fill the rectangle is defined by the property @Color. Alternatively,
81  the rectangle can be filled with a color gradient specified by the properties
82  @ColorTL, @ColorTR, @ColorBL and @ColorBR. For each view's corner different color
83  can be set.
84  The visibility of the rectangle is controlled by the properties @Visible, @AlphaBlended
85  and @Embedded. In particular the property @Embedded can determine whether the
86  corresponding view is limited (== embedded) to the boundary of a sibling Core::Outline
87  view or not. The embedding of views within a Core::Outline allows a kind of sub-groups
88  within the GUI component itself. Very useful for any kind of scrollable lists,
89  menus, etc. */
90 EW_DEFINE_FIELDS( ViewsRectangle, CoreRectView )
91  EW_PROPERTY( ColorBL, XColor )
92  EW_PROPERTY( ColorBR, XColor )
93  EW_PROPERTY( ColorTR, XColor )
94  EW_PROPERTY( ColorTL, XColor )
95 EW_END_OF_FIELDS( ViewsRectangle )
96 
97 /* Virtual Method Table (VMT) for the class : 'Views::Rectangle' */
98 EW_DEFINE_METHODS( ViewsRectangle, CoreRectView )
99  EW_METHOD( initLayoutContext, void )( CoreRectView _this, XRect aBounds, CoreOutline
100  aOutline )
101  EW_METHOD( GetRoot, CoreRoot )( CoreView _this )
102  EW_METHOD( Draw, void )( ViewsRectangle _this, GraphicsCanvas aCanvas,
104  EW_METHOD( HandleEvent, XObject )( CoreView _this, CoreEvent aEvent )
105  EW_METHOD( CursorHitTest, CoreCursorHit )( CoreView _this, XRect aArea, XInt32
106  aFinger, XInt32 aStrikeCount, CoreView aDedicatedView, XSet aRetargetReason )
107  EW_METHOD( ArrangeView, XPoint )( CoreRectView _this, XRect aBounds, XEnum
108  aFormation )
109  EW_METHOD( MoveView, void )( CoreRectView _this, XPoint aOffset, XBool
110  aFastMove )
111  EW_METHOD( GetExtent, XRect )( CoreRectView _this )
112  EW_METHOD( ChangeViewState, void )( CoreView _this, XSet aSetState, XSet aClearState )
113  EW_METHOD( OnSetBounds, void )( CoreRectView _this, XRect value )
114 EW_END_OF_METHODS( ViewsRectangle )
115 
116 /* The method Draw() is invoked automatically if parts of the view should be redrawn
117  on the screen. This can occur when e.g. the view has been moved or the appearance
118  of the view has changed before.
119  Draw() is invoked automatically by the framework, you never will need to invoke
120  this method directly. However you can request an invocation of this method by
121  calling the method InvalidateArea() of the views @Owner. Usually this is also
122  unnecessary unless you are developing your own view.
123  The passed parameters determine the drawing destination aCanvas and the area
124  to redraw aClip in the coordinate space of the canvas. The parameter aOffset
125  contains the displacement between the origin of the views owner and the origin
126  of the canvas. You will need it to convert views coordinates into these of the
127  canvas.
128  The parameter aOpacity contains the opacity descended from this view's @Owner.
129  It lies in range 0 .. 255. If the view implements its own 'Opacity', 'Color',
130  etc. properties, the Draw() method should calculate the resulting real opacity
131  by mixing the values of these properties with the one passed in aOpacity parameter.
132  The parameter aBlend contains the blending mode descended from this view's @Owner.
133  It determines, whether the view should be drawn with alpha-blending active or
134  not. If aBlend is false, the outputs of the view should overwrite the corresponding
135  pixel in the drawing destination aCanvas. If aBlend is true, the outputs should
136  be mixed with the pixel already stored in aCanvas. For this purpose all Graphics
137  Engine functions provide a parameter to specify the mode for the respective drawing
138  operation. If the view implements its own 'Blend' property, the Draw() method
139  should calculate the resulting real blend mode by using logical AND operation
140  of the value of the property and the one passed in aBlend parameter. */
141 void ViewsRectangle_Draw( ViewsRectangle _this, GraphicsCanvas aCanvas, XRect aClip,
143 
144 /* 'C' function for method : 'Views::Rectangle.OnSetColor()' */
145 void ViewsRectangle_OnSetColor( ViewsRectangle _this, XColor value );
146 
147 #ifdef __cplusplus
148  }
149 #endif
150 
151 #endif /* _ViewsRectangle_H */
152 
153 /* Embedded Wizard */
ewrte.h
EW_METHOD
EW_METHOD(initLayoutContext, void)(CoreRectView _this
XColor
Definition: ewrte.h:1700
EW_END_OF_FIELDS
#define EW_END_OF_FIELDS(aClass)
Definition: ewrte.h:460
aBounds
XRect aBounds
Definition: _ViewsRectangle.h:99
EW_DECLARE_CLASS
#define EW_DECLARE_CLASS(aClass)
Definition: ewrte.h:393
aClip
XRect CoreOutline aOutline GraphicsCanvas XRect aClip
Definition: _ViewsRectangle.h:141
aOffset
XRect CoreOutline aOutline GraphicsCanvas XRect XPoint aOffset
Definition: _ViewsRectangle.h:142
ewgfx.h
_obj_XObject
Definition: ewrte.h:281
aOpacity
XRect CoreOutline aOutline GraphicsCanvas XRect XPoint XInt32 aOpacity
Definition: _ViewsRectangle.h:142
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
aCanvas
XRect CoreOutline aOutline GraphicsCanvas aCanvas
Definition: _ViewsRectangle.h:141
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
XPoint
Definition: ewrte.h:1616
ViewsRectangle_Draw
void ViewsRectangle_Draw(ViewsRectangle _this, GraphicsCanvas aCanvas, XRect aClip, XPoint aOffset, XInt32 aOpacity, XBool aBlend)
Definition: Views.c:147
EW_PROPERTY
#define EW_PROPERTY(aName, aType)
Definition: ewrte.h:466
aBlend
XRect CoreOutline aOutline GraphicsCanvas XRect XPoint XInt32 XBool aBlend
Definition: _ViewsRectangle.h:142
EW_END_OF_METHODS
#define EW_END_OF_METHODS(aClass)
Definition: ewrte.h:539
ViewsRectangle_OnSetColor
void ViewsRectangle_OnSetColor(ViewsRectangle _this, XColor value)
Definition: Views.c:173
CoreCursorHit
XRect CoreOutline aOutline CoreCursorHit(CoreView _this, XRect aArea, XInt32 aFinger, XInt32 aStrikeCount, CoreView aDedicatedView, XSet aRetargetReason) EW_METHOD(ArrangeView
EW_DEFINE_FIELDS
#define EW_DEFINE_FIELDS(aClass, aSuperClass)
Definition: ewrte.h:451