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§
Sourcefn get_has_changed(self) -> bool
fn get_has_changed(self) -> bool
get_hasChanged() overload
Sourcefn set_has_changed(self, value: impl Into<bool>)
fn set_has_changed(self, value: impl Into<bool>)
set_hasChanged(bool) overload
Sourcefn set_pivot(self, value: impl Into<Vector2>)
fn set_pivot(self, value: impl Into<Vector2>)
set_pivot(crate::unity_engine::vector2::Vector2) overload
Sourcefn get_anchor_position(self) -> TextContainerAnchors
fn get_anchor_position(self) -> TextContainerAnchors
get_anchorPosition() overload
Sourcefn set_anchor_position(self, value: impl Into<TextContainerAnchors>)
fn set_anchor_position(self, value: impl Into<TextContainerAnchors>)
set_anchorPosition(crate::tm_pro::textcontaineranchors::TextContainerAnchors) overload
Sourcefn set_size(self, value: impl Into<Vector2>)
fn set_size(self, value: impl Into<Vector2>)
set_size(crate::unity_engine::vector2::Vector2) overload
Sourcefn get_height(self) -> f32
fn get_height(self) -> f32
get_height() overload
Sourcefn set_height(self, value: impl Into<f32>)
fn set_height(self, value: impl Into<f32>)
set_height(f32) overload
Sourcefn get_is_default_width(self) -> bool
fn get_is_default_width(self) -> bool
get_isDefaultWidth() overload
Sourcefn get_is_default_height(self) -> bool
fn get_is_default_height(self) -> bool
get_isDefaultHeight() overload
Sourcefn get_is_auto_fitting(self) -> bool
fn get_is_auto_fitting(self) -> bool
get_isAutoFitting() overload
Sourcefn set_is_auto_fitting(self, value: impl Into<bool>)
fn set_is_auto_fitting(self, value: impl Into<bool>)
set_isAutoFitting(bool) overload
Sourcefn get_corners(self) -> Array<Vector3>
fn get_corners(self) -> Array<Vector3>
get_corners() overload
Sourcefn get_world_corners(self) -> Array<Vector3>
fn get_world_corners(self) -> Array<Vector3>
get_worldCorners() overload
Sourcefn get_margins(self) -> Vector4
fn get_margins(self) -> Vector4
get_margins() overload
Sourcefn set_margins(self, value: impl Into<Vector4>)
fn set_margins(self, value: impl Into<Vector4>)
set_margins(crate::unity_engine::vector4::Vector4) overload
Sourcefn get_rect_transform(self) -> RectTransform
fn get_rect_transform(self) -> RectTransform
get_rectTransform() overload
Sourcefn get_text_mesh_pro(self) -> TextMeshPro
fn get_text_mesh_pro(self) -> TextMeshPro
get_textMeshPro() overload
Sourcefn on_disable(self)
fn on_disable(self)
OnDisable() overload
Sourcefn on_container_changed(self)
fn on_container_changed(self)
OnContainerChanged() overload
Sourcefn on_rect_transform_dimensions_change(self)
fn on_rect_transform_dimensions_change(self)
OnRectTransformDimensionsChange() overload
Sourcefn set_rect_2(self, size: impl Into<Vector2>)
fn set_rect_2(self, size: impl Into<Vector2>)
SetRect(crate::unity_engine::vector2::Vector2) overload
Sourcefn update_corners(self)
fn update_corners(self)
UpdateCorners() overload
Sourcefn get_pivot_2(self, anchor: impl Into<TextContainerAnchors>) -> Vector2
fn get_pivot_2(self, anchor: impl Into<TextContainerAnchors>) -> Vector2
GetPivot(crate::tm_pro::textcontaineranchors::TextContainerAnchors) overload
Sourcefn get_anchor_position_2(
self,
pivot: impl Into<Vector2>,
) -> TextContainerAnchors
fn get_anchor_position_2( self, pivot: impl Into<Vector2>, ) -> TextContainerAnchors
GetAnchorPosition(crate::unity_engine::vector2::Vector2) 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: ITextContainer> ITextContainerMethods for __T
tm_pro-textcontainer only.