Skip to main content

IGlyphMethods

Trait IGlyphMethods 

Source
pub trait IGlyphMethods: IGlyph {
Show 13 methods // Provided methods fn get_index(self) -> u32 { ... } fn set_index(self, value: impl Into<u32>) { ... } fn get_metrics(self) -> GlyphMetrics { ... } fn set_metrics(self, value: impl Into<GlyphMetrics>) { ... } fn get_glyph_rect(self) -> GlyphRect { ... } fn set_glyph_rect(self, value: impl Into<GlyphRect>) { ... } fn get_scale(self) -> f32 { ... } fn set_scale(self, value: impl Into<f32>) { ... } fn get_atlas_index(self) -> i32 { ... } fn set_atlas_index(self, value: impl Into<i32>) { ... } fn ctor(self) { ... } fn ctor_2(self, glyph_struct: impl Into<GlyphMarshallingStruct>) { ... } fn ctor_3( self, index: impl Into<u32>, metrics: impl Into<GlyphMetrics>, glyph_rect: impl Into<GlyphRect>, scale: impl Into<f32>, atlas_index: impl Into<i32>, ) { ... }
}

Provided Methods§

Source

fn get_index(self) -> u32

get_index() overload

Source

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

set_index(u32) overload

Source

fn get_metrics(self) -> GlyphMetrics

get_metrics() overload

Source

fn set_metrics(self, value: impl Into<GlyphMetrics>)

set_metrics(crate::unity_engine::text_core::glyphmetrics::GlyphMetrics) overload

Source

fn get_glyph_rect(self) -> GlyphRect

get_glyphRect() overload

Source

fn set_glyph_rect(self, value: impl Into<GlyphRect>)

set_glyphRect(crate::unity_engine::text_core::glyphrect::GlyphRect) 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 get_atlas_index(self) -> i32

get_atlasIndex() overload

Source

fn set_atlas_index(self, value: impl Into<i32>)

set_atlasIndex(i32) overload

Source

fn ctor(self)

.ctor() overload

Source

fn ctor_2(self, glyph_struct: impl Into<GlyphMarshallingStruct>)

.ctor(crate::unity_engine::text_core::low_level::glyphmarshallingstruct::GlyphMarshallingStruct) overload

Source

fn ctor_3( self, index: impl Into<u32>, metrics: impl Into<GlyphMetrics>, glyph_rect: impl Into<GlyphRect>, scale: impl Into<f32>, atlas_index: impl Into<i32>, )

.ctor(u32, crate::unity_engine::text_core::glyphmetrics::GlyphMetrics, crate::unity_engine::text_core::glyphrect::GlyphRect, f32, i32) 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: IGlyph> IGlyphMethods for __T

Available on crate feature unity_engine-text_core-glyph only.