pub struct BuildCtxHandle<S: GlobalState> { /* private fields */ }Implementations§
Source§impl<S: GlobalState> BuildCtxHandle<S>
impl<S: GlobalState> BuildCtxHandle<S>
pub fn bind<A, H>(&self, action: A, handler: H) -> ActionEnvelope
pub fn register<A, H>(&self, handler: H)
pub fn bind_local<T, A, H>( &self, action: A, field: StateField<T>, handler: H, ) -> ActionEnvelope
pub fn request_animation_for(&self, target: WidgetId, request: AnimationRequest)
pub fn register_video(&self, registration: VideoRegistration)
pub fn register_web_view(&self, registration: WebRegistration)
pub fn with_resources<R>(&self, f: impl FnOnce(&mut ResourceRegistry) -> R) -> R
pub fn register_portal(&self, node: Widget)
pub fn register_portal_with_id(&self, id: WidgetId, node: Widget)
pub fn register_portal_with_layer( &self, layer: PortalLayer, id: Option<WidgetId>, node: Widget, )
pub fn anim_for(&self, target: WidgetId) -> ScopedAnimCtx<S>
pub fn video_controls(&self, target: WidgetId) -> VideoControlCtx
Trait Implementations§
Source§impl<S: GlobalState> Clone for BuildCtxHandle<S>
impl<S: GlobalState> Clone for BuildCtxHandle<S>
Source§impl<S: Debug + GlobalState> Debug for BuildCtxHandle<S>
impl<S: Debug + GlobalState> Debug for BuildCtxHandle<S>
impl<S: GlobalState> Copy for BuildCtxHandle<S>
Auto Trait Implementations§
impl<S> Freeze for BuildCtxHandle<S>
impl<S> RefUnwindSafe for BuildCtxHandle<S>
impl<S> Send for BuildCtxHandle<S>
impl<S> Sync for BuildCtxHandle<S>
impl<S> Unpin for BuildCtxHandle<S>
impl<S> UnsafeUnpin for BuildCtxHandle<S>
impl<S> UnwindSafe for BuildCtxHandle<S>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.