Skip to main content

IUnitItemMenuItemMethods

Trait IUnitItemMenuItemMethods 

Source
pub trait IUnitItemMenuItemMethods: IUnitItemMenuItem {
    // Provided methods
    fn ctor(
        self,
        i: impl Into<i32>,
        selectable_blank: impl Into<bool>,
        select_event_handler: impl Into<UnitItemMenu_SelectEventHandler>,
        decide_event_handler: impl Into<UnitItemMenu_DecideEventHandler>,
        request_close_event_handler: impl Into<UnitItemMenu_RequestCloseEventHandler>,
    ) { ... }
    fn build_attribute(self) -> BasicMenuItem_Attribute { ... }
    fn get_unit_item(self) -> UnitItem { ... }
    fn get_unit(self) -> Unit { ... }
    fn get_reciever_unit(self) -> Unit { ... }
    fn is_visible_item_icon_on_blank(self) -> bool { ... }
    fn on_select(self) { ... }
    fn a_call(self) -> BasicMenu_Result { ... }
    fn b_call(self) -> BasicMenu_Result { ... }
}

Provided Methods§

Source

fn ctor( self, i: impl Into<i32>, selectable_blank: impl Into<bool>, select_event_handler: impl Into<UnitItemMenu_SelectEventHandler>, decide_event_handler: impl Into<UnitItemMenu_DecideEventHandler>, request_close_event_handler: impl Into<UnitItemMenu_RequestCloseEventHandler>, )

.ctor(i32, bool, crate::app::unititemmenu::UnitItemMenu_SelectEventHandler, crate::app::unititemmenu::UnitItemMenu_DecideEventHandler, crate::app::unititemmenu::UnitItemMenu_RequestCloseEventHandler) overload

Source

fn build_attribute(self) -> BasicMenuItem_Attribute

BuildAttribute() overload

Source

fn get_unit_item(self) -> UnitItem

GetUnitItem() overload

Source

fn get_unit(self) -> Unit

GetUnit() overload

Source

fn get_reciever_unit(self) -> Unit

GetRecieverUnit() overload

Source

fn is_visible_item_icon_on_blank(self) -> bool

IsVisibleItemIconOnBlank() overload

Source

fn on_select(self)

OnSelect() overload

Source

fn a_call(self) -> BasicMenu_Result

ACall() overload

Source

fn b_call(self) -> BasicMenu_Result

BCall() 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: IUnitItemMenuItem> IUnitItemMenuItemMethods for __T

Available on crate feature app-unititemmenuitem only.