Skip to main content

IUnitIconViewerContentMethods

Trait IUnitIconViewerContentMethods 

Source
pub trait IUnitIconViewerContentMethods: IUnitIconViewerContent {
    // Provided methods
    fn awake(self) { ... }
    fn start(self) { ... }
    fn update(self) { ... }
    fn set_unit_icon(
        self,
        person: impl Into<PersonData>,
        is_female: impl Into<bool>,
        item_kind: impl Into<ItemData_Kinds>,
    ) { ... }
    fn set_emblem_icon(self, is_female: impl Into<bool>) { ... }
    fn change_r(self, change_value: impl Into<f32>) { ... }
    fn change_g(self, change_value: impl Into<f32>) { ... }
    fn change_b(self, change_value: impl Into<f32>) { ... }
    fn ctor(self) { ... }
}

Provided Methods§

Source

fn awake(self)

Awake() overload

Source

fn start(self)

Start() overload

Source

fn update(self)

Update() overload

Source

fn set_unit_icon( self, person: impl Into<PersonData>, is_female: impl Into<bool>, item_kind: impl Into<ItemData_Kinds>, )

SetUnitIcon(crate::app::persondata::PersonData, bool, crate::app::itemdata::ItemData_Kinds) overload

Source

fn set_emblem_icon(self, is_female: impl Into<bool>)

SetEmblemIcon(bool) overload

Source

fn change_r(self, change_value: impl Into<f32>)

ChangeR(f32) overload

Source

fn change_g(self, change_value: impl Into<f32>)

ChangeG(f32) overload

Source

fn change_b(self, change_value: impl Into<f32>)

ChangeB(f32) 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: IUnitIconViewerContent> IUnitIconViewerContentMethods for __T

Available on crate feature app-uniticonviewercontent only.