Skip to main content

IFoodstuffMenuItemContentMethods

Trait IFoodstuffMenuItemContentMethods 

Source
pub trait IFoodstuffMenuItemContentMethods: IFoodstuffMenuItemContent {
    // Provided methods
    fn build(self, menu_item: impl Into<BasicMenuItem>) { ... }
    fn setup(self) { ... }
    fn set_name(self, foodstuff: impl Into<FoodstuffData>) { ... }
    fn set_icon(self, foodstuff: impl Into<FoodstuffData>) { ... }
    fn change_selected(self, is_selected: impl Into<bool>) { ... }
    fn build_text(self) { ... }
    fn update(self) { ... }
    fn update_text_color(self) { ... }
    fn update_decide_text_color(self) { ... }
    fn update_not_have_text_color(self) { ... }
    fn ctor(self) { ... }
}

Provided Methods§

Source

fn build(self, menu_item: impl Into<BasicMenuItem>)

Build(crate::app::basicmenuitem::BasicMenuItem) overload

Source

fn setup(self)

Setup() overload

Source

fn set_name(self, foodstuff: impl Into<FoodstuffData>)

SetName(crate::app::foodstuffdata::FoodstuffData) overload

Source

fn set_icon(self, foodstuff: impl Into<FoodstuffData>)

SetIcon(crate::app::foodstuffdata::FoodstuffData) overload

Source

fn change_selected(self, is_selected: impl Into<bool>)

ChangeSelected(bool) overload

Source

fn build_text(self)

BuildText() overload

Source

fn update(self)

Update() overload

Source

fn update_text_color(self)

UpdateTextColor() overload

Source

fn update_decide_text_color(self)

UpdateDecideTextColor() overload

Source

fn update_not_have_text_color(self)

UpdateNotHaveTextColor() 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: IFoodstuffMenuItemContent> IFoodstuffMenuItemContentMethods for __T

Available on crate feature app-cooking_menu-foodstuffmenuitemcontent only.