# rmp::ui::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.

Source: https://omardev29.github.io/rmp-docs/reference/classes/rmp-ui-ProgressBar.html

struct `#include <rmp/ui.h>` [include/rmp/ui.h:1946](https://github.com/omardev29/raylib_multiplatform/blob/982bf2a1e307c49776bff84211260703b8de6895/include/rmp/ui.h#L1946-L1964)

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

field [include/rmp/ui.h:1947](https://github.com/omardev29/raylib_multiplatform/blob/982bf2a1e307c49776bff84211260703b8de6895/include/rmp/ui.h#L1947)

0..1, clamped

### `width`

float width = 0

field [include/rmp/ui.h:1948](https://github.com/omardev29/raylib_multiplatform/blob/982bf2a1e307c49776bff84211260703b8de6895/include/rmp/ui.h#L1948)

0 = the space available

### `height`

float height = -1

field [include/rmp/ui.h:1949](https://github.com/omardev29/raylib_multiplatform/blob/982bf2a1e307c49776bff84211260703b8de6895/include/rmp/ui.h#L1949)

-1 = from the type size

### `radius`

float radius = -1

field [include/rmp/ui.h:1950](https://github.com/omardev29/raylib_multiplatform/blob/982bf2a1e307c49776bff84211260703b8de6895/include/rmp/ui.h#L1950)

-1 = round ends

### `fill`

Color fill = CLITERAL(Color){ 0, 0, 0, 0 }

field [include/rmp/ui.h:1951](https://github.com/omardev29/raylib_multiplatform/blob/982bf2a1e307c49776bff84211260703b8de6895/include/rmp/ui.h#L1951)

{0,0,0,0} = the theme's primary

### `fill_picture`

Picture fill_picture{}

field [include/rmp/ui.h:1952](https://github.com/omardev29/raylib_multiplatform/blob/982bf2a1e307c49776bff84211260703b8de6895/include/rmp/ui.h#L1952-L1953)

The filled part as a picture: a nine-slice stretches with it

### `id`

std::string id{}

field [include/rmp/ui.h:1954](https://github.com/omardev29/raylib_multiplatform/blob/982bf2a1e307c49776bff84211260703b8de6895/include/rmp/ui.h#L1954)

As `ButtonOptions::id:` for a shared label

### `style`

Style style{}

field [include/rmp/ui.h:1955](https://github.com/omardev29/raylib_multiplatform/blob/982bf2a1e307c49776bff84211260703b8de6895/include/rmp/ui.h#L1955)

Its own look; see Style

### `on_hover`

rmp::Callback<> on_hover

field [include/rmp/ui.h:1956](https://github.com/omardev29/raylib_multiplatform/blob/982bf2a1e307c49776bff84211260703b8de6895/include/rmp/ui.h#L1956)

The pointer arrived on it

### `on_unhover`

rmp::Callback<> on_unhover

field [include/rmp/ui.h:1957](https://github.com/omardev29/raylib_multiplatform/blob/982bf2a1e307c49776bff84211260703b8de6895/include/rmp/ui.h#L1957)

...and left

### `show`

void show()

function [include/rmp/ui.h:1959](https://github.com/omardev29/raylib_multiplatform/blob/982bf2a1e307c49776bff84211260703b8de6895/include/rmp/ui.h#L1959)

Lays it out here

### `shake`

void shake()

function [include/rmp/ui.h:1960](https://github.com/omardev29/raylib_multiplatform/blob/982bf2a1e307c49776bff84211260703b8de6895/include/rmp/ui.h#L1960)

Shakes it, as `Button::shake()` does

### `hovered`

bool hovered() const

function [include/rmp/ui.h:1961](https://github.com/omardev29/raylib_multiplatform/blob/982bf2a1e307c49776bff84211260703b8de6895/include/rmp/ui.h#L1961)

The pointer is on it

### `ours`

KeptState ours

field [include/rmp/ui.h:1963](https://github.com/omardev29/raylib_multiplatform/blob/982bf2a1e307c49776bff84211260703b8de6895/include/rmp/ui.h#L1963)

What it remembers; read it with the methods above
