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§
Sourcefn build(self, menu_item: impl Into<BasicMenuItem>)
fn build(self, menu_item: impl Into<BasicMenuItem>)
Build(crate::app::basicmenuitem::BasicMenuItem) overload
Sourcefn set_name(self, foodstuff: impl Into<FoodstuffData>)
fn set_name(self, foodstuff: impl Into<FoodstuffData>)
SetName(crate::app::foodstuffdata::FoodstuffData) overload
Sourcefn set_icon(self, foodstuff: impl Into<FoodstuffData>)
fn set_icon(self, foodstuff: impl Into<FoodstuffData>)
SetIcon(crate::app::foodstuffdata::FoodstuffData) overload
Sourcefn change_selected(self, is_selected: impl Into<bool>)
fn change_selected(self, is_selected: impl Into<bool>)
ChangeSelected(bool) overload
Sourcefn build_text(self)
fn build_text(self)
BuildText() overload
Sourcefn update_text_color(self)
fn update_text_color(self)
UpdateTextColor() overload
Sourcefn update_decide_text_color(self)
fn update_decide_text_color(self)
UpdateDecideTextColor() overload
Sourcefn update_not_have_text_color(self)
fn update_not_have_text_color(self)
UpdateNotHaveTextColor() 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§
impl<__T: IFoodstuffMenuItemContent> IFoodstuffMenuItemContentMethods for __T
Available on crate feature
app-cooking_menu-foodstuffmenuitemcontent only.