pub struct EditingState {
pub text: String,
pub selection_base: i32,
pub selection_extent: i32,
pub composing_base: i32,
pub composing_extent: i32,
}Expand description
The editing value in UTF-16 code-unit offsets — the Flutter-canonical
shape the Android/iOS bridges exchange (-1 denotes “none”).
Selection offsets are always valid (base == extent when the selection is
collapsed to a caret). Composing offsets are -1 when not composing.
Fields§
§text: StringThe full text buffer (including any composing preedit).
selection_base: i32Selection anchor, UTF-16 offset into text.
selection_extent: i32Selection focus, UTF-16 offset into text.
composing_base: i32Composing region start (UTF-16), or -1 when not composing.
composing_extent: i32Composing region end (UTF-16), or -1 when not composing.
Trait Implementations§
Source§impl Clone for EditingState
impl Clone for EditingState
Source§impl Debug for EditingState
impl Debug for EditingState
impl Eq for EditingState
Source§impl PartialEq for EditingState
impl PartialEq for EditingState
impl StructuralPartialEq for EditingState
Auto Trait Implementations§
impl Freeze for EditingState
impl RefUnwindSafe for EditingState
impl Send for EditingState
impl Sync for EditingState
impl Unpin for EditingState
impl UnsafeUnpin for EditingState
impl UnwindSafe for EditingState
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