engage/generated/unity_engine/rendering/
observablelist_1.rs1#[cfg(feature = "unity_engine-rendering-observablelist_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/observablelist_1/ObservableList_1.md"))]
11 #[::unity::class(namespace = "UnityEngine.Rendering", name = "ObservableList`1")]
12 #[parent(crate::system::object::Object)]
13 pub struct ObservableList_1<T0: ::unity::ClassIdentity> {
14 #[rename(name = "m_List")]
15 pub m_list: crate::system::collections::generic::ilist_1_interface::IList_1_Interface<T0>,
16 #[rename(name = "ItemAdded")]
17 pub item_added: crate::unity_engine::rendering::listchangedeventhandler_1::ListChangedEventHandler_1<T0>,
18 #[rename(name = "ItemRemoved")]
19 pub item_removed: crate::unity_engine::rendering::listchangedeventhandler_1::ListChangedEventHandler_1<T0>,
20 }
21}
22
23#[cfg(feature = "unity_engine-rendering-observablelist_1-types")]
24pub use __types::*;
25
26#[cfg(feature = "unity_engine-rendering-observablelist_1")]
27#[::unity::methods]
28impl<T0: ::unity::ClassIdentity> ObservableList_1<T0> {
29 #[doc = "`add_ItemAdded(crate::unity_engine::rendering::listchangedeventhandler_1::ListChangedEventHandler_1<T0>)` overload"]
30 #[method(name = "add_ItemAdded", args = 1)]
31 pub fn add_item_added(self, value: crate::unity_engine::rendering::listchangedeventhandler_1::ListChangedEventHandler_1<T0>) -> ();
32
33 #[doc = "`remove_ItemAdded(crate::unity_engine::rendering::listchangedeventhandler_1::ListChangedEventHandler_1<T0>)` overload"]
34 #[method(name = "remove_ItemAdded", args = 1)]
35 pub fn remove_item_added(self, value: crate::unity_engine::rendering::listchangedeventhandler_1::ListChangedEventHandler_1<T0>) -> ();
36
37 #[doc = "`add_ItemRemoved(crate::unity_engine::rendering::listchangedeventhandler_1::ListChangedEventHandler_1<T0>)` overload"]
38 #[method(name = "add_ItemRemoved", args = 1)]
39 pub fn add_item_removed(self, value: crate::unity_engine::rendering::listchangedeventhandler_1::ListChangedEventHandler_1<T0>) -> ();
40
41 #[doc = "`remove_ItemRemoved(crate::unity_engine::rendering::listchangedeventhandler_1::ListChangedEventHandler_1<T0>)` overload"]
42 #[method(name = "remove_ItemRemoved", args = 1)]
43 pub fn remove_item_removed(self, value: crate::unity_engine::rendering::listchangedeventhandler_1::ListChangedEventHandler_1<T0>) -> ();
44
45 #[doc = "`get_Item(i32)` overload"]
46 #[method(name = "get_Item", args = 1)]
47 pub fn get_item(self, index: i32) -> T0;
48
49 #[doc = "`set_Item(i32, T0)` overload"]
50 #[method(name = "set_Item", args = 2)]
51 pub fn set_item(self, index: i32, value: T0) -> ();
52
53 #[doc = "`get_Count()` overload"]
54 #[method(name = "get_Count", args = 0)]
55 pub fn get_count(self) -> i32;
56
57 #[doc = "`get_IsReadOnly()` overload"]
58 #[method(name = "get_IsReadOnly", args = 0)]
59 pub fn get_is_read_only(self) -> bool;
60
61 #[doc = "`.ctor()` overload"]
62 #[method(name = ".ctor", args = 0)]
63 pub fn ctor(self) -> ();
64
65 #[doc = "`.ctor(i32)` overload"]
66 #[method(name = ".ctor", args = 1)]
67 pub fn ctor_2(self, capacity: i32) -> ();
68
69 #[doc = "`.ctor(crate::system::collections::generic::ienumerable_1::IEnumerable_1<T0>)` overload"]
70 #[method(name = ".ctor", args = 1)]
71 pub fn ctor_3(self, collection: crate::system::collections::generic::ienumerable_1::IEnumerable_1<T0>) -> ();
72
73 #[doc = "`OnEvent(crate::unity_engine::rendering::listchangedeventhandler_1::ListChangedEventHandler_1<T0>, i32, T0)` overload"]
74 #[method(name = "OnEvent", args = 3)]
75 pub fn on_event(self, e: crate::unity_engine::rendering::listchangedeventhandler_1::ListChangedEventHandler_1<T0>, index: i32, item: T0) -> ();
76
77 #[doc = "`Contains(T0)` overload"]
78 #[method(name = "Contains", args = 1)]
79 pub fn contains(self, item: T0) -> bool;
80
81 #[doc = "`IndexOf(T0)` overload"]
82 #[method(name = "IndexOf", args = 1)]
83 pub fn index_of(self, item: T0) -> i32;
84
85 #[doc = "`Add(T0)` overload"]
86 #[method(name = "Add", args = 1)]
87 pub fn add(self, item: T0) -> ();
88
89 #[doc = "`Add(::unity::Array<T0>)` overload"]
90 #[method(name = "Add", args = 1)]
91 pub fn add_2(self, items: ::unity::Array<T0>) -> ();
92
93 #[doc = "`Insert(i32, T0)` overload"]
94 #[method(name = "Insert", args = 2)]
95 pub fn insert(self, index: i32, item: T0) -> ();
96
97 #[doc = "`Remove(T0)` overload"]
98 #[method(name = "Remove", args = 1)]
99 pub fn remove(self, item: T0) -> bool;
100
101 #[doc = "`Remove(::unity::Array<T0>)` overload"]
102 #[method(name = "Remove", args = 1)]
103 pub fn remove_2(self, items: ::unity::Array<T0>) -> i32;
104
105 #[doc = "`RemoveAt(i32)` overload"]
106 #[method(name = "RemoveAt", args = 1)]
107 pub fn remove_at(self, index: i32) -> ();
108
109 #[doc = "`Clear()` overload"]
110 #[method(name = "Clear", args = 0)]
111 pub fn clear(self) -> ();
112
113 #[doc = "`CopyTo(::unity::Array<T0>, i32)` overload"]
114 #[method(name = "CopyTo", args = 2)]
115 pub fn copy_to(self, array: ::unity::Array<T0>, array_index: i32) -> ();
116
117 #[doc = "`GetEnumerator()` overload"]
118 #[method(name = "GetEnumerator", args = 0)]
119 pub fn get_enumerator(self) -> crate::system::collections::generic::ienumerator_1::IEnumerator_1<T0>;
120
121 #[doc = "`System.Collections.IEnumerable.GetEnumerator()` overload"]
122 #[method(name = "System.Collections.IEnumerable.GetEnumerator", args = 0)]
123 pub fn system_collections_i_enumerable_get_enumerator(self) -> crate::system::collections::ienumerator::IEnumerator;
124}
125
126#[cfg(feature = "unity_engine-rendering-observablelist_1")]
127impl<T0: ::unity::ClassIdentity> ObservableList_1<T0> {
128 #[doc = "`.ctor()` — no args"]
129 pub fn new() -> Self {
130 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
131 panic!(
132 "{}
133::{}
134 failed to instantiate",
135 ::core::stringify!(ObservableList_1),
136 ::core::stringify!(new),
137 )
138 });
139 <Self as IObservableList_1Methods<T0>>::ctor(this);
140 this
141 }
142
143 #[doc = "`.ctor(i32)` — overload selector"]
144 pub fn new_2(capacity: i32) -> Self {
145 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
146 panic!(
147 "{}
148::{}
149 failed to instantiate",
150 ::core::stringify!(ObservableList_1),
151 ::core::stringify!(new_2),
152 )
153 });
154 <Self as IObservableList_1Methods<T0>>::ctor_2(this, capacity);
155 this
156 }
157
158 #[doc = "`.ctor(crate::system::collections::generic::ienumerable_1::IEnumerable_1<T0>)` — overload selector"]
159 pub fn new_3(collection: crate::system::collections::generic::ienumerable_1::IEnumerable_1<T0>) -> Self {
160 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
161 panic!(
162 "{}
163::{}
164 failed to instantiate",
165 ::core::stringify!(ObservableList_1),
166 ::core::stringify!(new_3),
167 )
168 });
169 <Self as IObservableList_1Methods<T0>>::ctor_3(this, collection);
170 this
171 }
172}
173
174#[cfg(feature = "unity_engine-rendering-observablelist_1")]
175#[doc(hidden)]
176pub mod prelude {
177 pub use super::{IObservableList_1, IObservableList_1Methods, ObservableList_1};
178 pub use crate::system::object::IObject;
179 #[cfg(feature = "system-object")]
180 pub use crate::system::object::IObjectMethods;
181}