Skip to main content

IDropdown_OptionDataMethods

Trait IDropdown_OptionDataMethods 

Source
pub trait IDropdown_OptionDataMethods: IDropdown_OptionData {
    // Provided methods
    fn get_text(self) -> Il2CppString { ... }
    fn set_text(self, value: impl Into<Il2CppString>) { ... }
    fn get_image(self) -> Sprite { ... }
    fn set_image(self, value: impl Into<Sprite>) { ... }
    fn ctor(self) { ... }
    fn ctor_2(self, text: impl Into<Il2CppString>) { ... }
    fn ctor_3(self, image: impl Into<Sprite>) { ... }
    fn ctor_4(self, text: impl Into<Il2CppString>, image: impl Into<Sprite>) { ... }
}

Provided Methods§

Source

fn get_text(self) -> Il2CppString

get_text() overload

Source

fn set_text(self, value: impl Into<Il2CppString>)

set_text(::unity::Il2CppString) overload

Source

fn get_image(self) -> Sprite

get_image() overload

Source

fn set_image(self, value: impl Into<Sprite>)

set_image(crate::unity_engine::sprite::Sprite) overload

Source

fn ctor(self)

.ctor() overload

Source

fn ctor_2(self, text: impl Into<Il2CppString>)

.ctor(::unity::Il2CppString) overload

Source

fn ctor_3(self, image: impl Into<Sprite>)

.ctor(crate::unity_engine::sprite::Sprite) overload

Source

fn ctor_4(self, text: impl Into<Il2CppString>, image: impl Into<Sprite>)

.ctor(::unity::Il2CppString, crate::unity_engine::sprite::Sprite) 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: IDropdown_OptionData> IDropdown_OptionDataMethods for __T

Available on crate feature unity_engine-ui-dropdown only.