Skip to main content

IGUIContentMethods

Trait IGUIContentMethods 

Source
pub trait IGUIContentMethods: IGUIContent {
    // Provided methods
    fn get_text(self) -> Il2CppString { ... }
    fn set_text(self, value: impl Into<Il2CppString>) { ... }
    fn set_image(self, value: impl Into<Texture>) { ... }
    fn get_tooltip(self) -> Il2CppString { ... }
    fn set_tooltip(self, value: impl Into<Il2CppString>) { ... }
    fn ctor(self) { ... }
    fn ctor_2(self, text: impl Into<Il2CppString>) { ... }
    fn ctor_3(
        self,
        text: impl Into<Il2CppString>,
        image: impl Into<Texture>,
        tooltip: impl Into<Il2CppString>,
    ) { ... }
    fn ctor_4(self, src: impl Into<GUIContent>) { ... }
}

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 set_image(self, value: impl Into<Texture>)

set_image(crate::unity_engine::texture::Texture) overload

Source

fn get_tooltip(self) -> Il2CppString

get_tooltip() overload

Source

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

set_tooltip(::unity::Il2CppString) 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, text: impl Into<Il2CppString>, image: impl Into<Texture>, tooltip: impl Into<Il2CppString>, )

.ctor(::unity::Il2CppString, crate::unity_engine::texture::Texture, ::unity::Il2CppString) overload

Source

fn ctor_4(self, src: impl Into<GUIContent>)

.ctor(crate::unity_engine::guicontent::GUIContent) 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: IGUIContent> IGUIContentMethods for __T

Available on crate feature unity_engine-guicontent only.