NameScopeExtensions
struct · ferroui-base · v0.5.0
struct NameScopeExtensions
Name scope lookups anchored at a styled element.
Members
find
fn find<T: ObjectType>(anchor: &StyledElement, name: &str) -> Option<Ref<T>>
Finds a named element in the name scope attached to anchor.
get
fn get<T: ObjectType>(anchor: &StyledElement, name: &str) -> Ref<T>
Gets a named element from the name scope attached to anchor.
Panics if the element has no name scope, the name is not registered or the named element is of a different class.
find_name_scope
fn find_name_scope(control: &StyledElement) -> Option<NameScopeRef>
Finds the name scope of control by walking up its logical ancestors.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeClassDefaultsBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyErasedDestructorIntoEither
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.