pub struct VisualLocator;Expand description
Tracks an ancestor of a visual in the visual tree.
Implementations§
Source§impl VisualLocator
impl VisualLocator
Sourcepub fn track(
relative_to: &Visual,
ancestor_level: usize,
ancestor_type: Option<&'static TypeInfo>,
) -> Rc<dyn IObservable<Option<Ref<Visual>>>>
pub fn track( relative_to: &Visual, ancestor_level: usize, ancestor_type: Option<&'static TypeInfo>, ) -> Rc<dyn IObservable<Option<Ref<Visual>>>>
An observable of the ancestor at ancestor_level (counting only
ancestors of ancestor_type, when given) of relative_to, or None
while relative_to is not attached to a visual tree. It publishes
the ancestor again whenever relative_to is attached or detached.
Auto Trait Implementations§
impl Freeze for VisualLocator
impl RefUnwindSafe for VisualLocator
impl Send for VisualLocator
impl Sync for VisualLocator
impl Unpin for VisualLocator
impl UnsafeUnpin for VisualLocator
impl UnwindSafe for VisualLocator
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