Vuo  2.4.0
VuoList_VuoUiTheme.h
Go to the documentation of this file.
1
10#pragma once
11
12#ifdef __cplusplus
13extern "C"
14{
15#endif
16
25// This header is generated by vuo/type/list/generateVariants.sh.
26
27#if defined(DOXYGEN) || !defined(VuoList_VuoUiTheme_TYPE_DEFINED)
29
32typedef const struct VuoList_VuoUiTheme_struct { void *l; } * VuoList_VuoUiTheme;
34#endif
35
40
46VuoList_VuoUiTheme VuoListCreateWithCount_VuoUiTheme(const unsigned long count, const VuoUiTheme value);
47
52
53#ifndef VUO_LIST_INDEX_TO_C_ARRAY_INDEX
54#define VUO_LIST_INDEX_TO_C_ARRAY_INDEX
60static inline unsigned long VuoListIndexToCArrayIndex(long index, unsigned long listCount) __attribute__((const));
61static inline unsigned long VuoListIndexToCArrayIndex(long index, unsigned long listCount)
62{
63 if (index <= 0)
64 return 0;
65
66 if (index > listCount)
67 return listCount - 1;
68
69 return index - 1;
70}
71#endif
72
81VuoUiTheme VuoListGetValue_VuoUiTheme(const VuoList_VuoUiTheme list, const unsigned long index);
82
100
109void VuoListForeach_VuoUiTheme(const VuoList_VuoUiTheme list, bool (^function)(const VuoUiTheme value));
110
121void VuoListSetValue_VuoUiTheme(const VuoList_VuoUiTheme list, const VuoUiTheme value, const unsigned long index, bool expandListIfNeeded);
122
129void VuoListInsertValue_VuoUiTheme(const VuoList_VuoUiTheme list, const VuoUiTheme value, const unsigned long index);
130
135
140
144void VuoListExchangeValues_VuoUiTheme(VuoList_VuoUiTheme list, const unsigned long indexA, const unsigned long indexB);
145
146#ifdef VuoUiTheme_SUPPORTS_COMPARISON
150void VuoListSort_VuoUiTheme(VuoList_VuoUiTheme list);
151
157bool VuoList_VuoUiTheme_areEqual(const VuoList_VuoUiTheme a, const VuoList_VuoUiTheme b);
158
162bool VuoList_VuoUiTheme_isLessThan(const VuoList_VuoUiTheme a, const VuoList_VuoUiTheme b);
163#endif
164
170void VuoListShuffle_VuoUiTheme(VuoList_VuoUiTheme list, const double chaos);
171
176
182VuoList_VuoUiTheme VuoListSubset_VuoUiTheme(VuoList_VuoUiTheme list, const signed long startIndex, const unsigned long itemCount);
183
184#ifdef VuoUiTheme_SUPPORTS_COMPARISON
192VuoList_VuoUiTheme VuoListRemoveDuplicates_VuoUiTheme(VuoList_VuoUiTheme list);
193#endif
194
199
204
209
215void VuoListRemoveValue_VuoUiTheme(VuoList_VuoUiTheme list, const unsigned long index);
216
220unsigned long VuoListGetCount_VuoUiTheme(const VuoList_VuoUiTheme list);
221
230
235
236#ifdef VuoUiTheme_REQUIRES_INTERPROCESS_JSON
242struct json_object * VuoList_VuoUiTheme_getInterprocessJson(const VuoList_VuoUiTheme value);
243#endif
244
249
251
257
262#ifdef __cplusplus
263}
264#endif