pub struct TextFocusState {
pub focused_node: Option<NodeId>,
pub caret_byte_index: usize,
pub selection_anchor: usize,
pub ime_preedit: Option<String>,
pub ime_preedit_cursor: Option<(usize, usize)>,
pub uncontrolled_value: Option<String>,
}Expand description
Active focus, caret, range selection, and IME composition state tracked by retained backends.
Fields§
§focused_node: Option<NodeId>§caret_byte_index: usize§selection_anchor: usize§ime_preedit: Option<String>§ime_preedit_cursor: Option<(usize, usize)>§uncontrolled_value: Option<String>Implementations§
Source§impl TextFocusState
impl TextFocusState
pub fn selection_range(&self) -> Option<(usize, usize)>
Trait Implementations§
Source§impl Clone for TextFocusState
impl Clone for TextFocusState
Source§impl Debug for TextFocusState
impl Debug for TextFocusState
Source§impl Default for TextFocusState
impl Default for TextFocusState
impl Eq for TextFocusState
Source§impl PartialEq for TextFocusState
impl PartialEq for TextFocusState
impl StructuralPartialEq for TextFocusState
Auto Trait Implementations§
impl Forget for TextFocusState
impl Freeze for TextFocusState
impl Move for TextFocusState
impl RefUnwindSafe for TextFocusState
impl Send for TextFocusStatewhere
RawVecInner: Send,
impl Sync for TextFocusStatewhere
RawVecInner: Sync,
impl Unpin for TextFocusState
impl UnsafeUnpin for TextFocusState
impl UnwindSafe for TextFocusStatewhere
RawVecInner: UnwindSafe,
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