Skip to main content

IShopUnitSelectMenuItemMethods

Trait IShopUnitSelectMenuItemMethods 

Source
pub trait IShopUnitSelectMenuItemMethods: IShopUnitSelectMenuItem {
    // Provided methods
    fn get_unit(self) -> Unit { ... }
    fn set_unit(self, value: impl Into<Unit>) { ... }
    fn ctor(
        self,
        unit: impl Into<Unit>,
        decide_event_handler: impl Into<ShopUnitSelectMenu_DecideEventHandler>,
        select_event_handler: impl Into<ShopUnitSelectMenu_SelectEventHandler>,
    ) { ... }
    fn on_build(self) { ... }
    fn on_build_menu_item_content(self) { ... }
    fn set_initial_color(self) { ... }
    fn a_call(self) -> BasicMenu_Result { ... }
    fn b_call(self) -> BasicMenu_Result { ... }
    fn on_select(self) { ... }
}

Provided Methods§

Source

fn get_unit(self) -> Unit

get_Unit() overload

Source

fn set_unit(self, value: impl Into<Unit>)

set_Unit(crate::app::unit::Unit) overload

Source

fn ctor( self, unit: impl Into<Unit>, decide_event_handler: impl Into<ShopUnitSelectMenu_DecideEventHandler>, select_event_handler: impl Into<ShopUnitSelectMenu_SelectEventHandler>, )

.ctor(crate::app::unit::Unit, crate::app::shopunitselectmenu::ShopUnitSelectMenu_DecideEventHandler, crate::app::shopunitselectmenu::ShopUnitSelectMenu_SelectEventHandler) overload

Source

fn on_build(self)

OnBuild() overload

Source

fn on_build_menu_item_content(self)

OnBuildMenuItemContent() overload

Source

fn set_initial_color(self)

SetInitialColor() overload

Source

fn a_call(self) -> BasicMenu_Result

ACall() overload

Source

fn b_call(self) -> BasicMenu_Result

BCall() overload

Source

fn on_select(self)

OnSelect() 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: IShopUnitSelectMenuItem> IShopUnitSelectMenuItemMethods for __T

Available on crate feature app-shopunitselectmenuitem only.