aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui.h
blob: 80c669f75b950042f78f53b52b886a19e9170b92 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include "utils.h"

#ifndef UI_H
#define UI_H

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