MPLABĀ® Harmony Graphics Suite
GFX v3.13.0
Legato API Documentation
|
Arc widget definitions and functions. More...
Go to the source code of this file.
Data Structures | |
struct | leArcWidget |
This struct represents a arc widget. More... | |
Macros | |
#define | THIS_TYPE struct leWidget |
Typedefs | |
typedef struct leArcWidget | leArcWidget |
This struct represents a arc widget. More... | |
Functions | |
leArcWidget * | leArcWidget_New (void) |
Create widget. More... | |
void | leArcWidget_Constructor (leArcWidget *wgt) |
Initialize widget. More... | |
virtual uint32_t | getRadius (const leArcWidget *_this) |
Get radius of an arc. More... | |
virtual leResult | setRadius (leArcWidget *_this, uint32_t rad) |
Set radius of an arc. More... | |
virtual int32_t | getStartAngle (const leArcWidget *_this) |
Get start angle of the arc. More... | |
virtual leResult | setStartAngle (leArcWidget *_this, int32_t angle) |
Set start angle of an arc. More... | |
virtual uint32_t | getThickness (const leArcWidget *_this) |
Get thickness of an arc. More... | |
virtual leResult | setThickness (leArcWidget *_this, uint32_t thickness) |
Set thickness of an arc. More... | |
virtual int32_t | getCenterAngle (const leArcWidget *_this) |
Get thickness of an arc. More... | |
virtual leResult | setCenterAngle (THIS_TYPE *_this, int32_t angle) |
Set center angle of an arc. More... | |
virtual leBool | getRoundEdge (const THIS_TYPE *_this) |
Get rounded edge setting. More... | |
virtual leResult | setRoundEdge (THIS_TYPE *_this, leBool round) |
Set draw rounded edges. More... | |
Arc widget definitions and functions.
This module implements arc drawing widget functions.
typedef struct leArcWidget leArcWidget |
This struct represents a arc widget.
A arc widget draws a arc of the specified origin and radius inside the widget bounds. All coordinates are expressed in local widget space. The color of the arc is determined by the widget scheme's 'foreground' color.
|
virtual |
Get thickness of an arc.
Gets the arc thickness of _this.
_this | is the widget pointer to query. |
|
virtual |
Get radius of an arc.
Gets the radius of _this.
_this | is the widget to operate on. |
|
virtual |
Get rounded edge setting.
Gets the arc rounded edge setting of _this.
_this | is the widget pointer to query. |
|
virtual |
Get start angle of the arc.
Gets the start angle of _this.
_this | is the widget pointer to query. |
|
virtual |
Get thickness of an arc.
Gets the thickness of _this.
_this | is the widget pointer to query. |
void leArcWidget_Constructor | ( | leArcWidget * | wgt | ) |
Initialize widget.
Initializes the leArcWidget wgt.
wgt | is the widget to initialize |
leArcWidget* leArcWidget_New | ( | void | ) |
Create widget.
Creates a new leArcWidget and allocates memory for the widget through the current active context. Application is responsible for managing the widget pointer until the widget is added to a widget tree.
|
virtual |
Set center angle of an arc.
Sets the arc center angle for _this to ang.
_this | is the widget pointer to modify. |
angle | the center angle value |
|
virtual |
Set radius of an arc.
Sets the arc radius for _this to rad.
_this | is the widget pointer to modify. |
rad | the arc radius |
Set draw rounded edges.
Sets arc draw rounded edges flag for _this to round.
_this | is the widget pointer to modify. |
round | the rounded edge value |
|
virtual |
Set start angle of an arc.
Sets the start angle for _this to angle.
_this | is the widget pointer to modify. |
angle | the starting angle value |
|
virtual |
Set thickness of an arc.
Sets the arc thickness for _this to thickness.
_this | is the widget pointer to modify. |
thickness | the arc thickness |