Skip to main content

IShopUnitSelectRootMethods

Trait IShopUnitSelectRootMethods 

Source
pub trait IShopUnitSelectRootMethods: IShopUnitSelectRoot {
    // Provided methods
    fn create(
        self,
        super_: impl Into<ProcInst>,
        default_unit: impl Into<Unit>,
        default_scroll_index: impl Into<i32>,
        adding_transporter: impl Into<bool>,
        decide_event_handler: impl Into<ShopUnitSelectMenu_DecideEventHandler>,
    ) { ... }
    fn ctor(self) { ... }
    fn on_select_menu_item(self, unit: impl Into<Unit>) { ... }
    fn on_decide_menu_item(
        self,
        result: impl Into<BasicMenu_Result>,
        unit: impl Into<Unit>,
        scroll_index: impl Into<i32>,
    ) { ... }
    fn on_help(self, parent: impl Into<ProcInst>) { ... }
}

Provided Methods§

Source

fn create( self, super_: impl Into<ProcInst>, default_unit: impl Into<Unit>, default_scroll_index: impl Into<i32>, adding_transporter: impl Into<bool>, decide_event_handler: impl Into<ShopUnitSelectMenu_DecideEventHandler>, )

Create(crate::app::procinst::ProcInst, crate::app::unit::Unit, i32, bool, crate::app::shopunitselectmenu::ShopUnitSelectMenu_DecideEventHandler) overload

Source

fn ctor(self)

.ctor() overload

Source

fn on_select_menu_item(self, unit: impl Into<Unit>)

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

Source

fn on_decide_menu_item( self, result: impl Into<BasicMenu_Result>, unit: impl Into<Unit>, scroll_index: impl Into<i32>, )

OnDecideMenuItem(crate::app::basicmenu::BasicMenu_Result, crate::app::unit::Unit, i32) overload

Source

fn on_help(self, parent: impl Into<ProcInst>)

OnHelp(crate::app::procinst::ProcInst) 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: IShopUnitSelectRoot> IShopUnitSelectRootMethods for __T

Available on crate feature app-shopunitselectroot only.