Skip to main content

IBasicMenuItemMethods

Trait IBasicMenuItemMethods 

Source
pub trait IBasicMenuItemMethods: IBasicMenuItem {
Show 49 methods // Provided methods fn ctor(self) { ... } fn get_menu(self) -> BasicMenu { ... } fn get_menu_item_content(self) -> BasicMenuItemContent { ... } fn get_index(self) -> i32 { ... } fn get_full_index(self) -> i32 { ... } fn get_attribute(self) -> BasicMenuItem_Attribute { ... } fn is_select(self) -> bool { ... } fn is_attribute_enable(self) -> bool { ... } fn is_attribute_disable(self) -> bool { ... } fn is_attribute_hide(self) -> bool { ... } fn is_attribute_blank(self) -> bool { ... } fn is_attribute_select(self) -> bool { ... } fn get_name(self) -> Il2CppString { ... } fn get_width(self) -> f32 { ... } fn get_height(self) -> f32 { ... } fn set_cursor_color(self, color: impl Into<Color>) { ... } fn set_text_color( self, color: impl Into<Color>, b_inactive: impl Into<bool>, ) { ... } fn set_text_color_2( self, active_color: impl Into<Color>, inactive_color: impl Into<Color>, ) { ... } fn set_command_color( self, color: impl Into<Color>, b_inactive: impl Into<bool>, ) { ... } fn get_cursor_color(self) -> Color { ... } fn get_active_text_color(self) -> Color { ... } fn get_inactive_text_color(self) -> Color { ... } fn update_command_color_as_active(self) { ... } fn force_rebuild_layout(self) { ... } fn set_menu(self, menu: impl Into<BasicMenu>) { ... } fn set_menu_item_content( self, menu_item_content: impl Into<BasicMenuItemContent>, ) { ... } fn set_name(self, name: impl Into<Il2CppString>) { ... } fn set_item_index(self, item_index: impl Into<i32>) { ... } fn set_full_index(self, item_index: impl Into<i32>) { ... } fn set_attribute(self, attribute: impl Into<BasicMenuItem_Attribute>) { ... } fn build_attribute(self) -> BasicMenuItem_Attribute { ... } fn tick(self) { ... } fn on_build(self) { ... } fn on_build_menu_item_content(self) { ... } fn on_select(self) { ... } fn on_deselect(self) { ... } fn on_cursor_move_end(self) { ... } fn on_close(self) { ... } fn system_call(self) -> BasicMenu_Result { ... } fn key_call(self) -> BasicMenu_Result { ... } fn a_call(self) -> BasicMenu_Result { ... } fn b_call(self) -> BasicMenu_Result { ... } fn x_call(self) -> BasicMenu_Result { ... } fn y_call(self) -> BasicMenu_Result { ... } fn l_call(self) -> BasicMenu_Result { ... } fn r_call(self) -> BasicMenu_Result { ... } fn plus_call(self) -> BasicMenu_Result { ... } fn minus_call(self) -> BasicMenu_Result { ... } fn custom_call(self) -> BasicMenu_Result { ... }
}

Provided Methods§

Source

fn ctor(self)

.ctor() overload

Source

fn get_menu(self) -> BasicMenu

GetMenu() overload

Source

fn get_menu_item_content(self) -> BasicMenuItemContent

GetMenuItemContent() overload

Source

fn get_index(self) -> i32

GetIndex() overload

Source

fn get_full_index(self) -> i32

GetFullIndex() overload

Source

fn get_attribute(self) -> BasicMenuItem_Attribute

GetAttribute() overload

Source

fn is_select(self) -> bool

IsSelect() overload

Source

fn is_attribute_enable(self) -> bool

IsAttributeEnable() overload

Source

fn is_attribute_disable(self) -> bool

IsAttributeDisable() overload

Source

fn is_attribute_hide(self) -> bool

IsAttributeHide() overload

Source

fn is_attribute_blank(self) -> bool

IsAttributeBlank() overload

Source

fn is_attribute_select(self) -> bool

IsAttributeSelect() overload

Source

fn get_name(self) -> Il2CppString

GetName() overload

Source

fn get_width(self) -> f32

GetWidth() overload

Source

fn get_height(self) -> f32

GetHeight() overload

Source

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

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

Source

fn set_text_color(self, color: impl Into<Color>, b_inactive: impl Into<bool>)

SetTextColor(crate::unity_engine::color::Color, bool) overload

Source

fn set_text_color_2( self, active_color: impl Into<Color>, inactive_color: impl Into<Color>, )

SetTextColor(crate::unity_engine::color::Color, crate::unity_engine::color::Color) overload

Source

fn set_command_color(self, color: impl Into<Color>, b_inactive: impl Into<bool>)

SetCommandColor(crate::unity_engine::color::Color, bool) overload

Source

fn get_cursor_color(self) -> Color

GetCursorColor() overload

Source

fn get_active_text_color(self) -> Color

GetActiveTextColor() overload

Source

fn get_inactive_text_color(self) -> Color

GetInactiveTextColor() overload

Source

fn update_command_color_as_active(self)

UpdateCommandColorAsActive() overload

Source

fn force_rebuild_layout(self)

ForceRebuildLayout() overload

Source

fn set_menu(self, menu: impl Into<BasicMenu>)

SetMenu(crate::app::basicmenu::BasicMenu) overload

Source

fn set_menu_item_content( self, menu_item_content: impl Into<BasicMenuItemContent>, )

SetMenuItemContent(crate::app::basicmenuitemcontent::BasicMenuItemContent) overload

Source

fn set_name(self, name: impl Into<Il2CppString>)

SetName(::unity::Il2CppString) overload

Source

fn set_item_index(self, item_index: impl Into<i32>)

SetItemIndex(i32) overload

Source

fn set_full_index(self, item_index: impl Into<i32>)

SetFullIndex(i32) overload

Source

fn set_attribute(self, attribute: impl Into<BasicMenuItem_Attribute>)

SetAttribute(crate::app::basicmenuitem::BasicMenuItem_Attribute) overload

Source

fn build_attribute(self) -> BasicMenuItem_Attribute

BuildAttribute() overload

Source

fn tick(self)

Tick() overload

Source

fn on_build(self)

OnBuild() overload

Source

fn on_build_menu_item_content(self)

OnBuildMenuItemContent() overload

Source

fn on_select(self)

OnSelect() overload

Source

fn on_deselect(self)

OnDeselect() overload

Source

fn on_cursor_move_end(self)

OnCursorMoveEnd() overload

Source

fn on_close(self)

OnClose() overload

Source

fn system_call(self) -> BasicMenu_Result

SystemCall() overload

Source

fn key_call(self) -> BasicMenu_Result

KeyCall() overload

Source

fn a_call(self) -> BasicMenu_Result

ACall() overload

Source

fn b_call(self) -> BasicMenu_Result

BCall() overload

Source

fn x_call(self) -> BasicMenu_Result

XCall() overload

Source

fn y_call(self) -> BasicMenu_Result

YCall() overload

Source

fn l_call(self) -> BasicMenu_Result

LCall() overload

Source

fn r_call(self) -> BasicMenu_Result

RCall() overload

Source

fn plus_call(self) -> BasicMenu_Result

PlusCall() overload

Source

fn minus_call(self) -> BasicMenu_Result

MinusCall() overload

Source

fn custom_call(self) -> BasicMenu_Result

CustomCall() 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: IBasicMenuItem> IBasicMenuItemMethods for __T

Available on crate feature app-basicmenuitem only.