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§
Sourcefn get_padding(self) -> RectOffset
fn get_padding(self) -> RectOffset
get_padding() overload
Sourcefn set_padding(self, value: impl Into<RectOffset>)
fn set_padding(self, value: impl Into<RectOffset>)
set_padding(crate::unity_engine::rectoffset::RectOffset) overload
Sourcefn get_child_alignment(self) -> TextAnchor
fn get_child_alignment(self) -> TextAnchor
get_childAlignment() overload
Sourcefn set_child_alignment(self, value: impl Into<TextAnchor>)
fn set_child_alignment(self, value: impl Into<TextAnchor>)
set_childAlignment(crate::unity_engine::textanchor::TextAnchor) overload
Sourcefn get_rect_transform(self) -> RectTransform
fn get_rect_transform(self) -> RectTransform
get_rectTransform() overload
Sourcefn get_rect_children(self) -> List_1<RectTransform>
fn get_rect_children(self) -> List_1<RectTransform>
get_rectChildren() 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
Sourcefn set_layout_horizontal(self)
fn set_layout_horizontal(self)
SetLayoutHorizontal() overload
Sourcefn set_layout_vertical(self)
fn set_layout_vertical(self)
SetLayoutVertical() overload
Sourcefn on_disable(self)
fn on_disable(self)
OnDisable() overload
Sourcefn on_did_apply_animation_properties(self)
fn on_did_apply_animation_properties(self)
OnDidApplyAnimationProperties() overload
Sourcefn get_total_min_size(self, axis: impl Into<i32>) -> f32
fn get_total_min_size(self, axis: impl Into<i32>) -> f32
GetTotalMinSize(i32) overload
Sourcefn get_total_preferred_size(self, axis: impl Into<i32>) -> f32
fn get_total_preferred_size(self, axis: impl Into<i32>) -> f32
GetTotalPreferredSize(i32) overload
Sourcefn get_total_flexible_size(self, axis: impl Into<i32>) -> f32
fn get_total_flexible_size(self, axis: impl Into<i32>) -> f32
GetTotalFlexibleSize(i32) overload
Sourcefn get_start_offset(
self,
axis: impl Into<i32>,
required_space_without_padding: impl Into<f32>,
) -> f32
fn get_start_offset( self, axis: impl Into<i32>, required_space_without_padding: impl Into<f32>, ) -> f32
GetStartOffset(i32, f32) overload
Sourcefn get_alignment_on_axis(self, axis: impl Into<i32>) -> f32
fn get_alignment_on_axis(self, axis: impl Into<i32>) -> f32
GetAlignmentOnAxis(i32) overload
Sourcefn 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_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
Sourcefn set_child_along_axis(
self,
rect: impl Into<RectTransform>,
axis: impl Into<i32>,
pos: impl Into<f32>,
)
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
Sourcefn 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_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
Sourcefn 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_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
Sourcefn 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 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
Sourcefn get_is_root_layout_group(self) -> bool
fn get_is_root_layout_group(self) -> bool
get_isRootLayoutGroup() overload
Sourcefn on_rect_transform_dimensions_change(self)
fn on_rect_transform_dimensions_change(self)
OnRectTransformDimensionsChange() overload
Sourcefn on_transform_children_changed(self)
fn on_transform_children_changed(self)
OnTransformChildrenChanged() overload
fn set_property<M0: IlType + Copy + ClassIdentity>( self, current_value: impl Into<*mut M0>, new_value: impl Into<M0>, )
Sourcefn delayed_set_dirty(
self,
rect_transform: impl Into<RectTransform>,
) -> IEnumerator
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§
impl<__T: ILayoutGroup> ILayoutGroupMethods for __T
unity_engine-ui-layoutgroup only.