pub trait ITextMethods: IText {
Show 47 methods
// Provided methods
fn ctor(self) { ... }
fn get_cached_text_generator(self) -> TextGenerator { ... }
fn get_cached_text_generator_for_layout(self) -> TextGenerator { ... }
fn get_main_texture(self) -> Texture { ... }
fn font_texture_changed(self) { ... }
fn get_font(self) -> Font { ... }
fn set_font(self, value: impl Into<Font>) { ... }
fn get_text(self) -> Il2CppString { ... }
fn set_text(self, value: impl Into<Il2CppString>) { ... }
fn get_support_rich_text(self) -> bool { ... }
fn set_support_rich_text(self, value: impl Into<bool>) { ... }
fn get_resize_text_for_best_fit(self) -> bool { ... }
fn set_resize_text_for_best_fit(self, value: impl Into<bool>) { ... }
fn get_resize_text_min_size(self) -> i32 { ... }
fn set_resize_text_min_size(self, value: impl Into<i32>) { ... }
fn get_resize_text_max_size(self) -> i32 { ... }
fn set_resize_text_max_size(self, value: impl Into<i32>) { ... }
fn get_alignment(self) -> TextAnchor { ... }
fn set_alignment(self, value: impl Into<TextAnchor>) { ... }
fn get_align_by_geometry(self) -> bool { ... }
fn set_align_by_geometry(self, value: impl Into<bool>) { ... }
fn get_font_size(self) -> i32 { ... }
fn set_font_size(self, value: impl Into<i32>) { ... }
fn get_horizontal_overflow(self) -> HorizontalWrapMode { ... }
fn set_horizontal_overflow(self, value: impl Into<HorizontalWrapMode>) { ... }
fn get_vertical_overflow(self) -> VerticalWrapMode { ... }
fn set_vertical_overflow(self, value: impl Into<VerticalWrapMode>) { ... }
fn get_line_spacing(self) -> f32 { ... }
fn set_line_spacing(self, value: impl Into<f32>) { ... }
fn get_font_style(self) -> FontStyle { ... }
fn set_font_style(self, value: impl Into<FontStyle>) { ... }
fn get_pixels_per_unit(self) -> f32 { ... }
fn on_enable(self) { ... }
fn on_disable(self) { ... }
fn update_geometry(self) { ... }
fn assign_default_font(self) { ... }
fn get_generation_settings(
self,
extents: impl Into<Vector2>,
) -> TextGenerationSettings { ... }
fn on_populate_mesh(self, to_fill: impl Into<VertexHelper>) { ... }
fn calculate_layout_input_horizontal(self) { ... }
fn calculate_layout_input_vertical(self) { ... }
fn get_min_width(self) -> f32 { ... }
fn get_preferred_width(self) -> f32 { ... }
fn get_flexible_width(self) -> f32 { ... }
fn get_min_height(self) -> f32 { ... }
fn get_preferred_height(self) -> f32 { ... }
fn get_flexible_height(self) -> f32 { ... }
fn get_layout_priority(self) -> i32 { ... }
}Provided Methods§
Sourcefn get_cached_text_generator(self) -> TextGenerator
fn get_cached_text_generator(self) -> TextGenerator
get_cachedTextGenerator() overload
Sourcefn get_cached_text_generator_for_layout(self) -> TextGenerator
fn get_cached_text_generator_for_layout(self) -> TextGenerator
get_cachedTextGeneratorForLayout() overload
Sourcefn get_main_texture(self) -> Texture
fn get_main_texture(self) -> Texture
get_mainTexture() overload
Sourcefn font_texture_changed(self)
fn font_texture_changed(self)
FontTextureChanged() overload
Sourcefn get_text(self) -> Il2CppString
fn get_text(self) -> Il2CppString
get_text() overload
Sourcefn set_text(self, value: impl Into<Il2CppString>)
fn set_text(self, value: impl Into<Il2CppString>)
set_text(::unity::Il2CppString) overload
Sourcefn get_support_rich_text(self) -> bool
fn get_support_rich_text(self) -> bool
get_supportRichText() overload
Sourcefn set_support_rich_text(self, value: impl Into<bool>)
fn set_support_rich_text(self, value: impl Into<bool>)
set_supportRichText(bool) overload
Sourcefn get_resize_text_for_best_fit(self) -> bool
fn get_resize_text_for_best_fit(self) -> bool
get_resizeTextForBestFit() overload
Sourcefn set_resize_text_for_best_fit(self, value: impl Into<bool>)
fn set_resize_text_for_best_fit(self, value: impl Into<bool>)
set_resizeTextForBestFit(bool) overload
Sourcefn get_resize_text_min_size(self) -> i32
fn get_resize_text_min_size(self) -> i32
get_resizeTextMinSize() overload
Sourcefn set_resize_text_min_size(self, value: impl Into<i32>)
fn set_resize_text_min_size(self, value: impl Into<i32>)
set_resizeTextMinSize(i32) overload
Sourcefn get_resize_text_max_size(self) -> i32
fn get_resize_text_max_size(self) -> i32
get_resizeTextMaxSize() overload
Sourcefn set_resize_text_max_size(self, value: impl Into<i32>)
fn set_resize_text_max_size(self, value: impl Into<i32>)
set_resizeTextMaxSize(i32) overload
Sourcefn get_alignment(self) -> TextAnchor
fn get_alignment(self) -> TextAnchor
get_alignment() overload
Sourcefn set_alignment(self, value: impl Into<TextAnchor>)
fn set_alignment(self, value: impl Into<TextAnchor>)
set_alignment(crate::unity_engine::textanchor::TextAnchor) overload
Sourcefn get_align_by_geometry(self) -> bool
fn get_align_by_geometry(self) -> bool
get_alignByGeometry() overload
Sourcefn set_align_by_geometry(self, value: impl Into<bool>)
fn set_align_by_geometry(self, value: impl Into<bool>)
set_alignByGeometry(bool) overload
Sourcefn get_font_size(self) -> i32
fn get_font_size(self) -> i32
get_fontSize() overload
Sourcefn set_font_size(self, value: impl Into<i32>)
fn set_font_size(self, value: impl Into<i32>)
set_fontSize(i32) overload
Sourcefn get_horizontal_overflow(self) -> HorizontalWrapMode
fn get_horizontal_overflow(self) -> HorizontalWrapMode
get_horizontalOverflow() overload
Sourcefn set_horizontal_overflow(self, value: impl Into<HorizontalWrapMode>)
fn set_horizontal_overflow(self, value: impl Into<HorizontalWrapMode>)
set_horizontalOverflow(crate::unity_engine::horizontalwrapmode::HorizontalWrapMode) overload
Sourcefn get_vertical_overflow(self) -> VerticalWrapMode
fn get_vertical_overflow(self) -> VerticalWrapMode
get_verticalOverflow() overload
Sourcefn set_vertical_overflow(self, value: impl Into<VerticalWrapMode>)
fn set_vertical_overflow(self, value: impl Into<VerticalWrapMode>)
set_verticalOverflow(crate::unity_engine::verticalwrapmode::VerticalWrapMode) overload
Sourcefn get_line_spacing(self) -> f32
fn get_line_spacing(self) -> f32
get_lineSpacing() overload
Sourcefn set_line_spacing(self, value: impl Into<f32>)
fn set_line_spacing(self, value: impl Into<f32>)
set_lineSpacing(f32) overload
Sourcefn get_font_style(self) -> FontStyle
fn get_font_style(self) -> FontStyle
get_fontStyle() overload
Sourcefn set_font_style(self, value: impl Into<FontStyle>)
fn set_font_style(self, value: impl Into<FontStyle>)
set_fontStyle(crate::unity_engine::fontstyle::FontStyle) overload
Sourcefn get_pixels_per_unit(self) -> f32
fn get_pixels_per_unit(self) -> f32
get_pixelsPerUnit() overload
Sourcefn on_disable(self)
fn on_disable(self)
OnDisable() overload
Sourcefn update_geometry(self)
fn update_geometry(self)
UpdateGeometry() overload
Sourcefn assign_default_font(self)
fn assign_default_font(self)
AssignDefaultFont() overload
Sourcefn get_generation_settings(
self,
extents: impl Into<Vector2>,
) -> TextGenerationSettings
fn get_generation_settings( self, extents: impl Into<Vector2>, ) -> TextGenerationSettings
GetGenerationSettings(crate::unity_engine::vector2::Vector2) overload
Sourcefn on_populate_mesh(self, to_fill: impl Into<VertexHelper>)
fn on_populate_mesh(self, to_fill: impl Into<VertexHelper>)
OnPopulateMesh(crate::unity_engine::ui::vertexhelper::VertexHelper) overload
Sourcefn calculate_layout_input_horizontal(self)
fn calculate_layout_input_horizontal(self)
CalculateLayoutInputHorizontal() overload
Sourcefn calculate_layout_input_vertical(self)
fn calculate_layout_input_vertical(self)
CalculateLayoutInputVertical() overload
Sourcefn get_min_width(self) -> f32
fn get_min_width(self) -> f32
get_minWidth() overload
Sourcefn get_preferred_width(self) -> f32
fn get_preferred_width(self) -> f32
get_preferredWidth() overload
Sourcefn get_flexible_width(self) -> f32
fn get_flexible_width(self) -> f32
get_flexibleWidth() overload
Sourcefn get_min_height(self) -> f32
fn get_min_height(self) -> f32
get_minHeight() overload
Sourcefn get_preferred_height(self) -> f32
fn get_preferred_height(self) -> f32
get_preferredHeight() overload
Sourcefn get_flexible_height(self) -> f32
fn get_flexible_height(self) -> f32
get_flexibleHeight() overload
Sourcefn get_layout_priority(self) -> i32
fn get_layout_priority(self) -> i32
get_layoutPriority() 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: IText> ITextMethods for __T
unity_engine-ui-text only.