pub struct InputTextMultiline<'ui, 'p> { /* private fields */ }Expand description
Builder for multiline text input widget
Implementations§
Source§impl<'ui, 'p> InputTextMultiline<'ui, 'p>
impl<'ui, 'p> InputTextMultiline<'ui, 'p>
Sourcepub fn new(
ui: &'ui Ui,
label: impl AsRef<str>,
buf: &'p mut String,
size: impl Into<[f32; 2]>,
) -> Self
pub fn new( ui: &'ui Ui, label: impl AsRef<str>, buf: &'p mut String, size: impl Into<[f32; 2]>, ) -> Self
Creates a new multiline text input builder
Sourcepub fn flags(self, flags: InputTextFlags) -> Self
pub fn flags(self, flags: InputTextFlags) -> Self
Sets the flags for the input
Sourcepub fn capacity_hint(self, cap: usize) -> Self
pub fn capacity_hint(self, cap: usize) -> Self
Hint a minimum buffer capacity to reduce reallocations for large fields
Sourcepub fn callback<T2: InputTextCallbackHandler>(
self,
callbacks: InputTextCallback,
handler: T2,
) -> InputTextMultilineWithCb<'ui, 'p, T2>
pub fn callback<T2: InputTextCallbackHandler>( self, callbacks: InputTextCallback, handler: T2, ) -> InputTextMultilineWithCb<'ui, 'p, T2>
Enable ImGui callbacks for this multiline input and attach a handler.
Trait Implementations§
Auto Trait Implementations§
impl<'ui, 'p> Freeze for InputTextMultiline<'ui, 'p>
impl<'ui, 'p> !RefUnwindSafe for InputTextMultiline<'ui, 'p>
impl<'ui, 'p> !Send for InputTextMultiline<'ui, 'p>
impl<'ui, 'p> !Sync for InputTextMultiline<'ui, 'p>
impl<'ui, 'p> Unpin for InputTextMultiline<'ui, 'p>
impl<'ui, 'p> !UnwindSafe for InputTextMultiline<'ui, 'p>
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