MenuItemList
Wrapper of a C++ array of MenuItems.
Extends
Methods
| Method | Description |
|---|---|
| size() | Returns the number of elements in the list |
| get() | Returns the element at the given index |
| push_back() | Adds an element to the end of the list |
| resize() | Resizes the list |
| set() | Sets the element at the given index |
Inherited from ClassHandle
| Method | Description |
|---|---|
| isAliasOf() | Returns true if this handle and other alias the same underlying C++ object. |
| delete() | Releases this JavaScript handle. |
| deleteLater() | Schedules this handle for deferred deletion and returns this handle. |
| isDeleted() | Returns true if this handle has already been deleted. |
| [dispose]() | Releases this handle when the enclosing scope exits, so a handle can be declared with using instead of calling delete() later manually. |
| clone() | Returns a new JavaScript handle aliasing the same underlying C++ object. |
size()
ts
Returns the number of elements in the list
Returns
number
get()
ts
Returns the element at the given index
Parameters
| Parameter | Type |
|---|---|
index | number |
Returns
MenuItem | undefined
push_back()
ts
Adds an element to the end of the list
Parameters
| Parameter | Type |
|---|---|
value | MenuItem |
Returns
void
resize()
ts
Resizes the list
Parameters
| Parameter | Type |
|---|---|
size | number |
value | MenuItem |
Returns
void
set()
ts
Sets the element at the given index
Parameters
| Parameter | Type |
|---|---|
index | number |
value | MenuItem |
Returns
boolean