engage/generated/unity_engine/rendering/
dynamicarray_1.rs1#[cfg(feature = "unity_engine-rendering-dynamicarray_1-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/rendering/dynamicarray_1/DynamicArray_1.md"))]
11 #[::unity::class(namespace = "UnityEngine.Rendering", name = "DynamicArray`1")]
12 #[parent(crate::system::object::Object)]
13 pub struct DynamicArray_1<T0: ::unity::ClassIdentity> {
14 #[rename(name = "m_Array")]
15 pub m_array: ::unity::Array<T0>,
16 }
17}
18
19#[cfg(feature = "unity_engine-rendering-dynamicarray_1-types")]
20pub use __types::*;
21
22#[cfg(feature = "unity_engine-rendering-dynamicarray_1")]
23#[::unity::methods]
24impl<T0: ::unity::ClassIdentity> DynamicArray_1<T0> {
25 #[doc = "`get_size()` overload"]
26 #[method(name = "get_size", args = 0)]
27 pub fn get_size(self) -> i32;
28
29 #[doc = "`set_size(i32)` overload"]
30 #[method(name = "set_size", args = 1)]
31 pub fn set_size(self, value: i32) -> ();
32
33 #[doc = "`get_capacity()` overload"]
34 #[method(name = "get_capacity", args = 0)]
35 pub fn get_capacity(self) -> i32;
36
37 #[doc = "`.ctor()` overload"]
38 #[method(name = ".ctor", args = 0)]
39 pub fn ctor(self) -> ();
40
41 #[doc = "`.ctor(i32)` overload"]
42 #[method(name = ".ctor", args = 1)]
43 pub fn ctor_2(self, size: i32) -> ();
44
45 #[doc = "`Clear()` overload"]
46 #[method(name = "Clear", args = 0)]
47 pub fn clear(self) -> ();
48
49 #[doc = "`Add(*mutT0)` overload"]
50 #[method(name = "Add", args = 1)]
51 pub fn add(self, value: *mut T0) -> i32;
52
53 #[doc = "`Resize(i32, bool)` overload"]
54 #[method(name = "Resize", args = 2)]
55 pub fn resize(self, new_size: i32, keep_content: bool) -> ();
56
57 #[doc = "`get_Item(i32)` overload"]
58 #[method(name = "get_Item", args = 1)]
59 pub fn get_item(self, index: i32) -> *mut T0;
60}
61
62#[cfg(feature = "unity_engine-rendering-dynamicarray_1")]
63impl<T0: ::unity::ClassIdentity> DynamicArray_1<T0> {
64 #[doc = "`.ctor()` — no args"]
65 pub fn new() -> Self {
66 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
67 panic!(
68 "{}
69::{}
70 failed to instantiate",
71 ::core::stringify!(DynamicArray_1),
72 ::core::stringify!(new),
73 )
74 });
75 <Self as IDynamicArray_1Methods<T0>>::ctor(this);
76 this
77 }
78
79 #[doc = "`.ctor(i32)` — overload selector"]
80 pub fn new_2(size: i32) -> Self {
81 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
82 panic!(
83 "{}
84::{}
85 failed to instantiate",
86 ::core::stringify!(DynamicArray_1),
87 ::core::stringify!(new_2),
88 )
89 });
90 <Self as IDynamicArray_1Methods<T0>>::ctor_2(this, size);
91 this
92 }
93}
94
95#[cfg(feature = "unity_engine-rendering-dynamicarray_1")]
96#[doc(hidden)]
97pub mod prelude {
98 pub use super::{DynamicArray_1, IDynamicArray_1, IDynamicArray_1Methods};
99 pub use crate::system::object::IObject;
100 #[cfg(feature = "system-object")]
101 pub use crate::system::object::IObjectMethods;
102}