mirror of
https://gitlab.com/Theopse/fbi-i18n-zh.git
synced 2025-04-06 03:58:02 +08:00
16 lines
617 B
C
16 lines
617 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;
|
|
|
|
ui_view* 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); |