Skip to main content

ITextGeneratorMethods

Trait ITextGeneratorMethods 

Source
pub trait ITextGeneratorMethods: ITextGenerator {
Show 29 methods // Provided methods fn ctor(self) { ... } fn ctor_2(self, initial_capacity: impl Into<i32>) { ... } fn finalize(self) { ... } fn system_i_disposable_dispose(self) { ... } fn get_character_count_visible(self) -> i32 { ... } fn validated_settings( self, settings: impl Into<TextGenerationSettings>, ) -> TextGenerationSettings { ... } fn invalidate(self) { ... } fn get_characters(self, characters: impl Into<List_1<UICharInfo>>) { ... } fn get_lines(self, lines: impl Into<List_1<UILineInfo>>) { ... } fn get_vertices(self, vertices: impl Into<List_1<UIVertex>>) { ... } fn get_preferred_width( self, str: impl Into<Il2CppString>, settings: impl Into<TextGenerationSettings>, ) -> f32 { ... } fn get_preferred_height( self, str: impl Into<Il2CppString>, settings: impl Into<TextGenerationSettings>, ) -> f32 { ... } fn populate_with_errors( self, str: impl Into<Il2CppString>, settings: impl Into<TextGenerationSettings>, context: impl Into<GameObject>, ) -> bool { ... } fn populate( self, str: impl Into<Il2CppString>, settings: impl Into<TextGenerationSettings>, ) -> bool { ... } fn populate_with_error( self, str: impl Into<Il2CppString>, settings: impl Into<TextGenerationSettings>, ) -> TextGenerationError { ... } fn populate_always( self, str: impl Into<Il2CppString>, settings: impl Into<TextGenerationSettings>, ) -> TextGenerationError { ... } fn get_verts(self) -> IList_1_Interface<UIVertex> { ... } fn get_characters_2(self) -> IList_1_Interface<UICharInfo> { ... } fn get_lines_2(self) -> IList_1_Interface<UILineInfo> { ... } fn get_rect_extents(self) -> Rect { ... } fn get_character_count(self) -> i32 { ... } fn get_line_count(self) -> i32 { ... } fn populate_internal( self, str: impl Into<Il2CppString>, font: impl Into<Font>, color: impl Into<Color>, font_size: impl Into<i32>, scale_factor: impl Into<f32>, line_spacing: impl Into<f32>, style: impl Into<FontStyle>, rich_text: impl Into<bool>, resize_text_for_best_fit: impl Into<bool>, resize_text_min_size: impl Into<i32>, resize_text_max_size: impl Into<i32>, vertical_over_flow: impl Into<i32>, horizontal_overflow: impl Into<i32>, update_bounds: impl Into<bool>, anchor: impl Into<TextAnchor>, extents_x: impl Into<f32>, extents_y: impl Into<f32>, pivot_x: impl Into<f32>, pivot_y: impl Into<f32>, generate_out_of_bounds: impl Into<bool>, align_by_geometry: impl Into<bool>, ) -> (bool, u32) { ... } fn populate_internal_2( self, str: impl Into<Il2CppString>, font: impl Into<Font>, color: impl Into<Color>, font_size: impl Into<i32>, scale_factor: impl Into<f32>, line_spacing: impl Into<f32>, style: impl Into<FontStyle>, rich_text: impl Into<bool>, resize_text_for_best_fit: impl Into<bool>, resize_text_min_size: impl Into<i32>, resize_text_max_size: impl Into<i32>, vertical_over_flow: impl Into<VerticalWrapMode>, horizontal_overflow: impl Into<HorizontalWrapMode>, update_bounds: impl Into<bool>, anchor: impl Into<TextAnchor>, extents: impl Into<Vector2>, pivot: impl Into<Vector2>, generate_out_of_bounds: impl Into<bool>, align_by_geometry: impl Into<bool>, ) -> (bool, TextGenerationError) { ... } fn get_vertices_internal(self, vertices: impl Into<Object>) { ... } fn get_characters_internal(self, characters: impl Into<Object>) { ... } fn get_lines_internal(self, lines: impl Into<Object>) { ... } fn get_rect_extents_injected(self) -> Rect { ... } fn populate_internal_injected( self, str: impl Into<Il2CppString>, font: impl Into<Font>, font_size: impl Into<i32>, scale_factor: impl Into<f32>, line_spacing: impl Into<f32>, style: impl Into<FontStyle>, rich_text: impl Into<bool>, resize_text_for_best_fit: impl Into<bool>, resize_text_min_size: impl Into<i32>, resize_text_max_size: impl Into<i32>, vertical_over_flow: impl Into<i32>, horizontal_overflow: impl Into<i32>, update_bounds: impl Into<bool>, anchor: impl Into<TextAnchor>, extents_x: impl Into<f32>, extents_y: impl Into<f32>, pivot_x: impl Into<f32>, pivot_y: impl Into<f32>, generate_out_of_bounds: impl Into<bool>, align_by_geometry: impl Into<bool>, ) -> (bool, Color, u32) { ... }
}

