WebRadioApp  0.1
_CoreQuadView.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 _CoreQuadView_H
28 #define _CoreQuadView_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 "_CoreView.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::Outline */
60 #ifndef _CoreOutline_
61  EW_DECLARE_CLASS( CoreOutline )
62 #define _CoreOutline_
63 #endif
64 
65 /* Forward declaration of the class Core::QuadView */
66 #ifndef _CoreQuadView_
67  EW_DECLARE_CLASS( CoreQuadView )
68 #define _CoreQuadView_
69 #endif
70 
71 
72 /* The class Core::QuadView provides more specialized base functionality for all
73  view components with the shape of a quad (polygon consisting of 4 corners). It
74  provides some few properties to get and set the coordinates of the quad corners
75  @Point1, @Point2, @Point3 and @Point4.
76  The class Core::QuadView serves as base class for deriving quad components only.
77  It doesn't define any particular behavior nor appearance. */
78 EW_DEFINE_FIELDS( CoreQuadView, CoreView )
79  EW_PROPERTY( Point4, XPoint )
80  EW_PROPERTY( Point3, XPoint )
81  EW_PROPERTY( Point2, XPoint )
82  EW_PROPERTY( Point1, XPoint )
83 EW_END_OF_FIELDS( CoreQuadView )
84 
85 /* Virtual Method Table (VMT) for the class : 'Core::QuadView' */
86 EW_DEFINE_METHODS( CoreQuadView, CoreView )
87  EW_METHOD( initLayoutContext, void )( CoreQuadView _this, XRect aBounds, CoreOutline
88  aOutline )
89  EW_METHOD( GetRoot, CoreRoot )( CoreView _this )
90  EW_METHOD( Draw, void )( CoreView _this, GraphicsCanvas aCanvas,
92  EW_METHOD( HandleEvent, XObject )( CoreView _this, CoreEvent aEvent )
93  EW_METHOD( CursorHitTest, CoreCursorHit )( CoreView _this, XRect aArea, XInt32
94  aFinger, XInt32 aStrikeCount, CoreView aDedicatedView, XSet aRetargetReason )
95  EW_METHOD( ArrangeView, XPoint )( CoreQuadView _this, XRect aBounds, XEnum
96  aFormation )
97  EW_METHOD( MoveView, void )( CoreQuadView _this, XPoint aOffset, XBool
98  aFastMove )
99  EW_METHOD( GetExtent, XRect )( CoreQuadView _this )
100  EW_METHOD( ChangeViewState, void )( CoreView _this, XSet aSetState, XSet aClearState )
101  EW_METHOD( OnSetPoint4, void )( CoreQuadView _this, XPoint value )
102  EW_METHOD( OnSetPoint3, void )( CoreQuadView _this, XPoint value )
103  EW_METHOD( OnSetPoint2, void )( CoreQuadView _this, XPoint value )
104  EW_METHOD( OnSetPoint1, void )( CoreQuadView _this, XPoint value )
105 EW_END_OF_METHODS( CoreQuadView )
106 
107 /* 'C' function for method : 'Core::QuadView.initLayoutContext()' */
108 void CoreQuadView_initLayoutContext( CoreQuadView _this, XRect aBounds, CoreOutline
110 
111 /* The method ArrangeView() is invoked automatically if the superior @Owner group
112  needs to re-arrange its views. For example, the changing of the owners size can
113  cause the enclosed views to adapt their position and size, so all views still
114  fit within the new owners area. This method provides the core functionality for
115  the automatic GUI layout mechanism.
116  The arrangement is controlled primarily by the @Layout property of the view.
117  It specifies a set of alignment constraints and determines whether the view can
118  change its size. The bounds area where the view should be arranged, is passed
119  in the parameter aBounds. This is usually the current area of the views owner.
120  The parameter aFormation defines the desired arrangement mode. Depending on the
121  value of this parameter, the views can be arranged in rows or columns. If aFormation
122  == Core::Formation.None, no automatic row/column arrangement is performed and
123  the view is moved and scaled only to fit inside the aBounds area.
124  ArrangeView() is invoked automatically by the framework, so you never should
125  need to invoke it directly.
126  The method returns the size of the view after it has been arranged. */
127 XPoint CoreQuadView_ArrangeView( CoreQuadView _this, XRect aBounds, XEnum aFormation );
128 
129 /* The method MoveView() changes the position of the view by adding the value aOffset
130  to all corners of the view. For example, in case of a line view the value is
131  added to the both line end points.
132  The parameter aFastMove serves for the optimization purpose. If it is 'true',
133  the corners are modified without performing any updates of the view and without
134  redrawing the screen. This is useful, when you wish to move or arrange a lot
135  of views at once. In this case it's up to you to request the finally screen update.
136  To do this you can use the method InvalidateArea() of the views @Owner.
137  In the case aFastMove == false, the operation automatically requests the screen
138  redraw of the view areas before and after the movement. You don't need to take
139  care about it. */
140 void CoreQuadView_MoveView( CoreQuadView _this, XPoint aOffset, XBool aFastMove );
141 
142 /* The method GetExtent() returns the position and the size of the view relative
143  to the origin of its @Owner. In case of views with a non rectangular shape the
144  method returns the rectangular boundary area enclosing the entire shape. */
145 XRect CoreQuadView_GetExtent( CoreQuadView _this );
146 
147 /* 'C' function for method : 'Core::QuadView.OnSetPoint4()' */
148 void CoreQuadView_OnSetPoint4( CoreQuadView _this, XPoint value );
149 
150 /* Wrapper function for the virtual method : 'Core::QuadView.OnSetPoint4()' */
151 void CoreQuadView__OnSetPoint4( void* _this, XPoint value );
152 
153 /* 'C' function for method : 'Core::QuadView.OnSetPoint3()' */
154 void CoreQuadView_OnSetPoint3( CoreQuadView _this, XPoint value );
155 
156 /* Wrapper function for the virtual method : 'Core::QuadView.OnSetPoint3()' */
157 void CoreQuadView__OnSetPoint3( void* _this, XPoint value );
158 
159 /* 'C' function for method : 'Core::QuadView.OnSetPoint2()' */
160 void CoreQuadView_OnSetPoint2( CoreQuadView _this, XPoint value );
161 
162 /* Wrapper function for the virtual method : 'Core::QuadView.OnSetPoint2()' */
163 void CoreQuadView__OnSetPoint2( void* _this, XPoint value );
164 
165 /* 'C' function for method : 'Core::QuadView.OnSetPoint1()' */
166 void CoreQuadView_OnSetPoint1( CoreQuadView _this, XPoint value );
167 
168 /* Wrapper function for the virtual method : 'Core::QuadView.OnSetPoint1()' */
169 void CoreQuadView__OnSetPoint1( void* _this, XPoint value );
170 
171 /* The method IsPointInside() verifies whether the specified position aPoint lies
172  within the quad and returns 'true' if this is the case. If aPoint lies outside
173  the quad, the method returns 'false'. */
174 XBool CoreQuadView_IsPointInside( CoreQuadView _this, XPoint aPoint );
175 
176 /* The method HasRectShape() evaluates the shape of the quad and returns 'true'
177  if the quad has the shape of a rectangle. Otherwise 'false' is returned. */
178 XBool CoreQuadView_HasRectShape( CoreQuadView _this );
179 
180 #ifdef __cplusplus
181  }
182 #endif
183 
184 #endif /* _CoreQuadView_H */
185 
186 /* Embedded Wizard */
CoreQuadView_OnSetPoint3
void CoreQuadView_OnSetPoint3(CoreQuadView _this, XPoint value)
Definition: Core.c:995
_CoreView.h
CoreQuadView_OnSetPoint2
void CoreQuadView_OnSetPoint2(CoreQuadView _this, XPoint value)
Definition: Core.c:1029
ewrte.h
CoreQuadView_HasRectShape
XBool CoreQuadView_HasRectShape(CoreQuadView _this)
Definition: Core.c:1141
CoreQuadView__OnSetPoint4
void CoreQuadView__OnSetPoint4(void *_this, XPoint value)
Definition: Core.c:989
CoreQuadView_MoveView
void CoreQuadView_MoveView(CoreQuadView _this, XPoint aOffset, XBool aFastMove)
Definition: Core.c:863
EW_END_OF_FIELDS
#define EW_END_OF_FIELDS(aClass)
Definition: ewrte.h:460
CoreQuadView__OnSetPoint2
void CoreQuadView__OnSetPoint2(void *_this, XPoint value)
Definition: Core.c:1057
CoreQuadView_initLayoutContext
void CoreQuadView_initLayoutContext(CoreQuadView _this, XRect aBounds, CoreOutline aOutline)
Definition: Core.c:576
EW_DECLARE_CLASS
#define EW_DECLARE_CLASS(aClass)
Definition: ewrte.h:393
ewgfx.h
_obj_XObject
Definition: ewrte.h:281
aBounds
XRect aBounds
Definition: _CoreQuadView.h:87
aOutline
XRect CoreOutline aOutline XRect CoreOutline aOutline
Definition: _CoreQuadView.h:109
XInt32
signed long XInt32
Definition: ewrte.h:1586
CoreQuadView_IsPointInside
XBool CoreQuadView_IsPointInside(CoreQuadView _this, XPoint aPoint)
Definition: Core.c:1099
value
XRect CoreOutline aOutline XPoint value
Definition: _ViewsWarpView.h:137
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
CoreQuadView_ArrangeView
XPoint CoreQuadView_ArrangeView(CoreQuadView _this, XRect aBounds, XEnum aFormation)
Definition: Core.c:608
CoreQuadView__OnSetPoint1
void CoreQuadView__OnSetPoint1(void *_this, XPoint value)
Definition: Core.c:1091
XSet
unsigned long XSet
Definition: ewrte.h:1594
aOpacity
XRect CoreOutline aOutline GraphicsCanvas XRect XPoint XInt32 aOpacity
Definition: _CoreOutline.h:172
CoreQuadView_OnSetPoint1
void CoreQuadView_OnSetPoint1(CoreQuadView _this, XPoint value)
Definition: Core.c:1063
CoreQuadView_GetExtent
XRect CoreQuadView_GetExtent(CoreQuadView _this)
Definition: Core.c:884
aClip
XRect CoreOutline aOutline GraphicsCanvas XRect aClip
Definition: _CoreOutline.h:171
CoreQuadView_OnSetPoint4
void CoreQuadView_OnSetPoint4(CoreQuadView _this, XPoint value)
Definition: Core.c:961
XPoint
Definition: ewrte.h:1616
EW_PROPERTY
#define EW_PROPERTY(aName, aType)
Definition: ewrte.h:466
aOffset
XRect CoreOutline aOutline GraphicsCanvas XRect XPoint aOffset
Definition: _CoreOutline.h:172
EW_METHOD
EW_METHOD(initLayoutContext, void)(CoreQuadView _this
CoreCursorHit
XRect CoreOutline aOutline CoreCursorHit(CoreView _this, XRect aArea, XInt32 aFinger, XInt32 aStrikeCount, CoreView aDedicatedView, XSet aRetargetReason) EW_METHOD(ArrangeView
aCanvas
XRect CoreOutline aOutline GraphicsCanvas aCanvas
Definition: _CoreOutline.h:171
EW_END_OF_METHODS
#define EW_END_OF_METHODS(aClass)
Definition: ewrte.h:539
CoreQuadView__OnSetPoint3
void CoreQuadView__OnSetPoint3(void *_this, XPoint value)
Definition: Core.c:1023
aBlend
XRect CoreOutline aOutline GraphicsCanvas XRect XPoint XInt32 XBool aBlend
Definition: _CoreOutline.h:172
EW_DEFINE_FIELDS
#define EW_DEFINE_FIELDS(aClass, aSuperClass)
Definition: ewrte.h:451