pub struct ControlLocator;Expand description
Tracks an ancestor of an element in the logical tree.
Implementations§
Source§impl ControlLocator
impl ControlLocator
Sourcepub fn track(
relative_to: &StyledElement,
ancestor_level: usize,
ancestor_type: Option<&'static TypeInfo>,
) -> Rc<dyn IObservable<Option<Ref<StyledElement>>>>
pub fn track( relative_to: &StyledElement, ancestor_level: usize, ancestor_type: Option<&'static TypeInfo>, ) -> Rc<dyn IObservable<Option<Ref<StyledElement>>>>
An observable of the ancestor at ancestor_level (counting only
ancestors of ancestor_type, when given) of relative_to in the
logical tree. It publishes the ancestor again when relative_to is
attached to a logical tree, and None when it is detached.
Auto Trait Implementations§
impl Freeze for ControlLocator
impl RefUnwindSafe for ControlLocator
impl Send for ControlLocator
impl Sync for ControlLocator
impl Unpin for ControlLocator
impl UnsafeUnpin for ControlLocator
impl UnwindSafe for ControlLocator
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> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more