Struct dioxus::prelude::keyboard_types::CompositionEvent
source · pub struct CompositionEvent {
pub state: CompositionState,
pub data: String,
}
Available on crate feature
html
only.Expand description
Event to expose input methods to program logic.
Provides information about entered sequences from dead key combinations and IMEs.
A composition session is always started by a “compositionstart” event followed my zero or more “compositionupdate” events and terminated by a single “compositionend” event.
Fields§
§state: CompositionState
Describes the event kind.
data: String
Current composition data. May be empty.
Trait Implementations§
source§impl Clone for CompositionEvent
impl Clone for CompositionEvent
source§fn clone(&self) -> CompositionEvent
fn clone(&self) -> CompositionEvent
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 moresource§impl Debug for CompositionEvent
impl Debug for CompositionEvent
source§impl<'de> Deserialize<'de> for CompositionEvent
impl<'de> Deserialize<'de> for CompositionEvent
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<CompositionEvent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<CompositionEvent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<CompositionEvent> for Event
impl From<CompositionEvent> for Event
source§fn from(v: CompositionEvent) -> Event
fn from(v: CompositionEvent) -> Event
Converts to this type from the input type.
source§impl Hash for CompositionEvent
impl Hash for CompositionEvent
source§impl PartialEq for CompositionEvent
impl PartialEq for CompositionEvent
source§fn eq(&self, other: &CompositionEvent) -> bool
fn eq(&self, other: &CompositionEvent) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CompositionEvent
impl Serialize for CompositionEvent
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for CompositionEvent
impl StructuralPartialEq for CompositionEvent
Auto Trait Implementations§
impl Freeze for CompositionEvent
impl RefUnwindSafe for CompositionEvent
impl Send for CompositionEvent
impl Sync for CompositionEvent
impl Unpin for CompositionEvent
impl UnwindSafe for CompositionEvent
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
source§fn super_from(input: T) -> O
fn super_from(input: T) -> O
Convert from a type to another type.
source§impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
source§fn super_into(self) -> O
fn super_into(self) -> O
Convert from a type to another type.
source§impl<Cfg> TryIntoConfig for Cfg
impl<Cfg> TryIntoConfig for Cfg
source§fn into_config(self) -> Option<Cfg>
fn into_config(self) -> Option<Cfg>
Available on crate feature
launch
only.