Struct android_activity::input::TextInputState
source · pub struct TextInputState {
pub text: String,
pub selection: TextSpan,
pub compose_region: Option<TextSpan>,
}
Fields§
§text: String
§selection: TextSpan
A selection defined on the text.
To set the cursor position, start and end should have the same value.
Changing the selection has no effect on the compose_region.
compose_region: Option<TextSpan>
A composing region defined on the text.
When being set, then if there was a composing region, the region is replaced.
The given indices will be clamped to the text
bounds
If the resulting region is zero-sized, no region is marked (equivalent to passing None
)
Trait Implementations§
source§impl Clone for TextInputState
impl Clone for TextInputState
source§fn clone(&self) -> TextInputState
fn clone(&self) -> TextInputState
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl RefUnwindSafe for TextInputState
impl Send for TextInputState
impl Sync for TextInputState
impl Unpin for TextInputState
impl UnwindSafe for TextInputState
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