FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ExperimentalAcrylicBorder

    struct · ferroui-controls · v0.5.0

    struct ExperimentalAcrylicBorder
    

    A control which decorates a child with a border and an acrylic material background.

    The material is drawn by the composition visual of the border, an acrylic visual that receives the material and the corner radius; the platform transparency compensation of the material follows the transparency level of the top level the border is in.

    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<ExperimentalAcrylicBorder>
    

    Returns a strong reference to this object.

    Source

    corner_radius_property

    fn corner_radius_property() -> &'static StyledProperty<CornerRadius>
    

    Defines the CornerRadius property.

    Source

    material_property

    fn material_property() -> &'static StyledProperty<Option<Ref<ExperimentalAcrylicMaterial>>>
    

    Defines the Material property.

    Source

    construct

    fn construct() -> Self
    

    Creates the class data; see ferroui_base::FerroObject::construct.

    Source

    new

    fn new() -> Ref<Self>
    

    Source

    corner_radius

    fn corner_radius(self: &Self) -> CornerRadius
    

    Gets the radius of the border rounded corners.

    Source

    set_corner_radius

    fn set_corner_radius(self: &Self, value: CornerRadius)
    

    Sets the radius of the border rounded corners.

    Source

    material

    fn material(self: &Self) -> Option<Ref<ExperimentalAcrylicMaterial>>
    

    Gets the material used to paint the background of the border.

    Source

    set_material

    fn set_material(self: &Self, value: impl Into<Nullable<ExperimentalAcrylicMaterial>>)
    

    Sets the material used to paint the background of the border.

    Source

    Trait implementations

    Availability

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