Skip to content

Gauge

A native SwiftUI gauge with linear and circular accessory styles.

#Import

Import SwiftUiGauge from quickgui.

use quickgui::*;

#Usage

SwiftUiGauge::new(1, 0.7).label("Battery")

#API reference

Expand an entry for its description and complete signature. A dash means no declaration default is documented.

SwiftUiGauge

View source
pub fn new(id: u64, value: f64) -> Self
rangepub fn range(mut self, minimum: f64, maximum: f64) -> Self—

Configures range for this part.

pub fn range(mut self, minimum: f64, maximum: f64) -> Self
View source
labelpub fn label(mut self, label: impl Into<Arc<str>>) -> Self—

Configures label for this part.

pub fn label(mut self, label: impl Into<Arc<str>>) -> Self
View source
current_value_labelpub fn current_value_label(mut self, label: impl Into<Arc<str>>) -> Self—

Configures current value label for this part.

pub fn current_value_label(mut self, label: impl Into<Arc<str>>) -> Self
View source
minimum_value_labelpub fn minimum_value_label(mut self, label: impl Into<Arc<str>>) -> Self—

Configures minimum value label for this part.

pub fn minimum_value_label(mut self, label: impl Into<Arc<str>>) -> Self
View source
maximum_value_labelpub fn maximum_value_label(mut self, label: impl Into<Arc<str>>) -> Self—

Configures maximum value label for this part.

pub fn maximum_value_label(mut self, label: impl Into<Arc<str>>) -> Self
View source
stylepub fn style(mut self, style: SwiftUiGaugeStyle) -> Self—

Configures style for this part.

pub fn style(mut self, style: SwiftUiGaugeStyle) -> Self
View source
test_idpub fn test_id(mut self, test_id: impl Into<Arc<str>>) -> Self—

Configures test id for this part.

pub fn test_id(mut self, test_id: impl Into<Arc<str>>) -> Self
View source
modifierpub fn modifier(mut self, modifier: SwiftUiModifier) -> Self—

Configures modifier for this part.

pub fn modifier(mut self, modifier: SwiftUiModifier) -> Self
View source
modifierspub fn modifiers(mut self, modifiers: impl IntoIterator<Item = SwiftUiModifier>) -> Self—

Configures modifiers for this part.

pub fn modifiers(mut self, modifiers: impl IntoIterator<Item = SwiftUiModifier>) -> Self
View source