JubeatPlus 3.9.11
Loading...
Searching...
No Matches
PieChartView Class Reference

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>

Inheritance diagram for PieChartView:
Collaboration diagram for PieChartView:

Instance Methods

(instancetype) - initWithFrame:
 Builds the view with its default colours (clear fill/line, gray base, black border).
(void) - setChartColor:baseColor:borderColor:
 Sets the fill, base-ring, and border colours.
(void) - setBgColor:
 Sets the background-disc colour.
(void) - setLineWidth:borderInside:borderOutsize:
 Sets the ring line width and the inner and outer border widths.
(void) - setPercent:
 Sets the fill percentage immediately (clamped to 1.0) and redraws.
(void) - startNextPercent:
 Animates the fill towards a target percentage (clamped to 1.0), unless already animating.
(void) - refreshDisplay
 Requests a redraw.

Properties

id< PieChartViewDelegate > aDelegate
 The delegate told when the fill animation ends.

Detailed Description

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.

Method Documentation

◆ initWithFrame:

- (instancetype) initWithFrame: (CGRect) frame

Builds the view with its default colours (clear fill/line, gray base, black border).

Parameters
frameThe view's frame.
Returns
The initialised view.
Ghidra address:
0x9f8e0
Ghidra address:
0x9f8e0

◆ refreshDisplay

- (void) refreshDisplay

Requests a redraw.

Ghidra address:
0x9fd98

◆ setBgColor:

- (void) setBgColor: (nullable UIColor *) bgColor

Sets the background-disc colour.

Parameters
bgColorThe 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
chartColorThe filled-arc colour.
baseColorThe base-ring colour.
borderColorThe 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.
borderInsideThe inner border width.
borderOutsizeThe 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
percentThe 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
percentThe target fill fraction, 0…1.
Ghidra address:
0x9fb90
Ghidra address:
0x9fb90

Property Documentation

◆ aDelegate

- (id<PieChartViewDelegate>) aDelegate
readwritenonatomicweak

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: