Skip to main content

engage/generated/app/
friendlistselectmenuitemcontent.rs

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