#ifndef TEENSY_UI_H_ #define TEENSY_UI_H_ #include "teensy_common.h" #include "teensy.h" #define TYUI_WIN_NORESIZE (1 << 0) #define TYUI_WIN_NOCLOSE (1 << 1) #define TYUI_WIN_NOMOVE (1 << 2) #define TYUI_WIN_INVISIBLE (1 << 3) #define tyui_begin_window(title, rect, id) \ tyui_begin_window_ex(title, rect, id, 0, NULL) typedef struct { ty_Color fg_normal; ty_Color bg_normal; ty_Color fg_hover; ty_Color bg_hover; ty_Color win_bg; ty_Color win_title; } tyui_Style; typedef uint8_t tyui_Id; void tyui_init(const ty_Font *font); void tyui_deinit(void); void tyui_draw(void); bool tyui_begin_window_ex( const char *title, ty_Recti rect, tyui_Id *id, uint32_t flags, bool *closed ); void tyui_end_window(void); bool tyui_button(const char *text); void tyui_text(const char *fmt, ...); #endif // TEENSY_UI_H_