FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    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.

    View source

    Members

    TYPE

    const TYPE: &'static $crate::TypeInfo
    

    The runtime type of this class.

    Source

    to_ref

    fn to_ref(self: &Self) -> $crate::Ref<AdornerLayer>
    

    Returns a strong reference to this object.

    Source

    adorned_element_property

    fn adorned_element_property() -> &'static AttachedProperty<Option<ElementRef<Visual>>>
    

    Allows for getting and setting of the adorned element.

    Source

    is_clip_enabled_property

    fn is_clip_enabled_property() -> &'static AttachedProperty<bool>
    

    Allows for controlling clipping of the adorner.

    Source

    adorner_property

    fn adorner_property() -> &'static AttachedProperty<Option<Ref<Control>>>
    

    Allows for getting and setting of the adorner for control.

    Source

    default_focus_adorner_property

    fn default_focus_adorner_property() -> &'static StyledProperty<Option<Rc<dyn ITemplateOf<Option<Ref<Control>>>>>>
    

    Defines the DefaultFocusAdorner property.

    Source

    get_adorned_element

    fn get_adorned_element(adorner: &Visual) -> Option<Ref<Visual>>
    

    Source

    set_adorned_element

    fn set_adorned_element(adorner: &Visual, adorned: impl Into<Nullable<Visual>>)
    

    Source

    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.

    Source

    get_is_clip_enabled

    fn get_is_clip_enabled(adorner: &Visual) -> bool
    

    Source

    set_is_clip_enabled

    fn set_is_clip_enabled(adorner: &Visual, is_clip_enabled: bool)
    

    Source

    get_adorner

    fn get_adorner(visual: &Visual) -> Option<Ref<Control>>
    

    Source

    set_adorner

    fn set_adorner(visual: &Visual, adorner: impl Into<Nullable<Control>>)
    

    Source

    default_focus_adorner

    fn default_focus_adorner(self: &Self) -> Option<Rc<dyn ITemplateOf<Option<Ref<Control>>>>>
    

    The default control's focus adorner.

    Source

    set_default_focus_adorner

    fn set_default_focus_adorner(self: &Self, value: Option<Rc<dyn ITemplateOf<Option<Ref<Control>>>>>)
    

    Source

    Trait implementations

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.