AdornerLayer
struct · ferroui-controls · v0.5.0
struct AdornerLayer
Represents a surface for showing adorners. Adorners are always on top of the adorned element and are positioned to stay relative to the adorned element.
Members
TYPEto_refadorned_element_propertyis_clip_enabled_propertyadorner_propertydefault_focus_adorner_propertyget_adorned_elementset_adorned_elementget_adorner_layerget_is_clip_enabledset_is_clip_enabledget_adornerset_adornerdefault_focus_adornerset_default_focus_adorner
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<AdornerLayer>
Returns a strong reference to this object.
adorned_element_property
fn adorned_element_property() -> &'static AttachedProperty<Option<ElementRef<Visual>>>
Allows for getting and setting of the adorned element.
is_clip_enabled_property
fn is_clip_enabled_property() -> &'static AttachedProperty<bool>
Allows for controlling clipping of the adorner.
adorner_property
fn adorner_property() -> &'static AttachedProperty<Option<Ref<Control>>>
Allows for getting and setting of the adorner for control.
default_focus_adorner_property
fn default_focus_adorner_property() -> &'static StyledProperty<Option<Rc<dyn ITemplateOf<Option<Ref<Control>>>>>>
Defines the DefaultFocusAdorner property.
get_adorned_element
fn get_adorned_element(adorner: &Visual) -> Option<Ref<Visual>>
set_adorned_element
fn set_adorned_element(adorner: &Visual, adorned: impl Into<Nullable<Visual>>)
get_adorner_layer
fn get_adorner_layer(visual: &Visual) -> Option<Ref<AdornerLayer>>
Gets the adorner layer of a visual: the dedicated layer of the overlay layer the visual is in, otherwise the layer of the nearest layer manager, otherwise the first one found in its top-level.
get_is_clip_enabled
fn get_is_clip_enabled(adorner: &Visual) -> bool
set_is_clip_enabled
fn set_is_clip_enabled(adorner: &Visual, is_clip_enabled: bool)
get_adorner
fn get_adorner(visual: &Visual) -> Option<Ref<Control>>
set_adorner
fn set_adorner(visual: &Visual, adorner: impl Into<Nullable<Control>>)
default_focus_adorner
fn default_focus_adorner(self: &Self) -> Option<Rc<dyn ITemplateOf<Option<Ref<Control>>>>>
The default control's focus adorner.
set_default_focus_adorner
fn set_default_focus_adorner(self: &Self, value: Option<Rc<dyn ITemplateOf<Option<Ref<Control>>>>>)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeCanvasImplExtControlImplExtPanelImplExtBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyInputElementImplExtInteractiveImplExtLayoutableImplExtFerroObjectImplExtStyledElementImplExtClassDefaultsVisualImplExtErasedDestructorIntoEitherDerefUpcast<T>Upcast<AdornerLayer>StaticTypeObjectTypeSubclassable<T>StyledElementImplVisualImplInteractiveImplInputElementImplControlImplPanelImplCanvasImplFerroObjectImplLayoutableImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.