Doloro GDK 22 .1.0 Beta
by Tauri Interactive
|
Component that provides API to connect source data with AGUIElementsCollection component in uniform way.
SourceType | Type of data source that can be converted to GUIElementType instance. Must has IGUIConvertible<GUIElementType> interface as defined. |
GUIElementType | AGUIElement derived type that will be instantiated during source type instance connection. |
SourceType | : | class | |
GUIElementType | : | AGUIElement | |
GUIElementType | : | IContentInspector<SourceType> |
Classes | |
class | GUICollectionAsStoragesEnumerator |
Enumerates GUI collection in search of GUIElementType elements to get SourceType content placed within. More... | |
Public Member Functions | |
void | Add (SourceType item) |
Connects new SourceType source to UI. More... | |
void | Clear () |
Clears entire UI. More... | |
bool | Contains (SourceType item) |
Checks is the SourceType connected to UI. More... | |
void | CopyTo (SourceType[] array, int arrayIndex) |
Copies references of rented storages to the destination array. More... | |
IEnumerator< SourceType > | GetEnumerator () |
Enumerates sources connected with the UI. More... | |
int | IndexOf (SourceType item) |
Looking for GUI element with connected SourceType instance. More... | |
void | Insert (int index, SourceType item) |
Inserts GUI element connected to the source to the collection. More... | |
bool | Remove (SourceType item) |
Removes GUI element of collection with connected storage. More... | |
void | RemoveAt (int index) |
Removes GUI element from GUICollectionHubEventRelay.collection by index. More... | |
void | Set (ICollection< SourceType > content) |
Loads to UI bunch of SourceTypes. More... | |
void | Set (params SourceType[] content) |
Loads to UI bunch of SourceTypes. More... | |
Properties | |
AGUIElementsCollection | CollectionGUI [get] |
Attached collection GUI. | |
GUIElementType | ElementTemplatePrefab [get, set] |
Prefab of the GUI element that will be created for SourceType instance during binding to UI. | |
SourceType | this[int index] [get, set] |
Provides access to UI element as connected SourceType. More... | |
int | Count [get] |
Count of elements placed at the UI. More... | |
bool | IsReadOnly [get] |
Redirects to GUICollectionHubEventRelay.collection property. | |
void Doloro.UIEngine2.Modules.ElementsCollection.AGUIElementsCollectionDataConnector< SourceType, GUIElementType >.Add | ( | SourceType | item | ) |
Connects new SourceType source to UI.
item | SourceType to connect. |
void Doloro.UIEngine2.Modules.ElementsCollection.AGUIElementsCollectionDataConnector< SourceType, GUIElementType >.Clear | ( | ) |
Clears entire UI.
Not releases rented storages.
bool Doloro.UIEngine2.Modules.ElementsCollection.AGUIElementsCollectionDataConnector< SourceType, GUIElementType >.Contains | ( | SourceType | item | ) |
Checks is the SourceType connected to UI.
item | SourceType to search. |
true
if connected to the UI.void Doloro.UIEngine2.Modules.ElementsCollection.AGUIElementsCollectionDataConnector< SourceType, GUIElementType >.CopyTo | ( | SourceType[] | array, |
int | arrayIndex | ||
) |
Copies references of rented storages to the destination array.
array | Destination array. |
arrayIndex | Start index to array insert. |
In case if GUICollectionHubEventRelay.collection contains elements not derived from GUIElementType such elements will be avoided.
IEnumerator< SourceType > Doloro.UIEngine2.Modules.ElementsCollection.AGUIElementsCollectionDataConnector< SourceType, GUIElementType >.GetEnumerator | ( | ) |
Enumerates sources connected with the UI.
int Doloro.UIEngine2.Modules.ElementsCollection.AGUIElementsCollectionDataConnector< SourceType, GUIElementType >.IndexOf | ( | SourceType | item | ) |
Looking for GUI element with connected SourceType instance.
item | Connected source to search. |
void Doloro.UIEngine2.Modules.ElementsCollection.AGUIElementsCollectionDataConnector< SourceType, GUIElementType >.Insert | ( | int | index, |
SourceType | item | ||
) |
Inserts GUI element connected to the source to the collection.
index | Indexed in collection as insert destination. |
item | Source item to GUI attach. |
bool Doloro.UIEngine2.Modules.ElementsCollection.AGUIElementsCollectionDataConnector< SourceType, GUIElementType >.Remove | ( | SourceType | item | ) |
Removes GUI element of collection with connected storage.
item | Connected storage to detach from UI. |
void Doloro.UIEngine2.Modules.ElementsCollection.AGUIElementsCollectionDataConnector< SourceType, GUIElementType >.RemoveAt | ( | int | index | ) |
Removes GUI element from GUICollectionHubEventRelay.collection by index.
index | Index to remove. |
void Doloro.UIEngine2.Modules.ElementsCollection.AGUIElementsCollectionDataConnector< SourceType, GUIElementType >.Set | ( | ICollection< SourceType > | content | ) |
Loads to UI bunch of SourceTypes.
content | Collection of rented storages. |
void Doloro.UIEngine2.Modules.ElementsCollection.AGUIElementsCollectionDataConnector< SourceType, GUIElementType >.Set | ( | params SourceType[] | content | ) |
Loads to UI bunch of SourceTypes.
content | Collection of rented storages. |
|
get |
Count of elements placed at the UI.
Note that in case if you add a custom UIEngine2.AGUIElement to the GUICollectionHubEventRelay.collection directly then this element will be count as part of collection.
|
getset |
Provides access to UI element as connected SourceType.
index | Index of element in UI collection. |
null
in case if collection item is manually added UIEngine2.AGUIElement of another type. In case if UIEngine2.AGUIElement as collection item not derived from GUIElementType then during set operation it will be replaced with Insert(int, SourceType) implementation.