Skip to main content

ILayoutElementMethods

Trait ILayoutElementMethods 

Source
pub trait ILayoutElementMethods: ILayoutElement {
Show 25 methods // Provided methods fn get_ignore_layout(self) -> bool { ... } fn set_ignore_layout(self, value: impl Into<bool>) { ... } fn calculate_layout_input_horizontal(self) { ... } fn calculate_layout_input_vertical(self) { ... } fn get_min_width(self) -> f32 { ... } fn set_min_width(self, value: impl Into<f32>) { ... } fn get_min_height(self) -> f32 { ... } fn set_min_height(self, value: impl Into<f32>) { ... } fn get_preferred_width(self) -> f32 { ... } fn set_preferred_width(self, value: impl Into<f32>) { ... } fn get_preferred_height(self) -> f32 { ... } fn set_preferred_height(self, value: impl Into<f32>) { ... } fn get_flexible_width(self) -> f32 { ... } fn set_flexible_width(self, value: impl Into<f32>) { ... } fn get_flexible_height(self) -> f32 { ... } fn set_flexible_height(self, value: impl Into<f32>) { ... } fn get_layout_priority(self) -> i32 { ... } fn set_layout_priority(self, value: impl Into<i32>) { ... } fn ctor(self) { ... } fn on_enable(self) { ... } fn on_transform_parent_changed(self) { ... } fn on_disable(self) { ... } fn on_did_apply_animation_properties(self) { ... } fn on_before_transform_parent_changed(self) { ... } fn set_dirty(self) { ... }
}

Provided Methods§

Source

fn get_ignore_layout(self) -> bool

get_ignoreLayout() overload

Source

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

set_ignoreLayout(bool) 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 set_min_width(self, value: impl Into<f32>)

set_minWidth(f32) overload

Source

fn get_min_height(self) -> f32

get_minHeight() overload

Source

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

set_minHeight(f32) overload

Source

fn get_preferred_width(self) -> f32

get_preferredWidth() overload

Source

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

set_preferredWidth(f32) overload

Source

fn get_preferred_height(self) -> f32

get_preferredHeight() overload

Source

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

set_preferredHeight(f32) overload

Source

fn get_flexible_width(self) -> f32

get_flexibleWidth() overload

Source

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

set_flexibleWidth(f32) overload

Source

fn get_flexible_height(self) -> f32

get_flexibleHeight() overload

Source

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

set_flexibleHeight(f32) overload

Source

fn get_layout_priority(self) -> i32

get_layoutPriority() overload

Source

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

set_layoutPriority(i32) overload

Source

fn ctor(self)

.ctor() overload

Source

fn on_enable(self)

OnEnable() overload

Source

fn on_transform_parent_changed(self)

OnTransformParentChanged() overload

Source

fn on_disable(self)

OnDisable() overload

Source

fn on_did_apply_animation_properties(self)

OnDidApplyAnimationProperties() overload

Source

fn on_before_transform_parent_changed(self)

OnBeforeTransformParentChanged() overload

Source

fn set_dirty(self)

SetDirty() 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: ILayoutElement> ILayoutElementMethods for __T

Available on crate feature unity_engine-ui-layoutelement only.