Skip to main content

IFontMethods

Trait IFontMethods 

Source
pub trait IFontMethods: IFont {
    // Provided methods
    fn get_material(self) -> Material { ... }
    fn get_dynamic(self) -> bool { ... }
    fn get_font_size(self) -> i32 { ... }
    fn has_character(self, c: impl Into<u16>) -> bool { ... }
    fn has_character_2(self, c: impl Into<i32>) -> bool { ... }
    fn get_character_info(
        self,
        ch: impl Into<u16>,
        size: impl Into<i32>,
        style: impl Into<FontStyle>,
    ) -> (bool, CharacterInfo) { ... }
    fn get_character_info_2(self, ch: impl Into<u16>) -> (bool, CharacterInfo) { ... }
}

Provided Methods§

Source

fn get_material(self) -> Material

get_material() overload

Source

fn get_dynamic(self) -> bool

get_dynamic() overload

Source

fn get_font_size(self) -> i32

get_fontSize() overload

Source

fn has_character(self, c: impl Into<u16>) -> bool

HasCharacter(u16) overload

Source

fn has_character_2(self, c: impl Into<i32>) -> bool

HasCharacter(i32) overload

Source

fn get_character_info( self, ch: impl Into<u16>, size: impl Into<i32>, style: impl Into<FontStyle>, ) -> (bool, CharacterInfo)

GetCharacterInfo(u16, *mutcrate::unity_engine::characterinfo::CharacterInfo, i32, crate::unity_engine::fontstyle::FontStyle) overload

Source

fn get_character_info_2(self, ch: impl Into<u16>) -> (bool, CharacterInfo)

GetCharacterInfo(u16, *mutcrate::unity_engine::characterinfo::CharacterInfo) overload

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§

Source§

impl<__T: IFont> IFontMethods for __T

Available on crate feature unity_engine-font only.