Struct freya_core::dom_events::DomEvent
source · pub struct DomEvent {
pub name: String,
pub node_id: NodeId,
pub element_id: ElementId,
pub data: DomEventData,
}Expand description
Event emitted to the DOM.
Fields§
§name: String§node_id: NodeId§element_id: ElementId§data: DomEventDataImplementations§
source§impl DomEvent
impl DomEvent
pub fn does_move_cursor(&self) -> bool
pub fn from_freya_event( node_id: NodeId, element_id: ElementId, event: &FreyaEvent, node_area: Option<Area>, scale_factor: f64 ) -> Self
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for DomEvent
impl Send for DomEvent
impl Sync for DomEvent
impl Unpin for DomEvent
impl UnwindSafe for DomEvent
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
§impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere W: DeserializeWith<F, T, D>, D: Fallible + ?Sized, F: ?Sized,
§fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
fn deserialize( &self, deserializer: &mut D ) -> Result<With<T, W>, <D as Fallible>::Error>
Deserializes using the given deserializer