FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    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.

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

    Returns a strong reference to this object.

    Source

    info_badge_corner_radius_property

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

    Defines the InfoBadgeCornerRadius property: the corner radius of the badge.

    Source

    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.

    Source

    construct

    fn construct() -> Self
    

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

    Source

    new

    fn new() -> Ref<Self>
    

    Creates the settings of a badge.

    Source

    info_badge_corner_radius

    fn info_badge_corner_radius(self: &Self) -> CornerRadius
    

    Gets the corner radius of the badge.

    Source

    set_info_badge_corner_radius

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

    Sets the corner radius of the badge.

    Source

    icon_element

    fn icon_element(self: &Self) -> Option<Ref<IconElement>>
    

    Gets the icon element of the icon source of the badge.

    Source

    set_icon_element

    fn set_icon_element(self: &Self, value: Option<Ref<IconElement>>)
    

    Sets the icon element of the icon source of the badge.

    Source

    Trait implementations

    Availability

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