pub struct Grid<'a, 'ctx> { /* private fields */ }Expand description
A grid container for arranging elements in columns.
Implementations§
Source§impl<'a, 'ctx> Grid<'a, 'ctx>
impl<'a, 'ctx> Grid<'a, 'ctx>
pub fn slider( &mut self, label: &str, value: &mut f32, range: RangeInclusive<f32>, ) -> Response
pub fn slider_f64( &mut self, label: &str, value: &mut f64, range: RangeInclusive<f64>, ) -> Response
pub fn slider_int( &mut self, label: &str, value: &mut i32, range: RangeInclusive<i32>, ) -> Response
pub fn slider_uint( &mut self, label: &str, value: &mut u32, range: RangeInclusive<u32>, ) -> Response
pub fn checkbox(&mut self, label: &str, value: &mut bool) -> Response
pub fn color_picker(&mut self, label: &str, value: &mut [f32; 3]) -> Response
pub fn color_picker4(&mut self, label: &str, value: &mut [f32; 4]) -> Response
pub fn text_input(&mut self, label: &str, value: &mut String) -> Response
pub fn dropdown( &mut self, label: &str, selected: &mut usize, options: &[&str], ) -> Response
pub fn label(&mut self, text: &str)
pub fn progress_bar(&mut self, label: &str, value: f64, accent: AccentColor)
pub fn progress_bar_with_subtitle( &mut self, label: &str, value: f64, accent: AccentColor, subtitle: &str, )
pub fn stat( &mut self, label: &str, value: &str, subvalue: Option<&str>, accent: AccentColor, )
pub fn status( &mut self, label: &str, active: bool, active_text: Option<&str>, inactive_text: Option<&str>, active_color: AccentColor, inactive_color: AccentColor, )
pub fn mini_chart( &mut self, label: &str, values: &[f32], unit: Option<&str>, accent: AccentColor, )
pub fn plot( &mut self, label: &str, series: &[(&str, &[f32], AccentColor)], x_label: Option<&str>, y_label: Option<&str>, )
Sourcepub fn plot_with_autoscale(
&mut self,
label: &str,
series: &[(&str, &[f32], AccentColor, bool)],
x_label: Option<&str>,
y_label: Option<&str>,
)
pub fn plot_with_autoscale( &mut self, label: &str, series: &[(&str, &[f32], AccentColor, bool)], x_label: Option<&str>, y_label: Option<&str>, )
Plot with explicit autoscale control per series series: (name, values, color, autoscale)
pub fn kv(&mut self, label: &str, value: &str)
pub fn separator(&mut self)
pub fn grid<F>(&mut self, cols: usize, f: F)
Auto Trait Implementations§
impl<'a, 'ctx> Freeze for Grid<'a, 'ctx>
impl<'a, 'ctx> !RefUnwindSafe for Grid<'a, 'ctx>
impl<'a, 'ctx> Send for Grid<'a, 'ctx>
impl<'a, 'ctx> Sync for Grid<'a, 'ctx>
impl<'a, 'ctx> Unpin for Grid<'a, 'ctx>
impl<'a, 'ctx> UnsafeUnpin for Grid<'a, 'ctx>
impl<'a, 'ctx> !UnwindSafe for Grid<'a, 'ctx>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more