AdornerHelper
struct · ferroui-controls · v0.5.0
struct AdornerHelper
Helpers of the adorner layer: change tracking of the ancestors of an adorned element and the clip of its adorner.
Members
subscribe_to_ancestor_property_changes
fn subscribe_to_ancestor_property_changes(visual: &Ref<Visual>, include_clip: bool, changed: impl Fn() -> () + 'static) -> Subscription
Calls changed whenever the bounds or the render transform (with
include_clip also the clip) of the visual or of one of its ancestors
changes, and when the visual is attached to or detached from a visual
tree.
Dropping the returned guard removes the handler;
Subscription::detach keeps it for the life of the visual.
calculate_adorner_clip
fn calculate_adorner_clip(adorned_element: &Visual) -> Option<Ref<Geometry>>
Calculates the clip of an adorner from the clips of the adorned element and its ancestors, in the coordinates of the adorned element.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyClassDefaultsErasedDestructorIntoEither
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.