Provided Methods§

Source

fn ctor(self)

.ctor() overload

Source

fn ctor_2(self, initial_capacity: impl Into<i32>)

.ctor(i32) overload

Source

fn finalize(self)

Finalize() overload

Source

fn system_i_disposable_dispose(self)

System.IDisposable.Dispose() overload

Source

fn get_character_count_visible(self) -> i32

get_characterCountVisible() overload

Source

fn validated_settings( self, settings: impl Into<TextGenerationSettings>, ) -> TextGenerationSettings

ValidatedSettings(crate::unity_engine::textgenerationsettings::TextGenerationSettings) overload

Source

fn invalidate(self)

Invalidate() overload

Source

fn get_characters(self, characters: impl Into<List_1<UICharInfo>>)

GetCharacters(crate::system::collections::generic::list_1::List_1<crate::unity_engine::uicharinfo::UICharInfo>) overload

Source

fn get_lines(self, lines: impl Into<List_1<UILineInfo>>)

GetLines(crate::system::collections::generic::list_1::List_1<crate::unity_engine::uilineinfo::UILineInfo>) overload

Source

fn get_vertices(self, vertices: impl Into<List_1<UIVertex>>)

GetVertices(crate::system::collections::generic::list_1::List_1<crate::unity_engine::uivertex::UIVertex>) overload

Source

fn get_preferred_width( self, str: impl Into<Il2CppString>, settings: impl Into<TextGenerationSettings>, ) -> f32

GetPreferredWidth(::unity::Il2CppString, crate::unity_engine::textgenerationsettings::TextGenerationSettings) overload

Source

fn get_preferred_height( self, str: impl Into<Il2CppString>, settings: impl Into<TextGenerationSettings>, ) -> f32

GetPreferredHeight(::unity::Il2CppString, crate::unity_engine::textgenerationsettings::TextGenerationSettings) overload

Source

fn populate_with_errors( self, str: impl Into<Il2CppString>, settings: impl Into<TextGenerationSettings>, context: impl Into<GameObject>, ) -> bool

PopulateWithErrors(::unity::Il2CppString, crate::unity_engine::textgenerationsettings::TextGenerationSettings, crate::unity_engine::gameobject::GameObject) overload

Source

fn populate( self, str: impl Into<Il2CppString>, settings: impl Into<TextGenerationSettings>, ) -> bool

Populate(::unity::Il2CppString, crate::unity_engine::textgenerationsettings::TextGenerationSettings) overload

Source

fn populate_with_error( self, str: impl Into<Il2CppString>, settings: impl Into<TextGenerationSettings>, ) -> TextGenerationError

PopulateWithError(::unity::Il2CppString, crate::unity_engine::textgenerationsettings::TextGenerationSettings) overload

Source

fn populate_always( self, str: impl Into<Il2CppString>, settings: impl Into<TextGenerationSettings>, ) -> TextGenerationError

PopulateAlways(::unity::Il2CppString, crate::unity_engine::textgenerationsettings::TextGenerationSettings) overload

Source

fn get_verts(self) -> IList_1_Interface<UIVertex>

get_verts() overload

Source

fn get_characters_2(self) -> IList_1_Interface<UICharInfo>

get_characters() overload

Source

fn get_lines_2(self) -> IList_1_Interface<UILineInfo>

get_lines() overload

Source

fn get_rect_extents(self) -> Rect

get_rectExtents() overload

Source

fn get_character_count(self) -> i32

get_characterCount() overload

Source

fn get_line_count(self) -> i32

get_lineCount() overload

Source

