-
Notifications
You must be signed in to change notification settings - Fork 3
/
ui.h
131 lines (113 loc) · 2.95 KB
/
ui.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
#pragma once
#include <Windows.h>
#include <vector>
namespace UI
{
extern int uiCommand;
extern WCHAR startingPath[FILENAME_MAX];
extern WCHAR lastPath[FILENAME_MAX];
extern HWND hWndMain;
extern HINSTANCE hInstance;
extern HWND hWndStatusBar;
extern int statusBarHeight;
extern int diskIconTimer, hddIconTimer;
extern bool mouseLocked;
extern int statusTimer;
extern WCHAR uiStatus[512];
extern WCHAR uiString[512];
extern bool fpsVisible, fpsCap, reloadROM, reloadIMG;
extern bool hideUI;
extern bool startFullscreen;
extern int oldPause;
extern bool ShowFileDlg(bool toSave, WCHAR* target, size_t max, const WCHAR* filter);
extern bool ReportLoadingFail(int messageId, int err, int device, const WCHAR* fileName, bool offerToForget = false);
extern void InsertDisk(int devId);
extern void EjectDisk(int devId);
extern WCHAR settingsFile[FILENAME_MAX];
extern FILE* logFile;
extern WCHAR* GetString(int stab);
extern void SetStatus(const WCHAR*);
extern void SetStatus(int);
extern void ResizeStatusBar();
extern void SetFPS(int fps);
extern void ShowOpenFileDialog(int, const WCHAR*);
extern void LetItSnow();
extern void Initialize();
extern void Update();
extern void ResetPath();
extern void SetTitle(const WCHAR*);
extern void Complain(int message);
extern void SaveINI();
extern void HideUI(bool hide);
namespace Presentation
{
extern HBRUSH hbrBack, hbrStripe, hbrList;
extern COLORREF rgbBack, rgbStripe, rgbText, rgbHeader, rgbList, rgbListBk;
extern HFONT headerFont, monoFont;
extern void DrawWindowBk(HWND hwndDlg, bool stripe);
extern void DrawWindowBk(HWND hwndDlg, bool stripe, PAINTSTRUCT* ps, HDC hdc);
extern void DrawCheckbox(HWND hwndDlg, LPNMCUSTOMDRAW dis);
extern bool DrawButton(HWND hwndDlg, LPNMCUSTOMDRAW dis);
extern bool DrawComboBox(LPDRAWITEMSTRUCT dis);
extern void GetIconPos(HWND hwndDlg, int ctlID, RECT* iconRect, int leftOffset, int topOffset, int size = 16);
namespace Windows10
{
extern bool IsWin10();
}
extern void SetThemeColors();
}
namespace Images
{
extern HIMAGELIST hIml;
extern HBITMAP GetImageListImage(int);
extern HBITMAP LoadPNGResource(int);
extern std::vector<unsigned char> LoadPNGResource(int, unsigned long *, unsigned long *);
}
namespace Tooltips
{
extern void Initialize();
extern void CreateTooltips(HWND hWndClient, ...);
extern void DestroyTooltips();
}
namespace About
{
extern void Show();
extern HWND hWnd;
}
namespace MemoryViewer
{
extern void Show();
extern HWND hWnd;
}
namespace Options
{
extern void Show();
extern HWND hWnd;
}
namespace DeviceManager
{
extern void UpdatePage(bool force);
extern void Show();
extern HWND hWnd;
}
namespace PalViewer
{
extern void Show();
extern HWND hWnd;
}
namespace TileViewer
{
extern void Show();
extern HWND hWnd;
}
namespace Shaders
{
extern void Show();
extern HWND hWnd;
}
namespace ButtonMaps
{
extern void Show();
extern HWND hWnd;
}
}