Skip to main content

ITextMethods

Trait ITextMethods 

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

Source

fn ctor(self)

.ctor() overload

Source

fn get_cached_text_generator(self) -> TextGenerator

get_cachedTextGenerator() overload

Source

fn get_cached_text_generator_for_layout(self) -> TextGenerator

get_cachedTextGeneratorForLayout() overload

Source

fn get_main_texture(self) -> Texture

get_mainTexture() overload

Source

fn font_texture_changed(self)

FontTextureChanged() overload

Source

fn get_font(self) -> Font

get_font() overload

Source

fn set_font(self, value: impl Into<Font>)

set_font(crate::unity_engine::font::Font) overload

Source

fn get_text(self) -> Il2CppString

get_text() overload

Source

fn set_text(self, value: impl Into<Il2CppString>)

set_text(::unity::Il2CppString) overload

Source

fn get_support_rich_text(self) -> bool

get_supportRichText() overload

Source

fn set_support_rich_text(self, value: impl Into<bool>)

set_supportRichText(bool) overload

Source

fn get_resize_text_for_best_fit(self) -> bool

get_resizeTextForBestFit() overload

Source

fn set_resize_text_for_best_fit(self, value: impl Into<bool>)

set_resizeTextForBestFit(bool) overload

Source

fn get_resize_text_min_size(self) -> i32

get_resizeTextMinSize() overload

Source

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

set_resizeTextMinSize(i32) overload

Source

fn get_resize_text_max_size(self) -> i32

get_resizeTextMaxSize() overload

Source

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

set_resizeTextMaxSize(i32) overload

Source

fn get_alignment(self) -> TextAnchor

get_alignment() overload

Source

fn set_alignment(self, value: impl Into<TextAnchor>)

set_alignment(crate::unity_engine::textanchor::TextAnchor) overload

Source

fn get_align_by_geometry(self) -> bool

get_alignByGeometry() overload

Source

fn set_align_by_geometry(self, value: impl Into<bool>)

set_alignByGeometry(bool) overload

Source

fn get_font_size(self) -> i32

get_fontSize() overload

Source

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

set_fontSize(i32) overload

Source

fn get_horizontal_overflow(self) -> HorizontalWrapMode

get_horizontalOverflow() overload

Source

fn set_horizontal_overflow(self, value: impl Into<HorizontalWrapMode>)

set_horizontalOverflow(crate::unity_engine::horizontalwrapmode::HorizontalWrapMode) overload

Source

fn get_vertical_overflow(self) -> VerticalWrapMode

get_verticalOverflow() overload

Source

fn set_vertical_overflow(self, value: impl Into<VerticalWrapMode>)

set_verticalOverflow(crate::unity_engine::verticalwrapmode::VerticalWrapMode) overload

Source

fn get_line_spacing(self) -> f32

get_lineSpacing() overload

Source

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

set_lineSpacing(f32) overload

Source

fn get_font_style(self) -> FontStyle

get_fontStyle() overload

Source

fn set_font_style(self, value: impl Into<FontStyle>)

set_fontStyle(crate::unity_engine::fontstyle::FontStyle) overload

Source

fn get_pixels_per_unit(self) -> f32

get_pixelsPerUnit() overload

Source

fn on_enable(self)

OnEnable() overload

Source

fn on_disable(self)

OnDisable() overload

Source

fn update_geometry(self)

UpdateGeometry() overload

Source

fn assign_default_font(self)

AssignDefaultFont() overload

Source

fn get_generation_settings( self, extents: impl Into<Vector2>, ) -> TextGenerationSettings

GetGenerationSettings(crate::unity_engine::vector2::Vector2) overload

Source

fn on_populate_mesh(self, to_fill: impl Into<VertexHelper>)

OnPopulateMesh(crate::unity_engine::ui::vertexhelper::VertexHelper) overload

Source

fn calculate_layout_input_horizontal(self)

CalculateLayoutInputHorizontal() overload

Source

fn calculate_layout_input_vertical(self)

CalculateLayoutInputVertical() overload

Source

fn get_min_width(self) -> f32

get_minWidth() overload

Source

fn get_preferred_width(self) -> f32

get_preferredWidth() overload

Source

fn get_flexible_width(self) -> f32

get_flexibleWidth() overload

Source

fn get_min_height(self) -> f32

get_minHeight() overload

Source

fn get_preferred_height(self) -> f32

get_preferredHeight() overload

Source

fn get_flexible_height(self) -> f32

get_flexibleHeight() overload

Source

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§

Source§

impl<__T: IText> ITextMethods for __T

Available on crate feature unity_engine-ui-text only.