pub struct SecureTextEditState {
pub cursor: TextCursorState,
pub singleline_offset: f32,
pub last_interaction_time: f64,
pub ime_enabled: bool,
pub ime_cursor_range: CCursorRange,
}Expand description
Persistent cursor / IME state for a SecureTextEdit.
Fields§
§cursor: TextCursorStateSelection and cursor.
singleline_offset: f32Horizontal scroll offset for single-line fields.
last_interaction_time: f64Seconds since start, last time the user interacted.
ime_enabled: boolTrue while a non-empty IME preedit is in the buffer.
Not tied to the deprecated ImeEvent::Enabled. Empty Preedit/Commit
events (GNOME/ibus on Wayland) must be ignored when this is false,
or the cursor jumps to index 0 and text is typed in reverse.
ime_cursor_range: CCursorRangeSpan of the current preedit, if any. Do not use this as the delete target — always mutate the live cursor range, like egui 0.36.
Implementations§
Trait Implementations§
Source§impl Clone for SecureTextEditState
impl Clone for SecureTextEditState
Source§fn clone(&self) -> SecureTextEditState
fn clone(&self) -> SecureTextEditState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SecureTextEditState
impl Debug for SecureTextEditState
Source§impl Default for SecureTextEditState
impl Default for SecureTextEditState
Source§fn default() -> SecureTextEditState
fn default() -> SecureTextEditState
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SecureTextEditState
impl RefUnwindSafe for SecureTextEditState
impl Send for SecureTextEditState
impl Sync for SecureTextEditState
impl Unpin for SecureTextEditState
impl UnsafeUnpin for SecureTextEditState
impl UnwindSafe for SecureTextEditState
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more