engage/generated/root/
keyhelprenderer.rs1#[cfg(feature = "root-keyhelprenderer-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 system::object::{IObject, Object},
10 unity_engine::{
11 behaviour::{Behaviour, IBehaviour},
12 component::{Component, IComponent},
13 event_systems::uibehaviour::{IUIBehaviour, UIBehaviour},
14 monobehaviour::{IMonoBehaviour, MonoBehaviour},
15 object_2::{IObject_2, Object_2},
16 ui::graphic::{Graphic, IGraphic},
17 },
18 };
19
20 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/root/keyhelprenderer/KeyHelpRenderer.md"))]
21 #[::unity::class(namespace = "", name = "KeyHelpRenderer")]
22 #[parent(crate::unity_engine::ui::graphic::Graphic)]
23 pub struct KeyHelpRenderer {
24 #[offset(156)]
25 #[rename(name = "fadeOffset")]
26 pub fade_offset: f32,
27 #[offset(160)]
28 #[rename(name = "m_Horizontal")]
29 pub m_horizontal: crate::unity_engine::ui::horizontallayoutgroup::HorizontalLayoutGroup,
30 }
31}
32
33#[cfg(feature = "root-keyhelprenderer-types")]
34pub use __types::*;
35
36#[cfg(feature = "root-keyhelprenderer")]
37pub trait IKeyHelpRendererMethods: IKeyHelpRenderer {
38 #[doc = "`OnPopulateMesh(crate::unity_engine::ui::vertexhelper::VertexHelper)` overload"]
39 fn on_populate_mesh(self, vh: impl ::core::convert::Into<crate::unity_engine::ui::vertexhelper::VertexHelper>) -> () {
40 unsafe {
41 let __receiver = <KeyHelpRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
42 {
43 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
44 let __vi = *__vt.get(44usize).unwrap_or_else(|| {
45 panic!(
46 "unity: virtual slot {}
47 out of range (vtable len {}
48) on the runtime class behind {}
49 (method `{}
50`)",
51 44usize,
52 __vt.len(),
53 <KeyHelpRenderer as ::unity::ClassIdentity>::NAME,
54 "OnPopulateMesh",
55 )
56 });
57 let __inner: extern "C" fn(KeyHelpRenderer, crate::unity_engine::ui::vertexhelper::VertexHelper, ::unity::OptionalMethod) -> () =
58 ::core::mem::transmute(__vi.method_ptr);
59 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
60 __inner(__receiver, ::core::convert::Into::into(vh), __mi)
61 }
62 }
63 }
64 #[doc = "`GetPadding()` overload"]
65 fn get_padding(self) -> crate::unity_engine::rectoffset::RectOffset {
66 unsafe {
67 let __receiver = <KeyHelpRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
68 ::unity::il2cpp_call!((::unity::module_base()+0x1bda480usize)as*mut u8,crate::unity_engine::rectoffset::RectOffset;
69(KeyHelpRenderer)__receiver)
70 }
71 }
72 #[doc = "`.ctor()` overload"]
73 fn ctor(self) -> () {
74 unsafe {
75 let __receiver = <KeyHelpRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
76 ::unity::il2cpp_call!((::unity::module_base()+0x1bda540usize)as*mut u8,();
77(KeyHelpRenderer)__receiver)
78 }
79 }
80}
81
82#[cfg(feature = "root-keyhelprenderer")]
83impl<__T: IKeyHelpRenderer> IKeyHelpRendererMethods for __T {}
84
85#[cfg(feature = "root-keyhelprenderer")]
86impl KeyHelpRenderer {
87 pub fn on_populate_mesh_method_info() -> &'static ::unity::il2cpp::MethodInfo {
88 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
89 }
90
91 pub fn get_padding_method_info() -> &'static ::unity::il2cpp::MethodInfo {
92 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
93 }
94
95 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
96 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
97 }
98}
99
100#[cfg(feature = "root-keyhelprenderer")]
101impl KeyHelpRenderer {
102 #[doc = "Direct (non-virtual) call to `KeyHelpRenderer`'s own `OnPopulateMesh`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
103 pub unsafe fn on_populate_mesh(
104 this: impl ::core::convert::Into<::unity::IlInstance>,
105 vh: crate::unity_engine::ui::vertexhelper::VertexHelper,
106 ) -> () {
107 let __mi = Self::on_populate_mesh_method_info();
108 let __inner: extern "C" fn(::unity::IlInstance, crate::unity_engine::ui::vertexhelper::VertexHelper, ::unity::OptionalMethod) -> () =
109 ::core::mem::transmute(__mi.method_ptr);
110 __inner(this.into(), vh, ::core::option::Option::None)
111 }
112}
113
114#[cfg(feature = "root-keyhelprenderer")]
115impl KeyHelpRenderer {
116 #[doc = "`.ctor()` — no args"]
117 pub fn new() -> Self {
118 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
119 panic!(
120 "{}
121::{}
122 failed to instantiate",
123 ::core::stringify!(KeyHelpRenderer),
124 ::core::stringify!(new),
125 )
126 });
127 <Self as IKeyHelpRendererMethods>::ctor(this);
128 this
129 }
130}
131
132#[cfg(feature = "root-keyhelprenderer")]
133#[doc(hidden)]
134pub mod prelude {
135 pub use super::{IKeyHelpRenderer, IKeyHelpRendererMethods, KeyHelpRenderer};
136 #[cfg(feature = "system-object")]
137 pub use crate::system::object::IObjectMethods;
138 #[cfg(feature = "unity_engine-behaviour")]
139 pub use crate::unity_engine::behaviour::IBehaviourMethods;
140 #[cfg(feature = "unity_engine-component")]
141 pub use crate::unity_engine::component::IComponentMethods;
142 #[cfg(feature = "unity_engine-event_systems-uibehaviour")]
143 pub use crate::unity_engine::event_systems::uibehaviour::IUIBehaviourMethods;
144 #[cfg(feature = "unity_engine-monobehaviour")]
145 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
146 #[cfg(feature = "unity_engine-object_2")]
147 pub use crate::unity_engine::object_2::IObject_2Methods;
148 #[cfg(feature = "unity_engine-ui-graphic")]
149 pub use crate::unity_engine::ui::graphic::IGraphicMethods;
150 pub use crate::{
151 system::object::IObject,
152 unity_engine::{
153 behaviour::IBehaviour, component::IComponent, event_systems::uibehaviour::IUIBehaviour, monobehaviour::IMonoBehaviour,
154 object_2::IObject_2, ui::graphic::IGraphic,
155 },
156 };
157}