creates lists
More...
#include <stdlib.h>
#include "types.h"
Go to the source code of this file.
creates lists
- Author
- Marcus Pham (Remi Keat)
void listmenuAddItem |
( |
LIST_MENU * |
listmenu, |
|
|
char * |
name, |
|
|
void * |
plink |
|
) |
| |
Adds an item (a string) to the list.
- Parameters
-
*listmenu | a pointer to the menu |
name | the name of the item to add the list |
*plink | a pointer to a user function/data |
void listmenuChangeItemText |
( |
LIST_MENU * |
listmenu, |
|
|
char * |
newText, |
|
|
int |
index |
|
) |
| |
Changes the item's name.
- Parameters
-
*listmenu | a pointer to the menu |
newText | the new name of the item to add the list |
index | the index of the item in the list |
void listmenuFreeItems |
( |
LIST_MENU * |
listmenu | ) |
|
Frees the items in the list.
- Parameters
-
*listmenu | a pointer to the menu |
Returns the index of the menu item.
- Parameters
-
- Returns
- the index of the item
char* listmenuGetItemText |
( |
LIST_MENU |
listmenu | ) |
|
Returns the text for the current menu itme.
- Parameters
-
- Returns
- the string representing the text
checks for the scroll value of the list
- Parameters
-
listmenu | the listmenu item |
- Returns
- the scroll value
void listmenuInit |
( |
LIST_MENU * |
listmenu, |
|
|
char * |
name |
|
) |
| |
initialises the list to display on the LCD
- Parameters
-
*listmenu | a pointer to the menu |
name | the name of the list |
Returns the size of the list.
- Parameters
-
listmenu | the menu to check |
- Returns
- the size of the list
void listmenuToggleScroll |
( |
LIST_MENU * |
listmenu | ) |
|
Toggles the scroll functions.
- Parameters
-
*listmenu | a pointer to the list |