engage/generated/unity_engine/ui/
basevertexeffect.rs1#[cfg(feature = "unity_engine-ui-basevertexeffect-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::system::object::{IObject, Object};
9
10 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/ui/basevertexeffect/BaseVertexEffect.md"))]
11 #[::unity::class(namespace = "UnityEngine.UI", name = "BaseVertexEffect")]
12 #[parent(crate::system::object::Object)]
13 pub struct BaseVertexEffect {}
14}
15
16#[cfg(feature = "unity_engine-ui-basevertexeffect-types")]
17pub use __types::*;
18
19#[cfg(feature = "unity_engine-ui-basevertexeffect")]
20pub trait IBaseVertexEffectMethods: IBaseVertexEffect {
21 #[doc = "`ModifyVertices(crate::system::collections::generic::list_1::List_1<crate::unity_engine::uivertex::UIVertex>)` overload"]
22 fn modify_vertices(
23 self,
24 vertices: impl ::core::convert::Into<crate::system::collections::generic::list_1::List_1<crate::unity_engine::uivertex::UIVertex>>,
25 ) -> () {
26 unsafe {
27 let __receiver = <BaseVertexEffect as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
28 {
29 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
30 let __vi = *__vt.get(4usize).unwrap_or_else(|| {
31 panic!(
32 "unity: virtual slot {}
33 out of range (vtable len {}
34) on the runtime class behind {}
35 (method `{}
36`)",
37 4usize,
38 __vt.len(),
39 <BaseVertexEffect as ::unity::ClassIdentity>::NAME,
40 "ModifyVertices",
41 )
42 });
43 let __inner: extern "C" fn(
44 BaseVertexEffect,
45 crate::system::collections::generic::list_1::List_1<crate::unity_engine::uivertex::UIVertex>,
46 ::unity::OptionalMethod,
47 ) -> () = ::core::mem::transmute(__vi.method_ptr);
48 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
49 __inner(__receiver, ::core::convert::Into::into(vertices), __mi)
50 }
51 }
52 }
53 #[doc = "`.ctor()` overload"]
54 fn ctor(self) -> () {
55 unsafe {
56 let __receiver = <BaseVertexEffect as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
57 ::unity::il2cpp_call!((::unity::module_base()+0x317c230usize)as*mut u8,();
58(BaseVertexEffect)__receiver)
59 }
60 }
61}
62
63#[cfg(feature = "unity_engine-ui-basevertexeffect")]
64impl<__T: IBaseVertexEffect> IBaseVertexEffectMethods for __T {}
65
66#[cfg(feature = "unity_engine-ui-basevertexeffect")]
67impl BaseVertexEffect {
68 pub fn modify_vertices_method_info() -> &'static ::unity::il2cpp::MethodInfo {
69 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
70 }
71
72 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
73 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
74 }
75}
76
77#[cfg(feature = "unity_engine-ui-basevertexeffect")]
78impl BaseVertexEffect {
79 #[doc = "Direct (non-virtual) call to `BaseVertexEffect`'s own `ModifyVertices`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
80 pub unsafe fn modify_vertices(
81 this: impl ::core::convert::Into<::unity::IlInstance>,
82 vertices: crate::system::collections::generic::list_1::List_1<crate::unity_engine::uivertex::UIVertex>,
83 ) -> () {
84 let __mi = Self::modify_vertices_method_info();
85 let __inner: extern "C" fn(
86 ::unity::IlInstance,
87 crate::system::collections::generic::list_1::List_1<crate::unity_engine::uivertex::UIVertex>,
88 ::unity::OptionalMethod,
89 ) -> () = ::core::mem::transmute(__mi.method_ptr);
90 __inner(this.into(), vertices, ::core::option::Option::None)
91 }
92}
93
94#[cfg(feature = "unity_engine-ui-basevertexeffect")]
95impl BaseVertexEffect {
96 #[doc = "`.ctor()` — no args"]
97 pub fn new() -> Self {
98 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
99 panic!(
100 "{}
101::{}
102 failed to instantiate",
103 ::core::stringify!(BaseVertexEffect),
104 ::core::stringify!(new),
105 )
106 });
107 <Self as IBaseVertexEffectMethods>::ctor(this);
108 this
109 }
110}
111
112#[cfg(feature = "unity_engine-ui-basevertexeffect")]
113#[doc(hidden)]
114pub mod prelude {
115 pub use super::{BaseVertexEffect, IBaseVertexEffect, IBaseVertexEffectMethods};
116 pub use crate::system::object::IObject;
117 #[cfg(feature = "system-object")]
118 pub use crate::system::object::IObjectMethods;
119}