Skip to main content

engage/generated/root/
tutoriallistselectmenuitemcontent.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "root-tutoriallistselectmenuitemcontent-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        app::basicmenuitemcontent::{BasicMenuItemContent, IBasicMenuItemContent},
10        system::object::{IObject, Object},
11        unity_engine::{
12            behaviour::{Behaviour, IBehaviour},
13            component::{Component, IComponent},
14            monobehaviour::{IMonoBehaviour, MonoBehaviour},
15            object_2::{IObject_2, Object_2},
16        },
17    };
18
19    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/root/tutoriallistselectmenuitemcontent/TutorialListSelectMenuItemContent.md"))]
20    #[::unity::class(namespace = "", name = "TutorialListSelectMenuItemContent")]
21    #[parent(crate::app::basicmenuitemcontent::BasicMenuItemContent)]
22    pub struct TutorialListSelectMenuItemContent {
23        #[offset(72)]
24        #[rename(name = "m_UnreadIcon")]
25        pub m_unread_icon: crate::unity_engine::gameobject::GameObject,
26        #[offset(80)]
27        #[rename(name = "m_TitleText")]
28        pub m_title_text: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
29        #[offset(88)]
30        #[rename(name = "m_IconAnimator")]
31        pub m_icon_animator: crate::unity_engine::animator::Animator,
32    }
33}
34
35#[cfg(feature = "root-tutoriallistselectmenuitemcontent-types")]
36pub use __types::*;
37
38#[cfg(feature = "root-tutoriallistselectmenuitemcontent")]
39pub trait ITutorialListSelectMenuItemContentMethods: ITutorialListSelectMenuItemContent {
40    #[doc = "`BuildText()` overload"]
41    fn build_text(self) -> () {
42        unsafe {
43            let __receiver =
44                <TutorialListSelectMenuItemContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
45            {
46                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
47                let __vi = *__vt.get(10usize).unwrap_or_else(|| {
48                    panic!(
49                        "unity: virtual slot {}
50 out of range (vtable len {}
51) on the runtime class behind {}
52 (method `{}
53`)",
54                        10usize,
55                        __vt.len(),
56                        <TutorialListSelectMenuItemContent as ::unity::ClassIdentity>::NAME,
57                        "BuildText",
58                    )
59                });
60                let __inner: extern "C" fn(TutorialListSelectMenuItemContent, ::unity::OptionalMethod) -> () =
61                    ::core::mem::transmute(__vi.method_ptr);
62                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
63                __inner(__receiver, __mi)
64            }
65        }
66    }
67    #[doc = "`UpdateTextColor()` overload"]
68    fn update_text_color(self) -> () {
69        unsafe {
70            let __receiver =
71                <TutorialListSelectMenuItemContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
72            {
73                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
74                let __vi = *__vt.get(7usize).unwrap_or_else(|| {
75                    panic!(
76                        "unity: virtual slot {}
77 out of range (vtable len {}
78) on the runtime class behind {}
79 (method `{}
80`)",
81                        7usize,
82                        __vt.len(),
83                        <TutorialListSelectMenuItemContent as ::unity::ClassIdentity>::NAME,
84                        "UpdateTextColor",
85                    )
86                });
87                let __inner: extern "C" fn(TutorialListSelectMenuItemContent, ::unity::OptionalMethod) -> () =
88                    ::core::mem::transmute(__vi.method_ptr);
89                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
90                __inner(__receiver, __mi)
91            }
92        }
93    }
94    #[doc = "`SetNewMark(bool)` overload"]
95    fn set_new_mark(self, enable: impl ::core::convert::Into<bool>) -> () {
96        unsafe {
97            let __receiver =
98                <TutorialListSelectMenuItemContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
99            ::unity::il2cpp_call!((::unity::module_base()+0x22b19e0usize)as*mut u8,();
100(TutorialListSelectMenuItemContent)__receiver,(bool)::core::convert::Into::into(enable))
101        }
102    }
103    #[doc = "`SynchronizeNewIconAnimation()` overload"]
104    fn synchronize_new_icon_animation(self) -> () {
105        unsafe {
106            let __receiver =
107                <TutorialListSelectMenuItemContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
108            ::unity::il2cpp_call!((::unity::module_base()+0x22b1a30usize)as*mut u8,();
109(TutorialListSelectMenuItemContent)__receiver)
110        }
111    }
112    #[doc = "`.ctor()` overload"]
113    fn ctor(self) -> () {
114        unsafe {
115            let __receiver =
116                <TutorialListSelectMenuItemContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
117            ::unity::il2cpp_call!((::unity::module_base()+0x22b1d30usize)as*mut u8,();
118(TutorialListSelectMenuItemContent)__receiver)
119        }
120    }
121}
122
123#[cfg(feature = "root-tutoriallistselectmenuitemcontent")]
124impl<__T: ITutorialListSelectMenuItemContent> ITutorialListSelectMenuItemContentMethods for __T {}
125
126#[cfg(feature = "root-tutoriallistselectmenuitemcontent")]
127impl TutorialListSelectMenuItemContent {
128    pub fn build_text_method_info() -> &'static ::unity::il2cpp::MethodInfo {
129        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
130    }
131
132    pub fn update_text_color_method_info() -> &'static ::unity::il2cpp::MethodInfo {
133        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
134    }
135
136    pub fn set_new_mark_method_info() -> &'static ::unity::il2cpp::MethodInfo {
137        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
138    }
139
140    pub fn synchronize_new_icon_animation_method_info() -> &'static ::unity::il2cpp::MethodInfo {
141        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
142    }
143
144    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
145        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
146    }
147}
148
149#[cfg(feature = "root-tutoriallistselectmenuitemcontent")]
150impl TutorialListSelectMenuItemContent {
151    #[doc = "Direct (non-virtual) call to `TutorialListSelectMenuItemContent`'s own `BuildText`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
152    pub unsafe fn build_text(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
153        let __mi = Self::build_text_method_info();
154        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
155        __inner(this.into(), ::core::option::Option::None)
156    }
157
158    #[doc = "Direct (non-virtual) call to `TutorialListSelectMenuItemContent`'s own `UpdateTextColor`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
159    pub unsafe fn update_text_color(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
160        let __mi = Self::update_text_color_method_info();
161        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
162        __inner(this.into(), ::core::option::Option::None)
163    }
164}
165
166#[cfg(feature = "root-tutoriallistselectmenuitemcontent")]
167impl TutorialListSelectMenuItemContent {
168    #[doc = "`.ctor()` — no args"]
169    pub fn new() -> Self {
170        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
171            panic!(
172                "{}
173::{}
174 failed to instantiate",
175                ::core::stringify!(TutorialListSelectMenuItemContent),
176                ::core::stringify!(new),
177            )
178        });
179        <Self as ITutorialListSelectMenuItemContentMethods>::ctor(this);
180        this
181    }
182}
183
184#[cfg(feature = "root-tutoriallistselectmenuitemcontent")]
185#[doc(hidden)]
186pub mod prelude {
187    pub use super::{ITutorialListSelectMenuItemContent, ITutorialListSelectMenuItemContentMethods, TutorialListSelectMenuItemContent};
188    #[cfg(feature = "app-basicmenuitemcontent")]
189    pub use crate::app::basicmenuitemcontent::IBasicMenuItemContentMethods;
190    #[cfg(feature = "system-object")]
191    pub use crate::system::object::IObjectMethods;
192    #[cfg(feature = "unity_engine-behaviour")]
193    pub use crate::unity_engine::behaviour::IBehaviourMethods;
194    #[cfg(feature = "unity_engine-component")]
195    pub use crate::unity_engine::component::IComponentMethods;
196    #[cfg(feature = "unity_engine-monobehaviour")]
197    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
198    #[cfg(feature = "unity_engine-object_2")]
199    pub use crate::unity_engine::object_2::IObject_2Methods;
200    pub use crate::{
201        app::basicmenuitemcontent::IBasicMenuItemContent,
202        system::object::IObject,
203        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
204    };
205}