forked from sirjuddington/SLADE
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathUI.h
47 lines (42 loc) · 890 Bytes
/
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
#pragma once
namespace UI
{
// General
void init(double scale = 1.);
// Splash Window
void enableSplash(bool enable);
void showSplash(string message, bool progress = false, wxWindow* parent = nullptr);
void hideSplash();
void updateSplash();
float getSplashProgress();
void setSplashMessage(string message);
void setSplashProgressMessage(string message);
void setSplashProgress(float progress);
// Mouse Cursor
enum class MouseCursor
{
Normal,
Hand,
Move,
Cross,
SizeNS,
SizeWE,
SizeNESW,
SizeNWSE
};
void setCursor(wxWindow* window, MouseCursor cursor);
// Pixel spacing and scaling
enum class Size
{
PadLarge,
Pad,
PadMinimum,
Splitter,
SpinCtrlWidth
};
double scaleFactor();
int px(Size size);
int scalePx(int px);
int pad(); // Shortcut for UI::px(UI::Size::Pad)
int padLarge(); // Shortcut for UI::px(UI::Size::PadLarge)
}