mirror of
https://gitlab.com/Theopse/fbi-i18n-zh.git
synced 2025-04-06 03:58:02 +08:00
16 lines
583 B
C
16 lines
583 B
C
#pragma once
|
|
|
|
#include <sys/syslimits.h>
|
|
|
|
#include "ui.h"
|
|
|
|
typedef struct {
|
|
char name[NAME_MAX];
|
|
u32 rgba;
|
|
void* data;
|
|
} list_item;
|
|
|
|
ui_view* list_create(const char* name, const char* info, void* data, void (*update)(ui_view* view, void* data, list_item** contents, u32** itemCount, 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);
|
|
void* list_get_data(ui_view* view); |