Skip to main content

ITMP_TextElementMethods

Trait ITMP_TextElementMethods 

Source
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§

Source

fn get_element_type(self) -> TextElementType

get_elementType() overload

Source

fn get_unicode(self) -> u32

get_unicode() overload

Source

fn set_unicode(self, value: impl Into<u32>)

set_unicode(u32) overload

Source

fn get_text_asset(self) -> TMP_Asset

get_textAsset() overload

Source

fn set_text_asset(self, value: impl Into<TMP_Asset>)

set_textAsset(crate::tm_pro::tmp_asset::TMP_Asset) overload

Source

fn get_glyph(self) -> Glyph

get_glyph() overload

Source

fn set_glyph(self, value: impl Into<Glyph>)

set_glyph(crate::unity_engine::text_core::glyph::Glyph) overload

Source

fn get_glyph_index(self) -> u32

get_glyphIndex() overload

Source

fn set_glyph_index(self, value: impl Into<u32>)

set_glyphIndex(u32) overload

Source

fn get_scale(self) -> f32

get_scale() overload

Source

fn set_scale(self, value: impl Into<f32>)

set_scale(f32) overload

Source

fn ctor(self)

.ctor() 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: ITMP_TextElement> ITMP_TextElementMethods for __T

Available on crate feature tm_pro-tmp_textelement only.