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: DomEventData
Implementations§
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§
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