Steven Smith 1b78bebd94 General cleanup.
* Maintain list position after operations.
* Show current target info in batch operations.
* Fix freeze when suspending to the home menu during a threaded task.
* Other miscellaneous fixes and clean-ups.
2016-04-26 19:30:00 -07:00

16 lines
609 B
C

#pragma once
#define LIST_ITEM_NAME_MAX 512
typedef struct linked_list_s linked_list;
typedef struct ui_view_s ui_view;
typedef struct list_item_s {
char name[LIST_ITEM_NAME_MAX];
u32 color;
void* data;
} list_item;
void list_display(const char* name, const char* info, void* data, void (*update)(ui_view* view, void* data, linked_list* items, list_item* selected, bool selectedTouched),
void (*drawTop)(ui_view* view, void* data, float x1, float y1, float x2, float y2, list_item* selected));
void list_destroy(ui_view* view);