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§
Sourcefn get_material(self) -> Material
fn get_material(self) -> Material
get_material() overload
Sourcefn get_dynamic(self) -> bool
fn get_dynamic(self) -> bool
get_dynamic() overload
Sourcefn get_font_size(self) -> i32
fn get_font_size(self) -> i32
get_fontSize() overload
Sourcefn has_character(self, c: impl Into<u16>) -> bool
fn has_character(self, c: impl Into<u16>) -> bool
HasCharacter(u16) overload
Sourcefn has_character_2(self, c: impl Into<i32>) -> bool
fn has_character_2(self, c: impl Into<i32>) -> bool
HasCharacter(i32) overload
Sourcefn get_character_info(
self,
ch: impl Into<u16>,
size: impl Into<i32>,
style: impl Into<FontStyle>,
) -> (bool, CharacterInfo)
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
Sourcefn get_character_info_2(self, ch: impl Into<u16>) -> (bool, CharacterInfo)
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§
impl<__T: IFont> IFontMethods for __T
Available on crate feature
unity_engine-font only.