FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    FontIconSource

    struct · ferroui-controls · v0.5.0

    struct FontIconSource
    

    The description of a FontIcon (WinUI's FontIconSource).

    Missing (docs/porting/winui-controls.md, FontIcon): IsTextScaleFactorEnabled.

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

    Returns a strong reference to this object.

    Source

    glyph_property

    fn glyph_property() -> &'static StyledProperty<String>
    

    Defines the Glyph property.

    Source

    font_family_property

    fn font_family_property() -> &'static StyledProperty<Option<FontFamily>>
    

    Defines the FontFamily property: None by default, which leaves the icon its own (the theme's SymbolThemeFontFamily).

    Source

    font_size_property

    fn font_size_property() -> &'static StyledProperty<f64>
    

    Defines the FontSize property: 20 by default, as FontIcon.

    Source

    font_style_property

    fn font_style_property() -> &'static StyledProperty<FontStyle>
    

    Defines the FontStyle property.

    Source

    font_weight_property

    fn font_weight_property() -> &'static StyledProperty<FontWeight>
    

    Defines the FontWeight property.

    Source

    mirrored_when_right_to_left_property

    fn mirrored_when_right_to_left_property() -> &'static StyledProperty<bool>
    

    Defines the MirroredWhenRightToLeft property.

    Source

    construct

    fn construct() -> Self
    

    Source

    new

    fn new() -> Ref<Self>
    

    Source

    glyph

    fn glyph(self: &Self) -> String
    

    Source

    set_glyph

    fn set_glyph(self: &Self, value: impl Into<String>)
    

    Source

    font_family

    fn font_family(self: &Self) -> Option<FontFamily>
    

    Source

    set_font_family

    fn set_font_family(self: &Self, value: impl Into<Option<FontFamily>>)
    

    Source

    font_size

    fn font_size(self: &Self) -> f64
    

    Source

    set_font_size

    fn set_font_size(self: &Self, value: f64)
    

    Source

    font_style

    fn font_style(self: &Self) -> FontStyle
    

    Source

    set_font_style

    fn set_font_style(self: &Self, value: FontStyle)
    

    Source

    font_weight

    fn font_weight(self: &Self) -> FontWeight
    

    Source

    set_font_weight

    fn set_font_weight(self: &Self, value: FontWeight)
    

    Source

    mirrored_when_right_to_left

    fn mirrored_when_right_to_left(self: &Self) -> bool
    

    Source

    set_mirrored_when_right_to_left

    fn set_mirrored_when_right_to_left(self: &Self, value: bool)
    

    Source

    Trait implementations

    Availability

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