WebRadioApp  0.1
_CoreRectView.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 _CoreRectView_H
28 #define _CoreRectView_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::RectView */
66 #ifndef _CoreRectView_
67  EW_DECLARE_CLASS( CoreRectView )
68 #define _CoreRectView_
69 #endif
70 
71 
72 /* The class Core::RectView provides more specialized base functionality for all
73  view components with the shape of a rectangle. It provides a property to get
74  and set the coordinates of the rectangle @Bounds.
75  The class Core::RectView serves as base class for deriving rectangle components
76  only. It doesn't define any particular behavior nor appearance. */
77 EW_DEFINE_FIELDS( CoreRectView, CoreView )
78  EW_PROPERTY( Bounds, XRect )
79 EW_END_OF_FIELDS( CoreRectView )
80 
81 /* Virtual Method Table (VMT) for the class : 'Core::RectView' */
82 EW_DEFINE_METHODS( CoreRectView, CoreView )
83  EW_METHOD( initLayoutContext, void )( CoreRectView _this, XRect aBounds, CoreOutline
84  aOutline )
85  EW_METHOD( GetRoot, CoreRoot )( CoreView _this )
86  EW_METHOD( Draw, void )( CoreView _this, GraphicsCanvas aCanvas,
88  EW_METHOD( HandleEvent, XObject )( CoreView _this, CoreEvent aEvent )
89  EW_METHOD( CursorHitTest, CoreCursorHit )( CoreView _this, XRect aArea, XInt32
90  aFinger, XInt32 aStrikeCount, CoreView aDedicatedView, XSet aRetargetReason )
91  EW_METHOD( ArrangeView, XPoint )( CoreRectView _this, XRect aBounds, XEnum
92  aFormation )
93  EW_METHOD( MoveView, void )( CoreRectView _this, XPoint aOffset, XBool
94  aFastMove )
95  EW_METHOD( GetExtent, XRect )( CoreRectView _this )
96  EW_METHOD( ChangeViewState, void )( CoreView _this, XSet aSetState, XSet aClearState )
97  EW_METHOD( OnSetBounds, void )( CoreRectView _this, XRect value )
98 EW_END_OF_METHODS( CoreRectView )
99 
100 /* 'C' function for method : 'Core::RectView.initLayoutContext()' */
101 void CoreRectView_initLayoutContext( CoreRectView _this, XRect aBounds, CoreOutline
103 
104 /* The method ArrangeView() is invoked automatically if the superior @Owner group
105  needs to re-arrange its views. For example, the changing of the owners size can
106  cause the enclosed views to adapt their position and size, so all views still
107  fit within the new owners area. This method provides the core functionality for
108  the automatic GUI layout mechanism.
109  The arrangement is controlled primarily by the @Layout property of the view.
110  It specifies a set of alignment constraints and determines whether the view can
111  change its size. The bounds area where the view should be arranged, is passed
112  in the parameter aBounds. This is usually the current area of the views owner.
113  The parameter aFormation defines the desired arrangement mode. Depending on the
114  value of this parameter, the views can be arranged in rows or columns. If aFormation
115  == Core::Formation.None, no automatic row/column arrangement is performed and
116  the view is moved and scaled only to fit inside the aBounds area.
117  ArrangeView() is invoked automatically by the framework, so you never should
118  need to invoke it directly.
119  The method returns the size of the view after it has been arranged. */
120 XPoint CoreRectView_ArrangeView( CoreRectView _this, XRect aBounds, XEnum aFormation );
121 
122 /* The method MoveView() changes the position of the view by adding the value aOffset
123  to all corners of the view. For example, in case of a line view the value is
124  added to the both line end points.
125  The parameter aFastMove serves for the optimization purpose. If it is 'true',
126  the corners are modified without performing any updates of the view and without
127  redrawing the screen. This is useful, when you wish to move or arrange a lot
128  of views at once. In this case it's up to you to request the finally screen update.
129  To do this you can use the method InvalidateArea() of the views @Owner.
130  In the case aFastMove == false, the operation automatically requests the screen
131  redraw of the view areas before and after the movement. You don't need to take
132  care about it. */
133 void CoreRectView_MoveView( CoreRectView _this, XPoint aOffset, XBool aFastMove );
134 
135 /* The method GetExtent() returns the position and the size of the view relative
136  to the origin of its @Owner. In case of views with a non rectangular shape the
137  method returns the rectangular boundary area enclosing the entire shape. */
138 XRect CoreRectView_GetExtent( CoreRectView _this );
139 
140 /* 'C' function for method : 'Core::RectView.OnSetBounds()' */
141 void CoreRectView_OnSetBounds( CoreRectView _this, XRect value );
142 
143 /* Wrapper function for the virtual method : 'Core::RectView.OnSetBounds()' */
144 void CoreRectView__OnSetBounds( void* _this, XRect value );
145 
146 #ifdef __cplusplus
147  }
148 #endif
149 
150 #endif /* _CoreRectView_H */
151 
152 /* Embedded Wizard */
_CoreView.h
ewrte.h
CoreRectView_MoveView
void CoreRectView_MoveView(CoreRectView _this, XPoint aOffset, XBool aFastMove)
Definition: Core.c:1457
CoreRectView__OnSetBounds
void CoreRectView__OnSetBounds(void *_this, XRect value)
Definition: Core.c:1502
CoreRectView_OnSetBounds
void CoreRectView_OnSetBounds(CoreRectView _this, XRect value)
Definition: Core.c:1474
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
ewgfx.h
_obj_XObject
Definition: ewrte.h:281
CoreCursorHit
XRect CoreOutline aOutline CoreCursorHit(CoreView _this, XRect aArea, XInt32 aFinger, XInt32 aStrikeCount, CoreView aDedicatedView, XSet aRetargetReason) EW_METHOD(ArrangeView
XInt32
signed long XInt32
Definition: ewrte.h:1586
CoreRectView_ArrangeView
XPoint CoreRectView_ArrangeView(CoreRectView _this, XRect aBounds, XEnum aFormation)
Definition: Core.c:1232
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
CoreRectView_initLayoutContext
CoreRectView_initLayoutContext
Definition: Application.c:2581
XSet
unsigned long XSet
Definition: ewrte.h:1594
aOpacity
XRect CoreOutline aOutline GraphicsCanvas XRect XPoint XInt32 aOpacity
Definition: _CoreOutline.h:172
aClip
XRect CoreOutline aOutline GraphicsCanvas XRect aClip
Definition: _CoreOutline.h:171
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
aBounds
XRect aBounds
Definition: _CoreRectView.h:83
aCanvas
XRect CoreOutline aOutline GraphicsCanvas aCanvas
Definition: _CoreOutline.h:171
aOutline
XRect CoreOutline aOutline XRect CoreOutline aOutline
Definition: _CoreRectView.h:102
EW_END_OF_METHODS
#define EW_END_OF_METHODS(aClass)
Definition: ewrte.h:539
EW_METHOD
EW_METHOD(initLayoutContext, void)(CoreRectView _this
aBlend
XRect CoreOutline aOutline GraphicsCanvas XRect XPoint XInt32 XBool aBlend
Definition: _CoreOutline.h:172
CoreRectView_GetExtent
XRect CoreRectView_GetExtent(CoreRectView _this)
Definition: Core.c:1468
EW_DEFINE_FIELDS
#define EW_DEFINE_FIELDS(aClass, aSuperClass)
Definition: ewrte.h:451