Struct components::foundation::TextEvent
source · [−]pub struct TextEvent {
pub text: String,
pub event_type: TextEventType,
pub timestamp: f32,
pub start: i32,
pub length: i32,
pub bubble: bool,
}Expand description
Information about a text input event
Fields
text: StringThe text that this event has generated
event_type: TextEventTypeThe type of text event
timestamp: f32The time in seconds when this touch event occurred, use for deltas
start: i32The start position, if the type is edit
length: i32The length position, if the type is edit
bubble: boolWhether or not the event should bubble further. set to false to stop propagation
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for TextEvent
impl Send for TextEvent
impl Sync for TextEvent
impl Unpin for TextEvent
impl UnwindSafe for TextEvent
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<'a, T, C, M> Inspect<'a, C, &'a C, M> for T
impl<'a, T, C, M> Inspect<'a, C, &'a C, M> for T
impl<'a, T, C, M> Inspect<'a, C, &'a mut C, M> for T
impl<'a, T, C, M> Inspect<'a, C, &'a mut C, M> for T
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
fn into_color(self) -> To
fn into_color(self) -> To
Convert into color
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> SetParameter for T
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
Sets value as a parameter of self.