diff options
Diffstat (limited to 'src/gui/base.h')
| -rw-r--r-- | src/gui/base.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/base.h b/src/gui/base.h index e62c66a..293de74 100644 --- a/src/gui/base.h +++ b/src/gui/base.h @@ -1,6 +1,5 @@ #pragma once #include "../render/gl_2d.h" -#include <functional> // ======================================= [ colorscheme ] ======================================== @@ -46,7 +45,7 @@ extern U8 gui_is_fg_window( struct GUI_BASE* node ); // 1 if pa // ======================================= [ components ] ========================================= -using GUI_CALLBACK = std::function<void( void* )>; +using GUI_CALLBACK = FN<void( void* )>; struct GUI_LIST_ENTRY { I32 val; char title[256]; @@ -129,6 +128,8 @@ extern void gui_base_input_fn( void* ); extern void gui_view_draw_fn( void* ); struct GUI_BASE { + virtual ~GUI_BASE() = default; + I32 x{}, y{}; I32 w{}, h{}; U8 enabled{1}; |
