pub struct Horizontal<'a, 'ctx> { /* private fields */ }Expand description
A horizontal layout container for arranging widgets side by side.
Implementations§
Source§impl<'a, 'ctx> Horizontal<'a, 'ctx>
impl<'a, 'ctx> Horizontal<'a, 'ctx>
pub fn label(&mut self, text: &str)
pub fn kv(&mut self, label: &str, value: &str)
pub fn text_input(&mut self, label: &str, value: &mut String) -> Response
pub fn text_input_inline( &mut self, placeholder: &str, value: &mut String, ) -> Response
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 dropdown( &mut self, label: &str, selected: &mut usize, options: &[&str], ) -> Response
Auto Trait Implementations§
impl<'a, 'ctx> Freeze for Horizontal<'a, 'ctx>
impl<'a, 'ctx> !RefUnwindSafe for Horizontal<'a, 'ctx>
impl<'a, 'ctx> Send for Horizontal<'a, 'ctx>
impl<'a, 'ctx> Sync for Horizontal<'a, 'ctx>
impl<'a, 'ctx> Unpin for Horizontal<'a, 'ctx>
impl<'a, 'ctx> UnsafeUnpin for Horizontal<'a, 'ctx>
impl<'a, 'ctx> !UnwindSafe for Horizontal<'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