pub struct UiEvent { /* private fields */ }Expand description
Dispatched UI event envelope carrying target node and event payload.
Implementations§
Source§impl UiEvent
impl UiEvent
pub fn get_target(&self) -> NodeId
pub fn get_mut_target(&mut self) -> &mut NodeId
pub fn set_target(&mut self, val: NodeId) -> &mut Self
pub fn get_kind(&self) -> &UiEventKind
pub fn get_mut_kind(&mut self) -> &mut UiEventKind
pub fn set_kind(&mut self, val: UiEventKind) -> &mut Self
Trait Implementations§
impl StructuralPartialEq for UiEvent
Auto Trait Implementations§
impl Forget for UiEvent
impl Freeze for UiEvent
impl Move for UiEvent
impl RefUnwindSafe for UiEvent
impl Send for UiEvent
impl Sync for UiEvent
impl Unpin for UiEvent
impl UnsafeUnpin for UiEvent
impl UnwindSafe for UiEvent
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