pub struct NodeInitPatch { /* private fields */ }Expand description
Compact zero-allocation initialization patch applied to a newly mounted view! primitive node under a single scene lock.
Implementations§
Source§impl NodeInitPatch
Builder methods for NodeInitPatch consumed by view! procedural macro expansions.
impl NodeInitPatch
Builder methods for NodeInitPatch consumed by view! procedural macro expansions.
Sourcepub fn empty() -> Self
pub fn empty() -> Self
Creates an empty NodeInitPatch with all modifiers unset.
§Returns
Self- Empty node initialization patch.
Sourcepub fn with_focusable(self, focusable: bool) -> Self
pub fn with_focusable(self, focusable: bool) -> Self
Sourcepub fn with_on_click(self, handler: UiEventHandler) -> Self
pub fn with_on_click(self, handler: UiEventHandler) -> Self
Sourcepub fn with_on_change(self, handler: UiEventHandler) -> Self
pub fn with_on_change(self, handler: UiEventHandler) -> Self
Sourcepub fn with_on_scroll(self, handler: UiEventHandler) -> Self
pub fn with_on_scroll(self, handler: UiEventHandler) -> Self
Sourcepub fn with_on_pointer_down(self, handler: UiEventHandler) -> Self
pub fn with_on_pointer_down(self, handler: UiEventHandler) -> Self
Sourcepub fn with_on_pointer_move(self, handler: UiEventHandler) -> Self
pub fn with_on_pointer_move(self, handler: UiEventHandler) -> Self
Sourcepub fn with_on_pointer_up(self, handler: UiEventHandler) -> Self
pub fn with_on_pointer_up(self, handler: UiEventHandler) -> Self
Sourcepub fn with_on_pointer_enter(self, handler: UiEventHandler) -> Self
pub fn with_on_pointer_enter(self, handler: UiEventHandler) -> Self
Sourcepub fn with_on_pointer_leave(self, handler: UiEventHandler) -> Self
pub fn with_on_pointer_leave(self, handler: UiEventHandler) -> Self
Sourcepub fn with_on_hover(self, handler: UiEventHandler) -> Self
pub fn with_on_hover(self, handler: UiEventHandler) -> Self
Sourcepub fn with_on_key(self, handler: UiEventHandler) -> Self
pub fn with_on_key(self, handler: UiEventHandler) -> Self
Sourcepub fn with_on_focus(self, handler: UiEventHandler) -> Self
pub fn with_on_focus(self, handler: UiEventHandler) -> Self
Sourcepub fn with_on_blur(self, handler: UiEventHandler) -> Self
pub fn with_on_blur(self, handler: UiEventHandler) -> Self
Source§impl NodeInitPatch
Implements impl #impl_generics #name #ty_generics #where_clause.
impl NodeInitPatch
Implements impl #impl_generics #name #ty_generics #where_clause.
pub fn get_mut_focusable(&mut self) -> &mut Option<bool>
pub fn set_focusable(&mut self, val: Option<bool>) -> &mut Self
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_change(&mut self) -> &mut Option<UiEventHandler>
pub fn set_on_change(&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_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_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_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
pub fn get_mut_a11y(&mut self) -> &mut Option<A11yProps>
pub fn set_a11y(&mut self, val: Option<A11yProps>) -> &mut Self
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for NodeInitPatch
impl !Send for NodeInitPatch
impl !Sync for NodeInitPatch
impl !UnwindSafe for NodeInitPatch
impl Forget for NodeInitPatch
impl Freeze for NodeInitPatch
impl Move for NodeInitPatch
impl Unpin for NodeInitPatch
impl UnsafeUnpin for NodeInitPatchwhere
*const RcInner<RefCell<dyn FnMut(&UiEvent)>> is !null: UnsafeUnpin,
PhantomData<RcInner<RefCell<dyn FnMut(&UiEvent)>>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
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