Skip to main content

engage/generated/app/
profilecardtextlistmenuitemcontent.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-profilecardtextlistmenuitemcontent-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/app/profilecardtextlistmenuitemcontent/ProfileCardTextListMenuItemContent.md"))]
20    #[::unity::class(namespace = "App", name = "ProfileCardTextListMenuItemContent")]
21    #[parent(crate::app::basicmenuitemcontent::BasicMenuItemContent)]
22    pub struct ProfileCardTextListMenuItemContent {
23        #[offset(72)]
24        #[rename(name = "m_Text")]
25        pub m_text: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
26        #[offset(80)]
27        #[rename(name = "m_FixedCursorObject")]
28        pub m_fixed_cursor_object: crate::unity_engine::gameobject::GameObject,
29        #[offset(88)]
30        #[rename(name = "m_FixedCursorImage")]
31        pub m_fixed_cursor_image: crate::unity_engine::ui::image::Image,
32        #[offset(96)]
33        #[rename(name = "m_FixedCursorFrameImage")]
34        pub m_fixed_cursor_frame_image: crate::unity_engine::ui::image::Image,
35        #[offset(104)]
36        #[rename(name = "m_NewIconObject")]
37        pub m_new_icon_object: crate::unity_engine::gameobject::GameObject,
38    }
39}
40
41#[cfg(feature = "app-profilecardtextlistmenuitemcontent-types")]
42pub use __types::*;
43
44#[cfg(feature = "app-profilecardtextlistmenuitemcontent")]
45pub trait IProfileCardTextListMenuItemContentMethods: IProfileCardTextListMenuItemContent {
46    #[doc = "`BuildText()` overload"]
47    fn build_text(self) -> () {
48        unsafe {
49            let __receiver =
50                <ProfileCardTextListMenuItemContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
51            {
52                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
53                let __vi = *__vt.get(10usize).unwrap_or_else(|| {
54                    panic!(
55                        "unity: virtual slot {}
56 out of range (vtable len {}
57) on the runtime class behind {}
58 (method `{}
59`)",
60                        10usize,
61                        __vt.len(),
62                        <ProfileCardTextListMenuItemContent as ::unity::ClassIdentity>::NAME,
63                        "BuildText",
64                    )
65                });
66                let __inner: extern "C" fn(ProfileCardTextListMenuItemContent, ::unity::OptionalMethod) -> () =
67                    ::core::mem::transmute(__vi.method_ptr);
68                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
69                __inner(__receiver, __mi)
70            }
71        }
72    }
73    #[doc = "`UpdateTextColor()` overload"]
74    fn update_text_color(self) -> () {
75        unsafe {
76            let __receiver =
77                <ProfileCardTextListMenuItemContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
78            {
79                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
80                let __vi = *__vt.get(7usize).unwrap_or_else(|| {
81                    panic!(
82                        "unity: virtual slot {}
83 out of range (vtable len {}
84) on the runtime class behind {}
85 (method `{}
86`)",
87                        7usize,
88                        __vt.len(),
89                        <ProfileCardTextListMenuItemContent as ::unity::ClassIdentity>::NAME,
90                        "UpdateTextColor",
91                    )
92                });
93                let __inner: extern "C" fn(ProfileCardTextListMenuItemContent, ::unity::OptionalMethod) -> () =
94                    ::core::mem::transmute(__vi.method_ptr);
95                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
96                __inner(__receiver, __mi)
97            }
98        }
99    }
100    #[doc = "`SetFixedCursorActive(bool)` overload"]
101    fn set_fixed_cursor_active(self, active: impl ::core::convert::Into<bool>) -> () {
102        unsafe {
103            let __receiver =
104                <ProfileCardTextListMenuItemContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
105            ::unity::il2cpp_call!((::unity::module_base()+0x2bfd4d0usize)as*mut u8,();
106(ProfileCardTextListMenuItemContent)__receiver,(bool)::core::convert::Into::into(active))
107        }
108    }
109    #[doc = "`SetNewIconActive(bool)` overload"]
110    fn set_new_icon_active(self, active: impl ::core::convert::Into<bool>) -> () {
111        unsafe {
112            let __receiver =
113                <ProfileCardTextListMenuItemContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
114            ::unity::il2cpp_call!((::unity::module_base()+0x2bfd580usize)as*mut u8,();
115(ProfileCardTextListMenuItemContent)__receiver,(bool)::core::convert::Into::into(active))
116        }
117    }
118    #[doc = "`SynchronizeNewIconAnimationTime()` overload"]
119    fn synchronize_new_icon_animation_time(self) -> () {
120        unsafe {
121            let __receiver =
122                <ProfileCardTextListMenuItemContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
123            ::unity::il2cpp_call!((::unity::module_base()+0x2bfd020usize)as*mut u8,();
124(ProfileCardTextListMenuItemContent)__receiver)
125        }
126    }
127    #[doc = "`.ctor()` overload"]
128    fn ctor(self) -> () {
129        unsafe {
130            let __receiver =
131                <ProfileCardTextListMenuItemContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
132            ::unity::il2cpp_call!((::unity::module_base()+0x2bfd630usize)as*mut u8,();
133(ProfileCardTextListMenuItemContent)__receiver)
134        }
135    }
136}
137
138#[cfg(feature = "app-profilecardtextlistmenuitemcontent")]
139impl<__T: IProfileCardTextListMenuItemContent> IProfileCardTextListMenuItemContentMethods for __T {}
140
141#[cfg(feature = "app-profilecardtextlistmenuitemcontent")]
142impl ProfileCardTextListMenuItemContent {
143    pub fn build_text_method_info() -> &'static ::unity::il2cpp::MethodInfo {
144        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
145    }
146
147    pub fn update_text_color_method_info() -> &'static ::unity::il2cpp::MethodInfo {
148        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
149    }
150
151    pub fn set_fixed_cursor_active_method_info() -> &'static ::unity::il2cpp::MethodInfo {
152        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
153    }
154
155    pub fn set_new_icon_active_method_info() -> &'static ::unity::il2cpp::MethodInfo {
156        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
157    }
158
159    pub fn synchronize_new_icon_animation_time_method_info() -> &'static ::unity::il2cpp::MethodInfo {
160        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
161    }
162
163    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
164        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
165    }
166}
167
168#[cfg(feature = "app-profilecardtextlistmenuitemcontent")]
169impl ProfileCardTextListMenuItemContent {
170    #[doc = "Direct (non-virtual) call to `ProfileCardTextListMenuItemContent`'s own `BuildText`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
171    pub unsafe fn build_text(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
172        let __mi = Self::build_text_method_info();
173        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
174        __inner(this.into(), ::core::option::Option::None)
175    }
176
177    #[doc = "Direct (non-virtual) call to `ProfileCardTextListMenuItemContent`'s own `UpdateTextColor`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
178    pub unsafe fn update_text_color(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
179        let __mi = Self::update_text_color_method_info();
180        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
181        __inner(this.into(), ::core::option::Option::None)
182    }
183}
184
185#[cfg(feature = "app-profilecardtextlistmenuitemcontent")]
186impl ProfileCardTextListMenuItemContent {
187    #[doc = "`.ctor()` — no args"]
188    pub fn new() -> Self {
189        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
190            panic!(
191                "{}
192::{}
193 failed to instantiate",
194                ::core::stringify!(ProfileCardTextListMenuItemContent),
195                ::core::stringify!(new),
196            )
197        });
198        <Self as IProfileCardTextListMenuItemContentMethods>::ctor(this);
199        this
200    }
201}
202
203#[cfg(feature = "app-profilecardtextlistmenuitemcontent")]
204#[doc(hidden)]
205pub mod prelude {
206    pub use super::{IProfileCardTextListMenuItemContent, IProfileCardTextListMenuItemContentMethods, ProfileCardTextListMenuItemContent};
207    #[cfg(feature = "app-basicmenuitemcontent")]
208    pub use crate::app::basicmenuitemcontent::IBasicMenuItemContentMethods;
209    #[cfg(feature = "system-object")]
210    pub use crate::system::object::IObjectMethods;
211    #[cfg(feature = "unity_engine-behaviour")]
212    pub use crate::unity_engine::behaviour::IBehaviourMethods;
213    #[cfg(feature = "unity_engine-component")]
214    pub use crate::unity_engine::component::IComponentMethods;
215    #[cfg(feature = "unity_engine-monobehaviour")]
216    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
217    #[cfg(feature = "unity_engine-object_2")]
218    pub use crate::unity_engine::object_2::IObject_2Methods;
219    pub use crate::{
220        app::basicmenuitemcontent::IBasicMenuItemContent,
221        system::object::IObject,
222        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
223    };
224}