WebRadioApp  0.1
_GraphicsArcPath.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 _GraphicsArcPath_H
28 #define _GraphicsArcPath_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 "_GraphicsPath.h"
46 
47 /* Forward declaration of the class Graphics::ArcPath */
48 #ifndef _GraphicsArcPath_
49  EW_DECLARE_CLASS( GraphicsArcPath )
50 #define _GraphicsArcPath_
51 #endif
52 
53 
54 /* The class Graphics::ArcPath provides a convenient version of Graphics::Path class
55  intended to calculate paths for elliptical arcs, segments, pies or rings. The
56  arc is configured with the properties @StartAngle, @EndAngle, @RadiusX and @RadiusY.
57  With the property @Style the particular variant (Arc, Segment, Pie, etc.) of
58  the resulting path is determined. If the style 'Pie', 'PieRounded', 'PieRoundedStart'
59  or 'PieRoundedEnd' is selected, the the additional properties @InnerRadiusX and
60  @InnerRadiusY can be used to construct a ring or segment of a ring.
61  With the path information the curves can be displayed on the screen. The view
62  Views::FillPath displays the path as filled polygon. The view Views::StrokePath
63  displays the path as a line with specified width. */
64 EW_DEFINE_FIELDS( GraphicsArcPath, GraphicsPath )
65  EW_PROPERTY( NoOfEdges, XInt32 )
66  EW_PROPERTY( EndAngle, XFloat )
67  EW_PROPERTY( StartAngle, XFloat )
68  EW_PROPERTY( InnerRadiusY, XFloat )
69  EW_PROPERTY( InnerRadiusX, XFloat )
70  EW_PROPERTY( RadiusY, XFloat )
71  EW_PROPERTY( RadiusX, XFloat )
72  EW_PROPERTY( Style, XEnum )
73 EW_END_OF_FIELDS( GraphicsArcPath )
74 
75 /* Virtual Method Table (VMT) for the class : 'Graphics::ArcPath' */
76 EW_DEFINE_METHODS( GraphicsArcPath, GraphicsPath )
77 EW_END_OF_METHODS( GraphicsArcPath )
78 
79 /* 'C' function for method : 'Graphics::ArcPath.updatePath()' */
80 void GraphicsArcPath_updatePath( GraphicsArcPath _this, XObject sender );
81 
82 /* 'C' function for method : 'Graphics::ArcPath.OnSetNoOfEdges()' */
83 void GraphicsArcPath_OnSetNoOfEdges( GraphicsArcPath _this, XInt32 value );
84 
85 /* 'C' function for method : 'Graphics::ArcPath.OnSetEndAngle()' */
86 void GraphicsArcPath_OnSetEndAngle( GraphicsArcPath _this, XFloat value );
87 
88 /* 'C' function for method : 'Graphics::ArcPath.OnSetStartAngle()' */
89 void GraphicsArcPath_OnSetStartAngle( GraphicsArcPath _this, XFloat value );
90 
91 /* 'C' function for method : 'Graphics::ArcPath.OnGetInnerRadius()' */
92 XFloat GraphicsArcPath_OnGetInnerRadius( GraphicsArcPath _this );
93 
94 /* 'C' function for method : 'Graphics::ArcPath.OnSetInnerRadius()' */
95 void GraphicsArcPath_OnSetInnerRadius( GraphicsArcPath _this, XFloat value );
96 
97 /* 'C' function for method : 'Graphics::ArcPath.OnSetRadius()' */
98 void GraphicsArcPath_OnSetRadius( GraphicsArcPath _this, XFloat value );
99 
100 /* 'C' function for method : 'Graphics::ArcPath.OnSetStyle()' */
101 void GraphicsArcPath_OnSetStyle( GraphicsArcPath _this, XEnum value );
102 
103 #ifdef __cplusplus
104  }
105 #endif
106 
107 #endif /* _GraphicsArcPath_H */
108 
109 /* Embedded Wizard */
ewrte.h
EW_END_OF_FIELDS
#define EW_END_OF_FIELDS(aClass)
Definition: ewrte.h:460
GraphicsArcPath_OnSetStartAngle
void GraphicsArcPath_OnSetStartAngle(GraphicsArcPath _this, XFloat value)
Definition: Graphics.c:1794
EW_DECLARE_CLASS
#define EW_DECLARE_CLASS(aClass)
Definition: ewrte.h:393
GraphicsArcPath_OnSetInnerRadius
void GraphicsArcPath_OnSetInnerRadius(GraphicsArcPath _this, XFloat value)
Definition: Graphics.c:1812
ewgfx.h
_obj_XObject
Definition: ewrte.h:281
_GraphicsPath.h
XInt32
signed long XInt32
Definition: ewrte.h:1586
value
XRect CoreOutline aOutline XPoint value
Definition: _ViewsWarpView.h:137
XEnum
unsigned long XEnum
Definition: ewrte.h:1593
EW_DEFINE_METHODS
#define EW_DEFINE_METHODS(aClass, aSuperClass)
Definition: ewrte.h:524
GraphicsArcPath_OnGetInnerRadius
XFloat GraphicsArcPath_OnGetInnerRadius(GraphicsArcPath _this)
Definition: Graphics.c:1806
GraphicsArcPath_OnSetNoOfEdges
void GraphicsArcPath_OnSetNoOfEdges(GraphicsArcPath _this, XInt32 value)
Definition: Graphics.c:1766
XFloat
float XFloat
Definition: ewrte.h:1595
GraphicsArcPath_updatePath
void GraphicsArcPath_updatePath(GraphicsArcPath _this, XObject sender)
Definition: Graphics.c:1415
sender
XRect CoreOutline aOutline XObject sender
Definition: _ApplicationRadioInterface.h:186
EW_PROPERTY
#define EW_PROPERTY(aName, aType)
Definition: ewrte.h:466
GraphicsArcPath_OnSetRadius
void GraphicsArcPath_OnSetRadius(GraphicsArcPath _this, XFloat value)
Definition: Graphics.c:1828
EW_END_OF_METHODS
#define EW_END_OF_METHODS(aClass)
Definition: ewrte.h:539
GraphicsArcPath_OnSetStyle
void GraphicsArcPath_OnSetStyle(GraphicsArcPath _this, XEnum value)
Definition: Graphics.c:1841
GraphicsArcPath_OnSetEndAngle
void GraphicsArcPath_OnSetEndAngle(GraphicsArcPath _this, XFloat value)
Definition: Graphics.c:1782
EW_DEFINE_FIELDS
#define EW_DEFINE_FIELDS(aClass, aSuperClass)
Definition: ewrte.h:451