-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathdialog.h
61 lines (49 loc) · 1.19 KB
/
dialog.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#pragma once
#define DIALOG_STYLE_MSGBOX 0
#define DIALOG_STYLE_INPUT 1
#define DIALOG_STYLE_LIST 2
#define DIALOG_STYLE_PASSWORD 3
#define DIALOG_STYLE_TABLIST 4
#define DIALOG_STYLE_TABLIST_HEADERS 5
#include <string>
class CDialogWindow
{
public:
CDialogWindow();
~CDialogWindow();
void Render();
void Clear();
void ShowListItems();
void ShowListInfo();
void GetListItemsCount();
void Show(bool bShow);
void SetInfo(char* szInfo, int length);
void GenerateDialogList();
void DrawFormattedText();
void RenderTabList(int dStyle);
void SetSelectedItem(int item, const char *text);
int GetSelectedItem();
const char *GetSelectedItemText();
void ResetSelectedItem();
void SetupDialogStyles();
void DetectDialogTouchDown();
bool DetectDialogDoubleTap(int item);
public:
bool m_bIsActive;
uint8_t m_byteDialogStyle;
uint16_t m_wDialogID;
char m_utf8Title[64*3 + 1];
char* m_putf8Info;
char* m_pszInfo;
char m_utf8Button1[64*3 + 1];
char m_utf8Button2[64*3 + 1];
float m_fSizeX;
float m_fSizeY;
int m_bSL;
uint8_t m_iSelectedItem;
std::string m_strSelectedItemText;
int m_iNumberOfTaps;
uint32_t m_lastTimeTap;
uint32_t m_touchDownTime;
bool m_bSplitted;
};