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.
Members
TYPEto_refglyph_propertyfont_family_propertyfont_size_propertyfont_style_propertyfont_weight_propertymirrored_when_right_to_left_propertyconstructnewglyphset_glyphfont_familyset_font_familyfont_sizeset_font_sizefont_styleset_font_stylefont_weightset_font_weightmirrored_when_right_to_leftset_mirrored_when_right_to_left
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<FontIconSource>
Returns a strong reference to this object.
glyph_property
fn glyph_property() -> &'static StyledProperty<String>
Defines the Glyph property.
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).
font_size_property
fn font_size_property() -> &'static StyledProperty<f64>
Defines the FontSize property: 20 by default, as FontIcon.
font_style_property
fn font_style_property() -> &'static StyledProperty<FontStyle>
Defines the FontStyle property.
font_weight_property
fn font_weight_property() -> &'static StyledProperty<FontWeight>
Defines the FontWeight property.
mirrored_when_right_to_left_property
fn mirrored_when_right_to_left_property() -> &'static StyledProperty<bool>
Defines the MirroredWhenRightToLeft property.
construct
fn construct() -> Self
new
fn new() -> Ref<Self>
glyph
fn glyph(self: &Self) -> String
set_glyph
fn set_glyph(self: &Self, value: impl Into<String>)
font_family
fn font_family(self: &Self) -> Option<FontFamily>
set_font_family
fn set_font_family(self: &Self, value: impl Into<Option<FontFamily>>)
font_size
fn font_size(self: &Self) -> f64
set_font_size
fn set_font_size(self: &Self, value: f64)
font_style
fn font_style(self: &Self) -> FontStyle
set_font_style
fn set_font_style(self: &Self, value: FontStyle)
font_weight
fn font_weight(self: &Self) -> FontWeight
set_font_weight
fn set_font_weight(self: &Self, value: FontWeight)
mirrored_when_right_to_left
fn mirrored_when_right_to_left(self: &Self) -> bool
set_mirrored_when_right_to_left
fn set_mirrored_when_right_to_left(self: &Self, value: bool)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeIconSourceImplExtBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyFerroObjectImplExtClassDefaultsErasedDestructorIntoEitherDerefUpcast<T>Upcast<FontIconSource>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleFerroObjectImplIconSourceImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.