A ring that fills clockwise from the top to a percentage, over an optional base ring and inner/outer borders, animating smoothly towards a target.
More...
#include <PieChartView.h>
A ring that fills clockwise from the top to a percentage, over an optional base ring and inner/outer borders, animating smoothly towards a target.
◆ initWithFrame:
| - (instancetype) initWithFrame: |
|
(CGRect) | frame |
|
Builds the view with its default colours (clear fill/line, gray base, black border).
- Parameters
-
- Returns
- The initialised view.
- Ghidra address:
- 0x9f8e0
- Ghidra address:
- 0x9f8e0
◆ refreshDisplay
Requests a redraw.
- Ghidra address:
- 0x9fd98
◆ setBgColor:
| - (void) setBgColor: |
|
(nullable UIColor *) | bgColor |
|
Sets the background-disc colour.
- Parameters
-
| bgColor | The disc colour drawn behind the rings. |
- Ghidra address:
- 0x9fb34
◆ setChartColor:baseColor:borderColor:
| - (void) setChartColor: |
|
(nullable UIColor *) | chartColor |
| baseColor: |
|
(nullable UIColor *) | baseColor |
| borderColor: |
|
(nullable UIColor *) | borderColor |
Sets the fill, base-ring, and border colours.
- Parameters
-
| chartColor | The filled-arc colour. |
| baseColor | The base-ring colour. |
| borderColor | The inner/outer border colour. |
- Ghidra address:
- 0x9fa74
◆ setLineWidth:borderInside:borderOutsize:
| - (void) setLineWidth: |
|
(float) | lineWidth_ |
| borderInside: |
|
(float) | borderInside |
| borderOutsize: |
|
(float) | borderOutsize |
Sets the ring line width and the inner and outer border widths.
- Parameters
-
| lineWidth_ | The ring line width. |
| borderInside | The inner border width. |
| borderOutsize | The outer border width. |
- Ghidra address:
- 0x9fb48
- Ghidra address:
- 0x9fb48
◆ setPercent:
| - (void) setPercent: |
|
(float) | percent |
|
Sets the fill percentage immediately (clamped to 1.0) and redraws.
- Parameters
-
| percent | The fill fraction, 0…1. |
- Ghidra address:
- 0x9fb70
- Ghidra address:
- 0x9fb70
◆ startNextPercent:
| - (void) startNextPercent: |
|
(float) | percent |
|
Animates the fill towards a target percentage (clamped to 1.0), unless already animating.
- Parameters
-
| percent | The target fill fraction, 0…1. |
- Ghidra address:
- 0x9fb90
- Ghidra address:
- 0x9fb90
◆ aDelegate
The delegate told when the fill animation ends.
Held weakly.
- Ghidra address:
- 0xa0160 (getter), 0xa0180 (setter)
The documentation for this class was generated from the following files: