Skip to main content

engage/generated/app/
boundingboxdrawer.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-boundingboxdrawer-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            monobehaviour::{IMonoBehaviour, MonoBehaviour},
14            object_2::{IObject_2, Object_2},
15        },
16    };
17
18    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/boundingboxdrawer/BoundingBoxDrawer.md"))]
19    #[::unity::class(namespace = "App", name = "BoundingBoxDrawer")]
20    #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
21    pub struct BoundingBoxDrawer {
22        #[offset(24)]
23        #[rename(name = "m_OnlySelected")]
24        pub m_only_selected: bool,
25        #[offset(28)]
26        #[rename(name = "m_Alpha")]
27        pub m_alpha: f32,
28    }
29}
30
31#[cfg(feature = "app-boundingboxdrawer-types")]
32pub use __types::*;
33
34#[cfg(feature = "app-boundingboxdrawer")]
35impl BoundingBoxDrawer {
36    #[doc = "`DrawBoundingBox(crate::unity_engine::bounds::Bounds, crate::unity_engine::gameobject::GameObject, f32)` overload"]
37    pub fn draw_bounding_box(
38        bounds: impl ::core::convert::Into<crate::unity_engine::bounds::Bounds>,
39        go: impl ::core::convert::Into<crate::unity_engine::gameobject::GameObject>,
40        alpha: impl ::core::convert::Into<f32>,
41    ) -> () {
42        unsafe {
43            ::unity::il2cpp_call!((::unity::module_base()+0x298aec0usize)as*mut u8,();
44(crate::unity_engine::bounds::Bounds)::core::convert::Into::into(bounds),(crate::unity_engine::gameobject::GameObject)::core::convert::Into::into(go),(f32)::core::convert::Into::into(alpha))
45        }
46    }
47
48    #[doc = "`DrawBoundingBox(crate::unity_engine::gameobject::GameObject, f32)` overload"]
49    pub fn draw_bounding_box_2(
50        go: impl ::core::convert::Into<crate::unity_engine::gameobject::GameObject>,
51        alpha: impl ::core::convert::Into<f32>,
52    ) -> () {
53        unsafe {
54            ::unity::il2cpp_call!((::unity::module_base()+0x298aed0usize)as*mut u8,();
55(crate::unity_engine::gameobject::GameObject)::core::convert::Into::into(go),(f32)::core::convert::Into::into(alpha))
56        }
57    }
58}
59
60#[cfg(feature = "app-boundingboxdrawer")]
61pub trait IBoundingBoxDrawerMethods: IBoundingBoxDrawer {
62    #[doc = "`.ctor()` overload"]
63    fn ctor(self) -> () {
64        unsafe {
65            let __receiver = <BoundingBoxDrawer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
66            ::unity::il2cpp_call!((::unity::module_base()+0x298b240usize)as*mut u8,();
67(BoundingBoxDrawer)__receiver)
68        }
69    }
70}
71
72#[cfg(feature = "app-boundingboxdrawer")]
73impl<__T: IBoundingBoxDrawer> IBoundingBoxDrawerMethods for __T {}
74
75#[cfg(feature = "app-boundingboxdrawer")]
76impl BoundingBoxDrawer {
77    pub fn draw_bounding_box_method_info() -> &'static ::unity::il2cpp::MethodInfo {
78        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
79    }
80
81    pub fn draw_bounding_box_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
82        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
83    }
84
85    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
86        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
87    }
88}
89
90#[cfg(feature = "app-boundingboxdrawer")]
91impl BoundingBoxDrawer {
92    #[doc = "`.ctor()` — no args"]
93    pub fn new() -> Self {
94        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
95            panic!(
96                "{}
97::{}
98 failed to instantiate",
99                ::core::stringify!(BoundingBoxDrawer),
100                ::core::stringify!(new),
101            )
102        });
103        <Self as IBoundingBoxDrawerMethods>::ctor(this);
104        this
105    }
106}
107
108#[cfg(feature = "app-boundingboxdrawer")]
109#[doc(hidden)]
110pub mod prelude {
111    pub use super::{BoundingBoxDrawer, IBoundingBoxDrawer, IBoundingBoxDrawerMethods};
112    #[cfg(feature = "system-object")]
113    pub use crate::system::object::IObjectMethods;
114    #[cfg(feature = "unity_engine-behaviour")]
115    pub use crate::unity_engine::behaviour::IBehaviourMethods;
116    #[cfg(feature = "unity_engine-component")]
117    pub use crate::unity_engine::component::IComponentMethods;
118    #[cfg(feature = "unity_engine-monobehaviour")]
119    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
120    #[cfg(feature = "unity_engine-object_2")]
121    pub use crate::unity_engine::object_2::IObject_2Methods;
122    pub use crate::{
123        system::object::IObject,
124        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
125    };
126}