pub struct Window<'a> { /* private fields */ }Expand description
A named window containing UI elements. Created via Context::window().
Implementations§
Source§impl<'a> Window<'a>
impl<'a> Window<'a>
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 kv(&mut self, label: &str, value: &str)
pub fn kv_value(&mut self, label: &str, value: &mut String) -> Response
pub fn horizontal<F>(&mut self, f: F)where
F: FnOnce(&mut Horizontal<'_, 'a>),
pub fn separator(&mut self)
pub fn section(&mut self, title: &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 set_accent(&mut self, accent: AccentColor)
pub fn grid<F>(&mut self, cols: usize, f: F)
pub fn plot( &mut self, label: &str, series: &[(&str, &[f32], AccentColor)], x_label: Option<&str>, y_label: Option<&str>, )
Auto Trait Implementations§
impl<'a> Freeze for Window<'a>
impl<'a> !RefUnwindSafe for Window<'a>
impl<'a> Send for Window<'a>
impl<'a> Sync for Window<'a>
impl<'a> Unpin for Window<'a>
impl<'a> UnsafeUnpin for Window<'a>
impl<'a> !UnwindSafe for Window<'a>
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