Public Member Functions | |
virtual int | children (const Menu *, const int *indexes, int level) |
virtual Widget * | child (const Menu *, const int *indexes, int level) |
StringList (const char *const *a, int n) | |
StringList (const char *const *a) | |
StringList (const char *S) |
const char* names[] = {"alpha", "beta", "gamma", 0} StringList* list = new StringList(names); // Identical result can be made with this: // StringList* list = new StringList("alpha\0beta\0gamma\0"); menu->list(list);
|
Sets the string list to return n items, where the labels are from the array a. Warning: the array is not copied, it should be in static memory! |
|
Sets the string list to return items who's labels are from the array a. The number of items is determined by the first null pointer in the array. Warning: the array is not copied, it should be in static memory! |
|
Sets the string list to return the nul-seperated list of strings. The list is terminated by two nul characters. Warning: the string is not copied! Also the current implementation leaks the created array when the StringList is deleted. |