On this page
  1. value
  2. width
  3. height
  4. radius
  5. fill
  6. fill_picture
  7. id
  8. style
  9. on_hover
  10. on_unhover
  11. show
  12. shake
  13. hovered
  14. ours

rmp::ui::ProgressBar

struct #include <rmp/ui.h> include/rmp/ui.h:1946
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