Skip to main content

IDiscardItemMenuContentMethods

Trait IDiscardItemMenuContentMethods 

Source
pub trait IDiscardItemMenuContentMethods: IDiscardItemMenuContent {
    // Provided methods
    fn build_menu_item_content(self) { ... }
    fn start(self) { ... }
    fn calc_cursor_moved_pos_y(self, menu_item_index: impl Into<i32>) -> f32 { ... }
    fn set_kind(self, kind: impl Into<ItemData_Kinds>) { ... }
    fn set_to_prev_kind(self, kind: impl Into<ItemData_Kinds>) -> ItemData_Kinds { ... }
    fn set_to_next_kind(self, kind: impl Into<ItemData_Kinds>) -> ItemData_Kinds { ... }
    fn is_first_kind(self, kind: impl Into<ItemData_Kinds>) -> bool { ... }
    fn is_last_kind(self, kind: impl Into<ItemData_Kinds>) -> bool { ... }
    fn get_kind_count(self) -> i32 { ... }
    fn ctor(self) { ... }
}

Provided Methods§

Source

fn build_menu_item_content(self)

BuildMenuItemContent() overload

Source

fn start(self)

Start() overload

Source

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

CalcCursorMovedPosY(i32) overload

Source

fn set_kind(self, kind: impl Into<ItemData_Kinds>)

SetKind(crate::app::itemdata::ItemData_Kinds) overload

Source

fn set_to_prev_kind(self, kind: impl Into<ItemData_Kinds>) -> ItemData_Kinds

SetToPrevKind(crate::app::itemdata::ItemData_Kinds) overload

Source

fn set_to_next_kind(self, kind: impl Into<ItemData_Kinds>) -> ItemData_Kinds

SetToNextKind(crate::app::itemdata::ItemData_Kinds) overload

Source

fn is_first_kind(self, kind: impl Into<ItemData_Kinds>) -> bool

IsFirstKind(crate::app::itemdata::ItemData_Kinds) overload

Source

fn is_last_kind(self, kind: impl Into<ItemData_Kinds>) -> bool

IsLastKind(crate::app::itemdata::ItemData_Kinds) overload

Source

fn get_kind_count(self) -> i32

GetKindCount() 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: IDiscardItemMenuContent> IDiscardItemMenuContentMethods for __T

Available on crate feature app-discarditemmenucontent only.