pub struct EventHandlers { /* private fields */ }Expand description
Attached event listener slots on a SceneNode.
Implementations§
Source§impl EventHandlers
Safe handler lookup for EventHandlers.
impl EventHandlers
Safe handler lookup for EventHandlers.
Sourcepub const fn empty() -> Self
pub const fn empty() -> Self
Constructs an empty EventHandlers table in const contexts without heap allocation.
§Returns
Self- Empty event handler collection with all callback slots set toNone.
Sourcepub fn handler_for(&self, kind: &UiEventKind) -> Option<UiEventHandler>
pub fn handler_for(&self, kind: &UiEventKind) -> Option<UiEventHandler>
Source§impl EventHandlers
impl EventHandlers
pub fn get_mut_on_click(&mut self) -> &mut Option<UiEventHandler>
pub fn set_on_click(&mut self, val: Option<UiEventHandler>) -> &mut Self
pub fn get_mut_on_pointer_down(&mut self) -> &mut Option<UiEventHandler>
pub fn set_on_pointer_down(&mut self, val: Option<UiEventHandler>) -> &mut Self
pub fn get_mut_on_pointer_move(&mut self) -> &mut Option<UiEventHandler>
pub fn set_on_pointer_move(&mut self, val: Option<UiEventHandler>) -> &mut Self
pub fn get_mut_on_pointer_up(&mut self) -> &mut Option<UiEventHandler>
pub fn set_on_pointer_up(&mut self, val: Option<UiEventHandler>) -> &mut Self
pub fn get_mut_on_pointer_enter(&mut self) -> &mut Option<UiEventHandler>
pub fn set_on_pointer_enter(&mut self, val: Option<UiEventHandler>) -> &mut Self
pub fn get_mut_on_pointer_leave(&mut self) -> &mut Option<UiEventHandler>
pub fn set_on_pointer_leave(&mut self, val: Option<UiEventHandler>) -> &mut Self
pub fn get_mut_on_scroll(&mut self) -> &mut Option<UiEventHandler>
pub fn set_on_scroll(&mut self, val: Option<UiEventHandler>) -> &mut Self
pub fn get_mut_on_key_down(&mut self) -> &mut Option<UiEventHandler>
pub fn set_on_key_down(&mut self, val: Option<UiEventHandler>) -> &mut Self
pub fn get_mut_on_change(&mut self) -> &mut Option<UiEventHandler>
pub fn set_on_change(&mut self, val: Option<UiEventHandler>) -> &mut Self
pub fn get_mut_on_focus(&mut self) -> &mut Option<UiEventHandler>
pub fn set_on_focus(&mut self, val: Option<UiEventHandler>) -> &mut Self
pub fn get_mut_on_blur(&mut self) -> &mut Option<UiEventHandler>
pub fn set_on_blur(&mut self, val: Option<UiEventHandler>) -> &mut Self
Trait Implementations§
Source§impl Clone for EventHandlers
impl Clone for EventHandlers
Source§impl Debug for EventHandlers
impl Debug for EventHandlers
Auto Trait Implementations§
impl !RefUnwindSafe for EventHandlers
impl !Send for EventHandlers
impl !Sync for EventHandlers
impl !UnwindSafe for EventHandlers
impl Forget for EventHandlers
impl Freeze for EventHandlers
impl Move for EventHandlers
impl Unpin for EventHandlers
impl UnsafeUnpin for EventHandlers
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