-
Notifications
You must be signed in to change notification settings - Fork 0
/
GUI_Alert.h
38 lines (24 loc) · 995 Bytes
/
GUI_Alert.h
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
#ifndef GUI_ALERT_H
#define GUI_ALERT_H
//--------------------------------------------------------------------------------
#include "GUI_Window.h"
#include "GUI_TextButton.h"
#include <vector>
//--------------------------------------------------------------------------------
// rodzaj wyrownania tekstu alertu
enum GUI_TextAlign { AL_LEFT = 0, AL_CENTER = 1, AL_RIGHT = 2 };
//--------------------------------------------------------------------------------
// alert
class GUI_Alert : public GUI_Window
{
private:
GUI_Button *okBtn; // przycisk OK
public:
bool marked; // flaga oznaczenia alertu do usuniecia
GUI_Alert(int _x, int _y, std::string _title, std::string _message, SDL_Surface *_theme, TTF_Font *_font, GUI_TextAlign _align = AL_LEFT);
~GUI_Alert(void);
// ustawienie callbacku zamkniecia alertu
void AddCallback(GUI_ButtonCallback _callback, void *_param);
};
//--------------------------------------------------------------------------------
#endif