Skip to main content

ILayoutGroupMethods

Trait ILayoutGroupMethods 

Source
pub trait ILayoutGroupMethods: ILayoutGroup {
Show 37 methods // Provided methods fn get_padding(self) -> RectOffset { ... } fn set_padding(self, value: impl Into<RectOffset>) { ... } fn get_child_alignment(self) -> TextAnchor { ... } fn set_child_alignment(self, value: impl Into<TextAnchor>) { ... } fn get_rect_transform(self) -> RectTransform { ... } fn get_rect_children(self) -> List_1<RectTransform> { ... } 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 { ... } fn set_layout_horizontal(self) { ... } fn set_layout_vertical(self) { ... } fn ctor(self) { ... } fn on_enable(self) { ... } fn on_disable(self) { ... } fn on_did_apply_animation_properties(self) { ... } fn get_total_min_size(self, axis: impl Into<i32>) -> f32 { ... } fn get_total_preferred_size(self, axis: impl Into<i32>) -> f32 { ... } fn get_total_flexible_size(self, axis: impl Into<i32>) -> f32 { ... } fn get_start_offset( self, axis: impl Into<i32>, required_space_without_padding: impl Into<f32>, ) -> f32 { ... } fn get_alignment_on_axis(self, axis: impl Into<i32>) -> f32 { ... } fn set_layout_input_for_axis( self, total_min: impl Into<f32>, total_preferred: impl Into<f32>, total_flexible: impl Into<f32>, axis: impl Into<i32>, ) { ... } fn set_child_along_axis( self, rect: impl Into<RectTransform>, axis: impl Into<i32>, pos: impl Into<f32>, ) { ... } fn set_child_along_axis_with_scale( self, rect: impl Into<RectTransform>, axis: impl Into<i32>, pos: impl Into<f32>, scale_factor: impl Into<f32>, ) { ... } fn set_child_along_axis_2( self, rect: impl Into<RectTransform>, axis: impl Into<i32>, pos: impl Into<f32>, size: impl Into<f32>, ) { ... } fn set_child_along_axis_with_scale_2( self, rect: impl Into<RectTransform>, axis: impl Into<i32>, pos: impl Into<f32>, size: impl Into<f32>, scale_factor: impl Into<f32>, ) { ... } fn get_is_root_layout_group(self) -> bool { ... } fn on_rect_transform_dimensions_change(self) { ... } fn on_transform_children_changed(self) { ... } fn set_property<M0: IlType + Copy + ClassIdentity>( self, current_value: impl Into<*mut M0>, new_value: impl Into<M0>, ) { ... } fn set_dirty(self) { ... } fn delayed_set_dirty( self, rect_transform: impl Into<RectTransform>, ) -> IEnumerator { ... }
}

Provided Methods§

Source

fn get_padding(self) -> RectOffset

get_padding() overload

Source

fn set_padding(self, value: impl Into<RectOffset>)

set_padding(crate::unity_engine::rectoffset::RectOffset) overload

Source

fn get_child_alignment(self) -> TextAnchor

get_childAlignment() overload

Source

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

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

Source

fn get_rect_transform(self) -> RectTransform

get_rectTransform() overload

Source

fn get_rect_children(self) -> List_1<RectTransform>

get_rectChildren() 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

Source

fn set_layout_horizontal(self)

SetLayoutHorizontal() overload

Source

fn set_layout_vertical(self)

SetLayoutVertical() overload

Source

fn ctor(self)

.ctor() overload

Source

fn on_enable(self)

OnEnable() overload

Source

fn on_disable(self)

OnDisable() overload

Source

fn on_did_apply_animation_properties(self)

OnDidApplyAnimationProperties() overload

Source

fn get_total_min_size(self, axis: impl Into<i32>) -> f32

GetTotalMinSize(i32) overload

Source

fn get_total_preferred_size(self, axis: impl Into<i32>) -> f32

GetTotalPreferredSize(i32) overload

Source

fn get_total_flexible_size(self, axis: impl Into<i32>) -> f32

GetTotalFlexibleSize(i32) overload

Source

fn get_start_offset( self, axis: impl Into<i32>, required_space_without_padding: impl Into<f32>, ) -> f32

GetStartOffset(i32, f32) overload

Source

fn get_alignment_on_axis(self, axis: impl Into<i32>) -> f32

GetAlignmentOnAxis(i32) overload

Source

fn set_layout_input_for_axis( self, total_min: impl Into<f32>, total_preferred: impl Into<f32>, total_flexible: impl Into<f32>, axis: impl Into<i32>, )

SetLayoutInputForAxis(f32, f32, f32, i32) overload

Source

fn set_child_along_axis( self, rect: impl Into<RectTransform>, axis: impl Into<i32>, pos: impl Into<f32>, )

SetChildAlongAxis(crate::unity_engine::recttransform::RectTransform, i32, f32) overload

Source

fn set_child_along_axis_with_scale( self, rect: impl Into<RectTransform>, axis: impl Into<i32>, pos: impl Into<f32>, scale_factor: impl Into<f32>, )

SetChildAlongAxisWithScale(crate::unity_engine::recttransform::RectTransform, i32, f32, f32) overload

Source

fn set_child_along_axis_2( self, rect: impl Into<RectTransform>, axis: impl Into<i32>, pos: impl Into<f32>, size: impl Into<f32>, )

SetChildAlongAxis(crate::unity_engine::recttransform::RectTransform, i32, f32, f32) overload

Source

fn set_child_along_axis_with_scale_2( self, rect: impl Into<RectTransform>, axis: impl Into<i32>, pos: impl Into<f32>, size: impl Into<f32>, scale_factor: impl Into<f32>, )

SetChildAlongAxisWithScale(crate::unity_engine::recttransform::RectTransform, i32, f32, f32, f32) overload

Source

fn get_is_root_layout_group(self) -> bool

get_isRootLayoutGroup() overload

Source

fn on_rect_transform_dimensions_change(self)

OnRectTransformDimensionsChange() overload

Source

fn on_transform_children_changed(self)

OnTransformChildrenChanged() overload

Source

fn set_property<M0: IlType + Copy + ClassIdentity>( self, current_value: impl Into<*mut M0>, new_value: impl Into<M0>, )

Source

fn set_dirty(self)

SetDirty() overload

Source

fn delayed_set_dirty( self, rect_transform: impl Into<RectTransform>, ) -> IEnumerator

DelayedSetDirty(crate::unity_engine::recttransform::RectTransform) 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: ILayoutGroup> ILayoutGroupMethods for __T

Available on crate feature unity_engine-ui-layoutgroup only.