Struct imgui::InputScalar
source · pub struct InputScalar<'ui, 'p, T, L, F = &'static str> { /* private fields */ }
Expand description
Builder for an input scalar widget.
Implementations§
source§impl<'ui, 'p, L: AsRef<str>, T: DataTypeKind> InputScalar<'ui, 'p, T, L>
impl<'ui, 'p, L: AsRef<str>, T: DataTypeKind> InputScalar<'ui, 'p, T, L>
source§impl<'ui, 'p, L: AsRef<str>, T: DataTypeKind, F: AsRef<str>> InputScalar<'ui, 'p, T, L, F>
impl<'ui, 'p, L: AsRef<str>, T: DataTypeKind, F: AsRef<str>> InputScalar<'ui, 'p, T, L, F>
sourcepub fn display_format<F2: AsRef<str>>(
self,
display_format: F2
) -> InputScalar<'ui, 'p, T, L, F2>
pub fn display_format<F2: AsRef<str>>( self, display_format: F2 ) -> InputScalar<'ui, 'p, T, L, F2>
Sets the display format using a C-style printf string
sourcepub fn build(self) -> bool
pub fn build(self) -> bool
Builds an input scalar that is bound to the given value.
Returns true if the value was changed.
pub fn step(self, value: T) -> Self
pub fn step_fast(self, value: T) -> Self
pub fn flags(self, flags: InputTextFlags) -> Self
pub fn chars_decimal(self, value: bool) -> Self
pub fn chars_hexadecimal(self, value: bool) -> Self
pub fn chars_uppercase(self, value: bool) -> Self
pub fn chars_noblank(self, value: bool) -> Self
pub fn auto_select_all(self, value: bool) -> Self
pub fn enter_returns_true(self, value: bool) -> Self
pub fn allow_tab_input(self, value: bool) -> Self
pub fn no_horizontal_scroll(self, value: bool) -> Self
sourcepub fn always_insert_mode(self, value: bool) -> Self
pub fn always_insert_mode(self, value: bool) -> Self
Note: this is equivalent to always_overwrite
pub fn always_overwrite(self, value: bool) -> Self
pub fn read_only(self, value: bool) -> Self
pub fn password(self, value: bool) -> Self
pub fn no_undo_redo(self, value: bool) -> Self
Auto Trait Implementations§
impl<'ui, 'p, T, L, F> Freeze for InputScalar<'ui, 'p, T, L, F>
impl<'ui, 'p, T, L, F = &'static str> !RefUnwindSafe for InputScalar<'ui, 'p, T, L, F>
impl<'ui, 'p, T, L, F = &'static str> !Send for InputScalar<'ui, 'p, T, L, F>
impl<'ui, 'p, T, L, F = &'static str> !Sync for InputScalar<'ui, 'p, T, L, F>
impl<'ui, 'p, T, L, F> Unpin for InputScalar<'ui, 'p, T, L, F>
impl<'ui, 'p, T, L, F = &'static str> !UnwindSafe for InputScalar<'ui, 'p, T, L, F>
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