#include "utils.h" #ifndef UI_H #define UI_H #ifndef RAYGUI_WINDOWBOX_STATUSBAR_HEIGHT #define RAYGUI_WINDOWBOX_STATUSBAR_HEIGHT 24 #endif #ifndef RAYGUI_WINDOW_CLOSEBUTTON_SIZE #define RAYGUI_WINDOW_CLOSEBUTTON_SIZE 18 #endif typedef void (*DrawWindowContentCallback)(Vector2 position, Vector2 scroll); typedef struct { Rectangle rect; bool minimized; bool moving; bool resizing; DrawWindowContentCallback callback; Vector2 contentSize; Vector2 scroll; } FloatingWindow; FloatingWindow createFloatingWindow(); void updateFloatingWindow(FloatingWindow* window, const char* title); #endif