pub struct InputGroup { /* private fields */ }Expand description
Input group — a text input with leading/trailing addons.
Implementations§
Source§impl InputGroup
impl InputGroup
Sourcepub fn placeholder(self, text: impl Into<String>) -> Self
pub fn placeholder(self, text: impl Into<String>) -> Self
Set placeholder text.
Sourcepub fn leading(self, content: impl FnOnce(&mut Ui) + 'static) -> Self
pub fn leading(self, content: impl FnOnce(&mut Ui) + 'static) -> Self
Set the leading (left) addon content.
Sourcepub fn trailing(self, content: impl FnOnce(&mut Ui) + 'static) -> Self
pub fn trailing(self, content: impl FnOnce(&mut Ui) + 'static) -> Self
Set the trailing (right) addon content.
Sourcepub fn show(self, ui: &mut Ui, text: &mut String) -> InputGroupResponse
pub fn show(self, ui: &mut Ui, text: &mut String) -> InputGroupResponse
Show the input group.
Auto Trait Implementations§
impl Freeze for InputGroup
impl !RefUnwindSafe for InputGroup
impl !Send for InputGroup
impl !Sync for InputGroup
impl Unpin for InputGroup
impl UnsafeUnpin for InputGroup
impl !UnwindSafe for InputGroup
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