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.
Members
TYPEto_refcorner_radius_propertymaterial_propertyconstructnewcorner_radiusset_corner_radiusmaterialset_material
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<ExperimentalAcrylicBorder>
Returns a strong reference to this object.
corner_radius_property
fn corner_radius_property() -> &'static StyledProperty<CornerRadius>
Defines the CornerRadius property.
material_property
fn material_property() -> &'static StyledProperty<Option<Ref<ExperimentalAcrylicMaterial>>>
Defines the Material property.
construct
fn construct() -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
new
fn new() -> Ref<Self>
corner_radius
fn corner_radius(self: &Self) -> CornerRadius
Gets the radius of the border rounded corners.
set_corner_radius
fn set_corner_radius(self: &Self, value: CornerRadius)
Sets the radius of the border rounded corners.
material
fn material(self: &Self) -> Option<Ref<ExperimentalAcrylicMaterial>>
Gets the material used to paint the background of the border.
set_material
fn set_material(self: &Self, value: impl Into<Nullable<ExperimentalAcrylicMaterial>>)
Sets the material used to paint the background of the border.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeControlImplExtBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyInputElementImplExtInteractiveImplExtLayoutableImplExtFerroObjectImplExtStyledElementImplExtClassDefaultsVisualImplExtErasedDestructorIntoEitherDerefUpcast<T>Upcast<ExperimentalAcrylicBorder>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleStyledElementImplInteractiveImplInputElementImplControlImplFerroObjectImplVisualImplLayoutableImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.