mirror of
https://github.com/libretro/RetroArch
synced 2025-02-01 00:32:46 +00:00
54 lines
1.2 KiB
C
54 lines
1.2 KiB
C
#include "../../deps/zahnrad/zahnrad.h"
|
|
#include "../menu_display.h"
|
|
|
|
enum
|
|
{
|
|
ZR_TEXTURE_POINTER = 0,
|
|
ZR_TEXTURE_LAST
|
|
};
|
|
|
|
enum
|
|
{
|
|
ZRMENU_WND_MAIN = 0,
|
|
ZRMENU_WND_CONTROL,
|
|
ZRMENU_WND_SHADER_PARAMETERS,
|
|
ZRMENU_WND_TEST,
|
|
ZRMENU_WND_WIZARD
|
|
};
|
|
|
|
enum zrmenu_theme
|
|
{
|
|
THEME_DARK = 0,
|
|
THEME_LIGHT
|
|
};
|
|
|
|
typedef struct zrmenu_handle
|
|
{
|
|
char box_message[PATH_MAX_LENGTH];
|
|
bool window_enabled[5];
|
|
bool resize;
|
|
unsigned width;
|
|
unsigned height;
|
|
void *memory;
|
|
struct zr_context ctx;
|
|
struct zr_memory_status status;
|
|
enum zrmenu_theme theme;
|
|
|
|
struct
|
|
{
|
|
menu_texture_item bg;
|
|
menu_texture_item list[ZR_TEXTURE_LAST];
|
|
} textures;
|
|
|
|
gfx_font_raster_block_t list_block;
|
|
} zrmenu_handle_t;
|
|
|
|
void zrmenu_set_style(struct zr_context *ctx, enum zrmenu_theme theme);
|
|
|
|
|
|
void zrmenu_wnd_wizard(struct zr_context *ctx, zrmenu_handle_t *zr);
|
|
void zrmenu_wnd_shader_parameters(struct zr_context *ctx, zrmenu_handle_t *zr);
|
|
void zrmenu_wnd_control(struct zr_context *ctx, zrmenu_handle_t *zr);
|
|
void zrmenu_wnd_test(struct zr_context *ctx, zrmenu_handle_t *zr);
|
|
void zrmenu_wnd_main(struct zr_context *ctx, zrmenu_handle_t *zr);
|