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§
Sourcefn get_metrics(self) -> GlyphMetrics
fn get_metrics(self) -> GlyphMetrics
get_metrics() overload
Sourcefn set_metrics(self, value: impl Into<GlyphMetrics>)
fn set_metrics(self, value: impl Into<GlyphMetrics>)
set_metrics(crate::unity_engine::text_core::glyphmetrics::GlyphMetrics) overload
Sourcefn get_glyph_rect(self) -> GlyphRect
fn get_glyph_rect(self) -> GlyphRect
get_glyphRect() overload
Sourcefn set_glyph_rect(self, value: impl Into<GlyphRect>)
fn set_glyph_rect(self, value: impl Into<GlyphRect>)
set_glyphRect(crate::unity_engine::text_core::glyphrect::GlyphRect) overload
Sourcefn get_atlas_index(self) -> i32
fn get_atlas_index(self) -> i32
get_atlasIndex() overload
Sourcefn set_atlas_index(self, value: impl Into<i32>)
fn set_atlas_index(self, value: impl Into<i32>)
set_atlasIndex(i32) overload
Sourcefn ctor_2(self, glyph_struct: impl Into<GlyphMarshallingStruct>)
fn ctor_2(self, glyph_struct: impl Into<GlyphMarshallingStruct>)
.ctor(crate::unity_engine::text_core::low_level::glyphmarshallingstruct::GlyphMarshallingStruct) overload
Sourcefn 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>,
)
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§
impl<__T: IGlyph> IGlyphMethods for __T
Available on crate feature
unity_engine-text_core-glyph only.