pub struct EventSystem { /* private fields */ }
Expand description
Enhanced event system that integrates with layout and components
Implementations§
Source§impl EventSystem
impl EventSystem
Sourcepub fn process_pointer_event<E: Event + Clone>(
&mut self,
event: E,
position: Point,
layout_root: &LayoutNode,
) -> Result<Vec<ComponentId>, EventError>
pub fn process_pointer_event<E: Event + Clone>( &mut self, event: E, position: Point, layout_root: &LayoutNode, ) -> Result<Vec<ComponentId>, EventError>
Process a pointer event (mouse, touch) with layout hit testing
Sourcepub fn hit_tester_mut(&mut self) -> &mut HitTester
pub fn hit_tester_mut(&mut self) -> &mut HitTester
Get mutable reference to the hit tester for configuration
Sourcepub fn delegator(&self) -> &EventDelegate
pub fn delegator(&self) -> &EventDelegate
Get reference to the event delegator
Sourcepub fn delegator_mut(&mut self) -> &mut EventDelegate
pub fn delegator_mut(&mut self) -> &mut EventDelegate
Get mutable reference to the event delegator
Trait Implementations§
Source§impl Debug for EventSystem
impl Debug for EventSystem
Auto Trait Implementations§
impl Freeze for EventSystem
impl RefUnwindSafe for EventSystem
impl Send for EventSystem
impl Sync for EventSystem
impl Unpin for EventSystem
impl UnwindSafe for EventSystem
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