pub trait ITMP_TextElementMethods: ITMP_TextElement {
// Provided methods
fn get_element_type(self) -> TextElementType { ... }
fn get_unicode(self) -> u32 { ... }
fn set_unicode(self, value: impl Into<u32>) { ... }
fn get_text_asset(self) -> TMP_Asset { ... }
fn set_text_asset(self, value: impl Into<TMP_Asset>) { ... }
fn get_glyph(self) -> Glyph { ... }
fn set_glyph(self, value: impl Into<Glyph>) { ... }
fn get_glyph_index(self) -> u32 { ... }
fn set_glyph_index(self, value: impl Into<u32>) { ... }
fn get_scale(self) -> f32 { ... }
fn set_scale(self, value: impl Into<f32>) { ... }
fn ctor(self) { ... }
}Provided Methods§
Sourcefn get_element_type(self) -> TextElementType
fn get_element_type(self) -> TextElementType
get_elementType() overload
Sourcefn get_unicode(self) -> u32
fn get_unicode(self) -> u32
get_unicode() overload
Sourcefn set_unicode(self, value: impl Into<u32>)
fn set_unicode(self, value: impl Into<u32>)
set_unicode(u32) overload
Sourcefn get_text_asset(self) -> TMP_Asset
fn get_text_asset(self) -> TMP_Asset
get_textAsset() overload
Sourcefn set_text_asset(self, value: impl Into<TMP_Asset>)
fn set_text_asset(self, value: impl Into<TMP_Asset>)
set_textAsset(crate::tm_pro::tmp_asset::TMP_Asset) overload
Sourcefn set_glyph(self, value: impl Into<Glyph>)
fn set_glyph(self, value: impl Into<Glyph>)
set_glyph(crate::unity_engine::text_core::glyph::Glyph) overload
Sourcefn get_glyph_index(self) -> u32
fn get_glyph_index(self) -> u32
get_glyphIndex() overload
Sourcefn set_glyph_index(self, value: impl Into<u32>)
fn set_glyph_index(self, value: impl Into<u32>)
set_glyphIndex(u32) 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: ITMP_TextElement> ITMP_TextElementMethods for __T
Available on crate feature
tm_pro-tmp_textelement only.