Trait IFontStyleConcept

pub trait IFontStyleConcept: Inherits<Object> + Inherits<FontStyleConcept> {
Show 18 methods // Provided methods fn get_size(&self) -> Result<f32, Error> { ... } fn set_size(&self, value: f32) -> Result<(), Error> { ... } fn get_font_style(&self) -> Result<FontStyle, Error> { ... } fn set_font_style(&self, value: FontStyle) -> Result<(), Error> { ... } fn get_weight(&self) -> Result<FontWeight, Error> { ... } fn set_weight(&self, value: FontWeight) -> Result<(), Error> { ... } fn get_character_spacing(&self) -> Result<f32, Error> { ... } fn set_character_spacing(&self, value: f32) -> Result<(), Error> { ... } fn get_fixed_character_width(&self) -> Result<f32, Error> { ... } fn set_fixed_character_width(&self, value: f32) -> Result<(), Error> { ... } fn get_line_spacing(&self) -> Result<f32, Error> { ... } fn set_line_spacing(&self, value: f32) -> Result<(), Error> { ... } fn get_fractional_character_width(&self) -> Result<bool, Error> { ... } fn set_fractional_character_width(&self, value: bool) -> Result<(), Error> { ... } fn get_snap_character_to_pixel_property(&self) -> Result<bool, Error> { ... } fn set_snap_character_to_pixel_property( &self, value: bool, ) -> Result<(), Error> { ... } fn get_font_hinting_preference( &self, ) -> Result<FontHintingPreference, Error> { ... } fn set_font_hinting_preference( &self, value: FontHintingPreference, ) -> Result<(), Error> { ... }
}
Expand description

FontStyleConcept is the base class for the nodes that draw text with different font styles.

§Since

Kanzi 3.8.0

Provided Methods§

fn get_size(&self) -> Result<f32, Error>

fn set_size(&self, value: f32) -> Result<(), Error>

fn get_font_style(&self) -> Result<FontStyle, Error>

fn set_font_style(&self, value: FontStyle) -> Result<(), Error>

fn get_weight(&self) -> Result<FontWeight, Error>

fn set_weight(&self, value: FontWeight) -> Result<(), Error>

fn get_character_spacing(&self) -> Result<f32, Error>

fn set_character_spacing(&self, value: f32) -> Result<(), Error>

fn get_fixed_character_width(&self) -> Result<f32, Error>

fn set_fixed_character_width(&self, value: f32) -> Result<(), Error>

fn get_line_spacing(&self) -> Result<f32, Error>

fn set_line_spacing(&self, value: f32) -> Result<(), Error>

fn get_fractional_character_width(&self) -> Result<bool, Error>

fn set_fractional_character_width(&self, value: bool) -> Result<(), Error>

fn get_snap_character_to_pixel_property(&self) -> Result<bool, Error>

fn set_snap_character_to_pixel_property(&self, value: bool) -> Result<(), Error>

fn get_font_hinting_preference(&self) -> Result<FontHintingPreference, Error>

fn set_font_hinting_preference( &self, value: FontHintingPreference, ) -> Result<(), Error>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§