engage/generated/unity_engine/ui/collections/
indexedset_1.rs1#[cfg(feature = "unity_engine-ui-collections-indexedset_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/ui/collections/indexedset_1/IndexedSet_1.md"))]
11 #[::unity::class(namespace = "UnityEngine.UI.Collections", name = "IndexedSet`1")]
12 #[parent(crate::system::object::Object)]
13 pub struct IndexedSet_1<T0: ::unity::ClassIdentity> {
14 #[rename(name = "m_List")]
15 pub m_list: crate::system::collections::generic::list_1::List_1<T0>,
16 #[rename(name = "m_Dictionary")]
17 pub m_dictionary: crate::system::collections::generic::dictionary_2::Dictionary_2<T0, i32>,
18 }
19}
20
21#[cfg(feature = "unity_engine-ui-collections-indexedset_1-types")]
22pub use __types::*;
23
24#[cfg(feature = "unity_engine-ui-collections-indexedset_1")]
25#[::unity::methods]
26impl<T0: ::unity::ClassIdentity> IndexedSet_1<T0> {
27 #[doc = "`Add(T0)` overload"]
28 #[method(name = "Add", args = 1)]
29 pub fn add(self, item: T0) -> ();
30
31 #[doc = "`AddUnique(T0)` overload"]
32 #[method(name = "AddUnique", args = 1)]
33 pub fn add_unique(self, item: T0) -> bool;
34
35 #[doc = "`Remove(T0)` overload"]
36 #[method(name = "Remove", args = 1)]
37 pub fn remove(self, item: T0) -> bool;
38
39 #[doc = "`GetEnumerator()` overload"]
40 #[method(name = "GetEnumerator", args = 0)]
41 pub fn get_enumerator(self) -> crate::system::collections::generic::ienumerator_1::IEnumerator_1<T0>;
42
43 #[doc = "`System.Collections.IEnumerable.GetEnumerator()` overload"]
44 #[method(name = "System.Collections.IEnumerable.GetEnumerator", args = 0)]
45 pub fn system_collections_i_enumerable_get_enumerator(self) -> crate::system::collections::ienumerator::IEnumerator;
46
47 #[doc = "`Clear()` overload"]
48 #[method(name = "Clear", args = 0)]
49 pub fn clear(self) -> ();
50
51 #[doc = "`Contains(T0)` overload"]
52 #[method(name = "Contains", args = 1)]
53 pub fn contains(self, item: T0) -> bool;
54
55 #[doc = "`CopyTo(::unity::Array<T0>, i32)` overload"]
56 #[method(name = "CopyTo", args = 2)]
57 pub fn copy_to(self, array: ::unity::Array<T0>, array_index: i32) -> ();
58
59 #[doc = "`get_Count()` overload"]
60 #[method(name = "get_Count", args = 0)]
61 pub fn get_count(self) -> i32;
62
63 #[doc = "`get_IsReadOnly()` overload"]
64 #[method(name = "get_IsReadOnly", args = 0)]
65 pub fn get_is_read_only(self) -> bool;
66
67 #[doc = "`IndexOf(T0)` overload"]
68 #[method(name = "IndexOf", args = 1)]
69 pub fn index_of(self, item: T0) -> i32;
70
71 #[doc = "`Insert(i32, T0)` overload"]
72 #[method(name = "Insert", args = 2)]
73 pub fn insert(self, index: i32, item: T0) -> ();
74
75 #[doc = "`RemoveAt(i32)` overload"]
76 #[method(name = "RemoveAt", args = 1)]
77 pub fn remove_at(self, index: i32) -> ();
78
79 #[doc = "`get_Item(i32)` overload"]
80 #[method(name = "get_Item", args = 1)]
81 pub fn get_item(self, index: i32) -> T0;
82
83 #[doc = "`set_Item(i32, T0)` overload"]
84 #[method(name = "set_Item", args = 2)]
85 pub fn set_item(self, index: i32, value: T0) -> ();
86
87 #[doc = "`RemoveAll(crate::system::predicate_1::Predicate_1<T0>)` overload"]
88 #[method(name = "RemoveAll", args = 1)]
89 pub fn remove_all(self, r#match: crate::system::predicate_1::Predicate_1<T0>) -> ();
90
91 #[doc = "`Sort(crate::system::comparison_1::Comparison_1<T0>)` overload"]
92 #[method(name = "Sort", args = 1)]
93 pub fn sort(self, sort_layout_function: crate::system::comparison_1::Comparison_1<T0>) -> ();
94
95 #[doc = "`.ctor()` overload"]
96 #[method(name = ".ctor", args = 0)]
97 pub fn ctor(self) -> ();
98}
99
100#[cfg(feature = "unity_engine-ui-collections-indexedset_1")]
101impl<T0: ::unity::ClassIdentity> IndexedSet_1<T0> {
102 #[doc = "`.ctor()` — no args"]
103 pub fn new() -> Self {
104 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
105 panic!(
106 "{}
107::{}
108 failed to instantiate",
109 ::core::stringify!(IndexedSet_1),
110 ::core::stringify!(new),
111 )
112 });
113 <Self as IIndexedSet_1Methods<T0>>::ctor(this);
114 this
115 }
116}
117
118#[cfg(feature = "unity_engine-ui-collections-indexedset_1")]
119#[doc(hidden)]
120pub mod prelude {
121 pub use super::{IIndexedSet_1, IIndexedSet_1Methods, IndexedSet_1};
122 pub use crate::system::object::IObject;
123 #[cfg(feature = "system-object")]
124 pub use crate::system::object::IObjectMethods;
125}