/* SPDX-License-Identifier: GPL-3.0-or-later * * ft2-nuklear - common header */ #ifndef COMMON_H__INCLUDED #define COMMON_H__INCLUDED #include "config.h" #include #include #include #define NK_ASSERT(expr) assert(expr) #define NK_BUTTON_TRIGGER_ON_RELEASE #include #include enum ft2_screen { SCREEN_NORMAL, SCREEN_CONFIG }; struct ft2_app { nk_pugl_config_t cfg; nk_pugl_window_t *win_ptr; float xdpi; float ydpi; float scale; /* vs 96 dpi */ enum ft2_screen screen; int theme; }; extern struct ft2_app g_app; bool ui_init(struct ft2_app *app_ptr); void ui_deinit(struct ft2_app *app_ptr); #endif /* COMMON_H__INCLUDED */