Skip to main content

IBasicItemMenuContentMethods

Trait IBasicItemMenuContentMethods 

Source
pub trait IBasicItemMenuContentMethods: IBasicItemMenuContent {
    // Provided methods
    fn set_menu_title(self, title: impl Into<Il2CppString>) { ... }
    fn change_is_performance_only(self) { ... }
    fn set_detail(
        self,
        unit: impl Into<Unit>,
        selected_item: impl Into<UnitItem>,
    ) { ... }
    fn set_enchant_mode(self, is_enchant: impl Into<bool>) { ... }
    fn get_sub_item_menu_rect(self) -> RectTransform { ... }
    fn set_color(self, color: impl Into<Color>) { ... }
    fn get_menu_item_content_max(self) -> i32 { ... }
    fn calc_cursor_moved_pos_y(self, menu_item_index: impl Into<i32>) -> f32 { ... }
    fn calc_w(self) -> f32 { ... }
    fn calc_h(self) -> f32 { ... }
    fn ctor(self) { ... }
}

Provided Methods§

Source

fn set_menu_title(self, title: impl Into<Il2CppString>)

SetMenuTitle(::unity::Il2CppString) overload

Source

fn change_is_performance_only(self)

ChangeIsPerformanceOnly() overload

Source

fn set_detail(self, unit: impl Into<Unit>, selected_item: impl Into<UnitItem>)

SetDetail(crate::app::unit::Unit, crate::app::unititem::UnitItem) overload

Source

fn set_enchant_mode(self, is_enchant: impl Into<bool>)

SetEnchantMode(bool) overload

Source

fn get_sub_item_menu_rect(self) -> RectTransform

GetSubItemMenuRect() overload

Source

fn set_color(self, color: impl Into<Color>)

SetColor(crate::unity_engine::color::Color) overload

Source

fn get_menu_item_content_max(self) -> i32

GetMenuItemContentMax() overload

Source

fn calc_cursor_moved_pos_y(self, menu_item_index: impl Into<i32>) -> f32

CalcCursorMovedPosY(i32) overload

Source

fn calc_w(self) -> f32

CalcW() overload

Source

fn calc_h(self) -> f32

CalcH() overload

Source

fn ctor(self)

.ctor() 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: IBasicItemMenuContent> IBasicItemMenuContentMethods for __T

Available on crate feature app-basicitemmenucontent only.