mirror of
https://gitlab.com/Theopse/fbi-i18n-zh.git
synced 2025-04-06 03:58:02 +08:00
20 lines
1.3 KiB
C
20 lines
1.3 KiB
C
#pragma once
|
|
|
|
typedef struct ui_view_s ui_view;
|
|
|
|
#define PROMPT_OPTIONS_MAX 4
|
|
#define PROMPT_OPTION_TEXT_MAX 64
|
|
|
|
#define PROMPT_BUTTON_ANY 0xFFFFFFFF
|
|
|
|
#define PROMPT_OK 0
|
|
|
|
#define PROMPT_YES 0
|
|
#define PROMPT_NO 1
|
|
|
|
ui_view* prompt_display_multi_choice(const char* name, const char* text, u32 color, const char** options, u32* optionButtons, u32 numOptions, void* data, void (*drawTop)(ui_view* view, void* data, float x1, float y1, float x2, float y2),
|
|
void (*onResponse)(ui_view* view, void* data, u32 response));
|
|
ui_view* prompt_display_notify(const char* name, const char* text, u32 color, void* data, void (*drawTop)(ui_view* view, void* data, float x1, float y1, float x2, float y2),
|
|
void (*onResponse)(ui_view* view, void* data, u32 response));
|
|
ui_view* prompt_display_yes_no(const char* name, const char* text, u32 color, void* data, void (*drawTop)(ui_view* view, void* data, float x1, float y1, float x2, float y2),
|
|
void (*onResponse)(ui_view* view, void* data, u32 response)); |