rmp::ui::ProgressBar
struct ProgressBar
A progress bar with a look of its own: the style is the track's (its background, its skin), fill and fill_picture the bar's.
value
float value = 0
0..1, clamped
width
float width = 0
0 = the space available
height
float height = -1
-1 = from the type size
radius
float radius = -1
-1 = round ends
fill
Color fill = CLITERAL(Color){ 0, 0, 0, 0 }
{0,0,0,0} = the theme's primary
fill_picture
Picture fill_picture{}
The filled part as a picture: a nine-slice stretches with it
id
std::string id{}
As ButtonOptions::id: for a shared label
style
Style style{}
Its own look; see Style
on_hover
rmp::Callback<> on_hover
The pointer arrived on it
on_unhover
rmp::Callback<> on_unhover
...and left
show
void show()
Lays it out here
shake
void shake()
Shakes it, as Button::shake() does
hovered
bool hovered() const
The pointer is on it
ours
KeptState ours
What it remembers; read it with the methods above