pub struct InputView<'a> {
pub text: TextView<'a>,
pub caret: Option<Rect>,
pub selection: &'a [Rect],
pub area: Rect,
pub underline: &'a [Rect],
}Expand description
A text field, ready to draw: the selection behind the text, then the text, then the caret.
Fields§
§text: TextView<'a>What the field shows; a placeholder comes in half its color.
caret: Option<Rect>The caret, while the field has the keyboard.
selection: &'a [Rect]The selection, while the field has the keyboard: one span, or more where right-to-left and left-to-right text mix.
area: RectThe content box everything is cut to.
underline: &'a [Rect]The line under text an input method is composing.
Auto Trait Implementations§
impl<'a> Forget for InputView<'a>
impl<'a> Freeze for InputView<'a>
impl<'a> Move for InputView<'a>
impl<'a> RefUnwindSafe for InputView<'a>
impl<'a> Send for InputView<'a>
impl<'a> Sync for InputView<'a>
impl<'a> Unpin for InputView<'a>
impl<'a> UnsafeUnpin for InputView<'a>
impl<'a> UnwindSafe for InputView<'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