Fusuma

Components / Components

gauge

A gauge filled to permille thousandths, text in the middle.

Try it

This is the Components page of the gallery, running in your browser: gauge is on it, and it is the real widget. Press Run, then use it.

Live: Components, where gauge is usedOpen full size

Also on this pagealertbannersnackbarbreadcrumbsstepstile

A gauge filled to permille thousandths, text in the middle.

.size(px) sets the diameter.

Signature

pub fn gauge(permille: u16, text: &str) -> Gauge

Methods

  • .size(px: u32) -> Self — px pixels across (the theme's size by default).

Example

use fusuma::gauge;
let view = gauge(640, "64%").size(96);
let built = fusuma::doc::built::<(), _>(&view);
assert_eq!(built.nodes(), 1);

All components · Source