Welcome to the EyeBot
Version 7 - RPi1
A Controller For Various Hardware IO
Main Page
Data Structures
Files
File List
Globals
include
listmenu.h
Go to the documentation of this file.
1
7
#ifndef LISTMENU_H_
8
#define LISTMENU_H_
9
10
#include <stdlib.h>
11
#include "
types.h
"
12
13
void
listmenuInit
(
LIST_MENU
*,
char
*);
14
void
listmenuAddItem
(
LIST_MENU
*,
char
*,
void
*);
15
void
listmenuFreeItems
(
LIST_MENU
*);
16
int
listmenuSize
(
LIST_MENU
);
17
void
listmenuToggleScroll
(
LIST_MENU
*);
18
int
listmenuGetScroll
(
LIST_MENU
);
19
void
listmenuChangeItemText
(
LIST_MENU
*listmenu,
char
*newText,
int
index);
20
int
listmenuGetIndex
(
LIST_MENU
listmenu);
21
char
*
listmenuGetItemText
(
LIST_MENU
listmenu);
22
23
#endif
types.h
Defines types used for the EyeBot 7.
listmenuGetItemText
char * listmenuGetItemText(LIST_MENU listmenu)
Returns the text for the current menu itme.
Definition:
listmenu.c:146
listmenuAddItem
void listmenuAddItem(LIST_MENU *, char *, void *)
Adds an item (a string) to the list.
Definition:
listmenu.c:74
listmenuFreeItems
void listmenuFreeItems(LIST_MENU *)
Frees the items in the list.
Definition:
listmenu.c:105
LIST_MENU
Structure defining a menu.
Definition:
types.h:232
listmenuGetIndex
int listmenuGetIndex(LIST_MENU listmenu)
Returns the index of the menu item.
Definition:
listmenu.c:136
listmenuGetScroll
int listmenuGetScroll(LIST_MENU)
checks for the scroll value of the list
Definition:
listmenu.c:42
listmenuInit
void listmenuInit(LIST_MENU *, char *)
initialises the list to display on the LCD
Definition:
listmenu.c:52
listmenuSize
int listmenuSize(LIST_MENU)
Returns the size of the list.
Definition:
listmenu.c:16
listmenuChangeItemText
void listmenuChangeItemText(LIST_MENU *listmenu, char *newText, int index)
Changes the item's name.
Definition:
listmenu.c:118
listmenuToggleScroll
void listmenuToggleScroll(LIST_MENU *)
Toggles the scroll functions.
Definition:
listmenu.c:25
Generated by
1.8.10