-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdialogBox.h
More file actions
49 lines (41 loc) · 756 Bytes
/
Copy pathdialogBox.h
File metadata and controls
49 lines (41 loc) · 756 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#ifndef DIALOG_BOX_H
#define DIALOG_BOX_H
#include <SDL2/SDL.h>
#include <SDL2/SDL_ttf.h>
#include "ui.h"
#include "button.h"
#include "primaryButton.h"
typedef struct {
SDL_Window *window;
SDL_Renderer *renderer;
TTF_Font *font;
bool open;
bool closing;
bool dark;
float anim;
bool dragging;
int drag_off_x;
int drag_off_y;
UIButton cancelBtn;
UIPrimaryButton okBtn;
} DialogBox;
void dialog_box_init(
DialogBox *dlg,
TTF_Font *font
);
void dialog_box_open(
DialogBox *dlg
);
void dialog_box_event(
DialogBox *dlg,
SDL_Event *event
);
void dialog_box_draw(
DialogBox *dlg,
bool dark,
float dt
);
void dialog_box_close(
DialogBox *dlg
);
#endif /* DIALOG_BOX_H */