fn populate_internal( self, str: impl Into<Il2CppString>, font: impl Into<Font>, color: impl Into<Color>, font_size: impl Into<i32>, scale_factor: impl Into<f32>, line_spacing: impl Into<f32>, style: impl Into<FontStyle>, rich_text: impl Into<bool>, resize_text_for_best_fit: impl Into<bool>, resize_text_min_size: impl Into<i32>, resize_text_max_size: impl Into<i32>, vertical_over_flow: impl Into<i32>, horizontal_overflow: impl Into<i32>, update_bounds: impl Into<bool>, anchor: impl Into<TextAnchor>, extents_x: impl Into<f32>, extents_y: impl Into<f32>, pivot_x: impl Into<f32>, pivot_y: impl Into<f32>, generate_out_of_bounds: impl Into<bool>, align_by_geometry: impl Into<bool>, ) -> (bool, u32)

Populate_Internal(::unity::Il2CppString, crate::unity_engine::font::Font, crate::unity_engine::color::Color, i32, f32, f32, crate::unity_engine::fontstyle::FontStyle, bool, bool, i32, i32, i32, i32, bool, crate::unity_engine::textanchor::TextAnchor, f32, f32, f32, f32, bool, bool, *mutu32) overload

Source

fn populate_internal_2( self, str: impl Into<Il2CppString>, font: impl Into<Font>, color: impl Into<Color>, font_size: impl Into<i32>, scale_factor: impl Into<f32>, line_spacing: impl Into<f32>, style: impl Into<FontStyle>, rich_text: impl Into<bool>, resize_text_for_best_fit: impl Into<bool>, resize_text_min_size: impl Into<i32>, resize_text_max_size: impl Into<i32>, vertical_over_flow: impl Into<VerticalWrapMode>, horizontal_overflow: impl Into<HorizontalWrapMode>, update_bounds: impl Into<bool>, anchor: impl Into<TextAnchor>, extents: impl Into<Vector2>, pivot: impl Into<Vector2>, generate_out_of_bounds: impl Into<bool>, align_by_geometry: impl Into<bool>, ) -> (bool, TextGenerationError)

Populate_Internal(::unity::Il2CppString, crate::unity_engine::font::Font, crate::unity_engine::color::Color, i32, f32, f32, crate::unity_engine::fontstyle::FontStyle, bool, bool, i32, i32, crate::unity_engine::verticalwrapmode::VerticalWrapMode, crate::unity_engine::horizontalwrapmode::HorizontalWrapMode, bool, crate::unity_engine::textanchor::TextAnchor, crate::unity_engine::vector2::Vector2, crate::unity_engine::vector2::Vector2, bool, bool, *mutcrate::unity_engine::textgenerationerror::TextGenerationError) overload

Source

fn get_vertices_internal(self, vertices: impl Into<Object>)

GetVerticesInternal(crate::system::object::Object) overload

Source

fn get_characters_internal(self, characters: impl Into<Object>)

GetCharactersInternal(crate::system::object::Object) overload

Source

fn get_lines_internal(self, lines: impl Into<Object>)

GetLinesInternal(crate::system::object::Object) overload

Source

fn get_rect_extents_injected(self) -> Rect

get_rectExtents_Injected(*mutcrate::unity_engine::rect::Rect) overload

Source

fn populate_internal_injected( self, str: impl Into<Il2CppString>, font: impl Into<Font>, font_size: impl Into<i32>, scale_factor: impl Into<f32>, line_spacing: impl Into<f32>, style: impl Into<FontStyle>, rich_text: impl Into<bool>, resize_text_for_best_fit: impl Into<bool>, resize_text_min_size: impl Into<i32>, resize_text_max_size: impl Into<i32>, vertical_over_flow: impl Into<i32>, horizontal_overflow: impl Into<i32>, update_bounds: impl Into<bool>, anchor: impl Into<TextAnchor>, extents_x: impl Into<f32>, extents_y: impl Into<f32>, pivot_x: impl Into<f32>, pivot_y: impl Into<f32>, generate_out_of_bounds: impl Into<bool>, align_by_geometry: impl Into<bool>, ) -> (bool, Color, u32)

Populate_Internal_Injected(::unity::Il2CppString, crate::unity_engine::font::Font, *mutcrate::unity_engine::color::Color, i32, f32, f32, crate::unity_engine::fontstyle::FontStyle, bool, bool, i32, i32, i32, i32, bool, crate::unity_engine::textanchor::TextAnchor, f32, f32, f32, f32, bool, bool, *mutu32) 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: ITextGenerator> ITextGeneratorMethods for __T

Available on crate feature unity_engine-textgenerator only.