InfoBadgeTemplateSettings
struct · ferroui-controls · v0.5.0
struct InfoBadgeTemplateSettings
The values the template of an InfoBadge binds to: the corner radius of
the badge (half its height unless the badge has a local CornerRadius) and the icon element
created from its IconSource. Each badge has its own.
Members
TYPEto_refinfo_badge_corner_radius_propertyicon_element_propertyconstructnewinfo_badge_corner_radiusset_info_badge_corner_radiusicon_elementset_icon_element
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<InfoBadgeTemplateSettings>
Returns a strong reference to this object.
info_badge_corner_radius_property
fn info_badge_corner_radius_property() -> &'static StyledProperty<CornerRadius>
Defines the InfoBadgeCornerRadius property: the corner radius of the badge.
icon_element_property
fn icon_element_property() -> &'static StyledProperty<Option<Ref<IconElement>>>
Defines the IconElement property: the icon element of the icon source of the badge.
construct
fn construct() -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
new
fn new() -> Ref<Self>
Creates the settings of a badge.
info_badge_corner_radius
fn info_badge_corner_radius(self: &Self) -> CornerRadius
Gets the corner radius of the badge.
set_info_badge_corner_radius
fn set_info_badge_corner_radius(self: &Self, value: CornerRadius)
Sets the corner radius of the badge.
icon_element
fn icon_element(self: &Self) -> Option<Ref<IconElement>>
Gets the icon element of the icon source of the badge.
set_icon_element
fn set_icon_element(self: &Self, value: Option<Ref<IconElement>>)
Sets the icon element of the icon source of the badge.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyFerroObjectImplExtClassDefaultsErasedDestructorIntoEitherDerefUpcast<T>Upcast<InfoBadgeTemplateSettings>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleFerroObjectImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.