Type Alias freya_engine::prelude::TextStyle
pub type TextStyle = Handle<skia_textlayout_TextStyle>;
Aliased Type§
struct TextStyle(/* private fields */);
Implementations
§impl Handle<skia_textlayout_TextStyle>
impl Handle<skia_textlayout_TextStyle>
pub fn new() -> Handle<skia_textlayout_TextStyle>
pub fn to_placeholder(&self) -> Handle<skia_textlayout_TextStyle>
👎Deprecated since 0.51.0: Use clone_for_placeholder
pub fn clone_for_placeholder(&self) -> Handle<skia_textlayout_TextStyle>
pub fn equals(&self, other: &Handle<skia_textlayout_TextStyle>) -> bool
pub fn equals_by_fonts(&self, that: &Handle<skia_textlayout_TextStyle>) -> bool
pub fn match_one_attribute( &self, style_type: skia_textlayout_StyleType, other: &Handle<skia_textlayout_TextStyle>, ) -> bool
pub fn color(&self) -> Color
pub fn set_color( &mut self, color: impl Into<Color>, ) -> &mut Handle<skia_textlayout_TextStyle>
pub fn has_foreground(&self) -> bool
pub fn foreground(&self) -> Handle<SkPaint>
pub fn set_foreground_paint( &mut self, paint: &Handle<SkPaint>, ) -> &mut Handle<skia_textlayout_TextStyle>
pub fn set_foreground_color( &mut self, paint: &Handle<SkPaint>, ) -> &mut Handle<skia_textlayout_TextStyle>
👎Deprecated since 0.64.0: use set_foreground_paint()
pub fn clear_foreground_color( &mut self, ) -> &mut Handle<skia_textlayout_TextStyle>
pub fn has_background(&self) -> bool
pub fn background(&self) -> Handle<SkPaint>
pub fn set_background_paint( &mut self, paint: &Handle<SkPaint>, ) -> &mut Handle<skia_textlayout_TextStyle>
pub fn set_background_color( &mut self, paint: &Handle<SkPaint>, ) -> &mut Handle<skia_textlayout_TextStyle>
👎Deprecated since 0.64.0: use set_background_paint()
pub fn clear_background_color( &mut self, ) -> &mut Handle<skia_textlayout_TextStyle>
pub fn decoration(&self) -> &Decoration
pub fn decoration_type(&self) -> TextDecoration
pub fn decoration_mode(&self) -> skia_textlayout_TextDecorationMode
pub fn decoration_color(&self) -> Color
pub fn decoration_style(&self) -> skia_textlayout_TextDecorationStyle
pub fn decoration_thickness_multiplier(&self) -> f32
pub fn set_decoration(&mut self, decoration: &Decoration)
pub fn set_decoration_type(&mut self, decoration: TextDecoration)
pub fn set_decoration_mode(&mut self, mode: skia_textlayout_TextDecorationMode)
pub fn set_decoration_style( &mut self, style: skia_textlayout_TextDecorationStyle, )
pub fn set_decoration_color(&mut self, color: impl Into<Color>)
pub fn set_decoration_thickness_multiplier(&mut self, multiplier: f32)
pub fn decoration_mut(&mut self) -> &mut Decoration
👎Deprecated since 0.63.1: use set_decoration()
pub fn font_style(&self) -> FontStyle
pub fn set_font_style( &mut self, font_style: FontStyle, ) -> &mut Handle<skia_textlayout_TextStyle>
pub fn shadows(&self) -> &[TextShadow]
pub fn add_shadow( &mut self, shadow: TextShadow, ) -> &mut Handle<skia_textlayout_TextStyle>
pub fn reset_shadows(&mut self) -> &mut Handle<skia_textlayout_TextStyle>
pub fn font_features(&self) -> &[Handle<skia_textlayout_FontFeature>]
pub fn add_font_feature(&mut self, font_feature: impl AsRef<str>, value: i32)
pub fn reset_font_features(&mut self)
pub fn font_arguments(&self) -> Option<&Handle<skia_textlayout_FontArguments>>
pub fn set_font_arguments<'fa>(
&mut self,
arguments: impl Into<Option<&'fa FontArguments<'fa, 'fa>>>,
)
pub fn set_font_arguments<'fa>( &mut self, arguments: impl Into<Option<&'fa FontArguments<'fa, 'fa>>>, )
The contents of the crate::FontArguments
will be copied into the TextStyle
.