Skip to main content

IVerticalLayoutUIMethods

Trait IVerticalLayoutUIMethods 

Source
pub trait IVerticalLayoutUIMethods: IVerticalLayoutUI {
    // Provided methods
    fn ctor(self, canvas: impl Into<Canvas>, anchor: impl Into<Vector3>) { ... }
    fn dispose(self) { ... }
    fn text(self, text: impl Into<Il2CppString>) -> Text { ... }
    fn button(
        self,
        text: impl Into<Il2CppString>,
        on_pressed: impl Into<Action>,
    ) -> Button { ... }
    fn dropdown(
        self,
        headline: impl Into<Il2CppString>,
        items: impl Into<List_1<Il2CppString>>,
        on_value_changed: impl Into<Action_1<Il2CppString>>,
    ) -> Dropdown { ... }
    fn toggle(self, text: impl Into<Il2CppString>) -> Toggle { ... }
    fn space(self, space: impl Into<f32>) { ... }
    fn set_colors(self, widget: impl Into<Selectable>) { ... }
    fn set_colors_2(self, widget: impl Into<Slider>) { ... }
}

Provided Methods§

Source

fn ctor(self, canvas: impl Into<Canvas>, anchor: impl Into<Vector3>)

.ctor(crate::unity_engine::canvas::Canvas, crate::unity_engine::vector3::Vector3) overload

Source

fn dispose(self)

Dispose() overload

Source

fn text(self, text: impl Into<Il2CppString>) -> Text

Text(::unity::Il2CppString) overload

Source

fn button( self, text: impl Into<Il2CppString>, on_pressed: impl Into<Action>, ) -> Button

Button(::unity::Il2CppString, crate::system::action::Action) overload

Source

fn dropdown( self, headline: impl Into<Il2CppString>, items: impl Into<List_1<Il2CppString>>, on_value_changed: impl Into<Action_1<Il2CppString>>, ) -> Dropdown

Dropdown(::unity::Il2CppString, crate::system::collections::generic::list_1::List_1<::unity::Il2CppString>, crate::system::action_1::Action_1<::unity::Il2CppString>) overload

Source

fn toggle(self, text: impl Into<Il2CppString>) -> Toggle

Toggle(::unity::Il2CppString) overload

Source

fn space(self, space: impl Into<f32>)

Space(f32) overload

Source

fn set_colors(self, widget: impl Into<Selectable>)

SetColors(crate::unity_engine::ui::selectable::Selectable) overload

Source

fn set_colors_2(self, widget: impl Into<Slider>)

SetColors(crate::unity_engine::ui::slider::Slider) 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: IVerticalLayoutUI> IVerticalLayoutUIMethods for __T

Available on crate feature combat-verticallayoutui only.