Skip to main content

ITextContainerMethods

Trait ITextContainerMethods 

Source
pub trait ITextContainerMethods: ITextContainer {
Show 34 methods // Provided methods fn get_has_changed(self) -> bool { ... } fn set_has_changed(self, value: impl Into<bool>) { ... } fn get_pivot(self) -> Vector2 { ... } fn set_pivot(self, value: impl Into<Vector2>) { ... } fn get_anchor_position(self) -> TextContainerAnchors { ... } fn set_anchor_position(self, value: impl Into<TextContainerAnchors>) { ... } fn get_rect(self) -> Rect { ... } fn set_rect(self, value: impl Into<Rect>) { ... } fn get_size(self) -> Vector2 { ... } fn set_size(self, value: impl Into<Vector2>) { ... } fn get_width(self) -> f32 { ... } fn set_width(self, value: impl Into<f32>) { ... } fn get_height(self) -> f32 { ... } fn set_height(self, value: impl Into<f32>) { ... } fn get_is_default_width(self) -> bool { ... } fn get_is_default_height(self) -> bool { ... } fn get_is_auto_fitting(self) -> bool { ... } fn set_is_auto_fitting(self, value: impl Into<bool>) { ... } fn get_corners(self) -> Array<Vector3> { ... } fn get_world_corners(self) -> Array<Vector3> { ... } fn get_margins(self) -> Vector4 { ... } fn set_margins(self, value: impl Into<Vector4>) { ... } fn get_rect_transform(self) -> RectTransform { ... } fn get_text_mesh_pro(self) -> TextMeshPro { ... } fn awake(self) { ... } fn on_enable(self) { ... } fn on_disable(self) { ... } fn on_container_changed(self) { ... } fn on_rect_transform_dimensions_change(self) { ... } fn set_rect_2(self, size: impl Into<Vector2>) { ... } fn update_corners(self) { ... } fn get_pivot_2(self, anchor: impl Into<TextContainerAnchors>) -> Vector2 { ... } fn get_anchor_position_2( self, pivot: impl Into<Vector2>, ) -> TextContainerAnchors { ... } fn ctor(self) { ... }
}

Provided Methods§

Source

fn get_has_changed(self) -> bool

get_hasChanged() overload

Source

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

set_hasChanged(bool) overload

Source

fn get_pivot(self) -> Vector2

get_pivot() overload

Source

fn set_pivot(self, value: impl Into<Vector2>)

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

Source

fn get_anchor_position(self) -> TextContainerAnchors

get_anchorPosition() overload

Source

fn set_anchor_position(self, value: impl Into<TextContainerAnchors>)

set_anchorPosition(crate::tm_pro::textcontaineranchors::TextContainerAnchors) overload

Source

fn get_rect(self) -> Rect

get_rect() overload

Source

fn set_rect(self, value: impl Into<Rect>)

set_rect(crate::unity_engine::rect::Rect) overload

Source

fn get_size(self) -> Vector2

get_size() overload

Source

fn set_size(self, value: impl Into<Vector2>)

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

Source

fn get_width(self) -> f32

get_width() overload

Source

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

set_width(f32) overload

Source

fn get_height(self) -> f32

get_height() overload

Source

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

set_height(f32) overload

Source

fn get_is_default_width(self) -> bool

get_isDefaultWidth() overload

Source

fn get_is_default_height(self) -> bool

get_isDefaultHeight() overload

Source

fn get_is_auto_fitting(self) -> bool

get_isAutoFitting() overload

Source

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

set_isAutoFitting(bool) overload

Source

fn get_corners(self) -> Array<Vector3>

get_corners() overload

Source

fn get_world_corners(self) -> Array<Vector3>

get_worldCorners() overload

Source

fn get_margins(self) -> Vector4

get_margins() overload

Source

fn set_margins(self, value: impl Into<Vector4>)

set_margins(crate::unity_engine::vector4::Vector4) overload

Source

fn get_rect_transform(self) -> RectTransform

get_rectTransform() overload

Source

fn get_text_mesh_pro(self) -> TextMeshPro

get_textMeshPro() overload

Source

fn awake(self)

Awake() overload

Source

fn on_enable(self)

OnEnable() overload

Source

fn on_disable(self)

OnDisable() overload

Source

fn on_container_changed(self)

OnContainerChanged() overload

Source

fn on_rect_transform_dimensions_change(self)

OnRectTransformDimensionsChange() overload

Source

fn set_rect_2(self, size: impl Into<Vector2>)

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

Source

fn update_corners(self)

UpdateCorners() overload

Source

fn get_pivot_2(self, anchor: impl Into<TextContainerAnchors>) -> Vector2

GetPivot(crate::tm_pro::textcontaineranchors::TextContainerAnchors) overload

Source

fn get_anchor_position_2( self, pivot: impl Into<Vector2>, ) -> TextContainerAnchors

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

Source

fn ctor(self)

.ctor() 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: ITextContainer> ITextContainerMethods for __T

Available on crate feature tm_pro-textcontainer only.