forked from ares-emulator/ares
-
Notifications
You must be signed in to change notification settings - Fork 0
/
window.hpp
65 lines (58 loc) · 2.17 KB
/
window.hpp
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
#if defined(Hiro_Window)
namespace hiro {
struct pWindow : pObject {
Declare(Window, Object)
auto append(sMenuBar menuBar) -> void;
auto append(sSizable sizable) -> void;
auto append(sStatusBar statusBar) -> void;
auto focused() const -> bool override;
auto frameMargin() const -> Geometry;
auto handle() const -> uintptr;
auto monitor() const -> u32;
auto remove(sMenuBar menuBar) -> void;
auto remove(sSizable sizable) -> void;
auto remove(sStatusBar statusBar) -> void;
auto setBackgroundColor(Color color) -> void;
auto setDismissable(bool dismissable) -> void;
auto setDroppable(bool droppable) -> void;
auto setEnabled(bool enabled) -> void override;
auto setFocused() -> void override;
auto setFullScreen(bool fullScreen) -> void;
auto setGeometry(Geometry geometry) -> void;
auto setMaximized(bool maximized) -> void;
auto setMaximumSize(Size size) -> void;
auto setMinimized(bool minimized) -> void;
auto setMinimumSize(Size size) -> void;
auto setModal(bool modal) -> void;
auto setResizable(bool resizable) -> void;
auto setTitle(const string& title) -> void;
auto setVisible(bool visible) -> void override;
auto _append(mWidget& widget) -> void;
auto _append(mMenu& menu) -> void;
auto _menuHeight() const -> s32;
auto _menuTextHeight() const -> s32;
auto _setIcon(const string& basename) -> bool;
auto _setMenuEnabled(bool enabled) -> void;
auto _setMenuFont(const Font& font) -> void;
auto _setMenuVisible(bool visible) -> void;
auto _setStatusEnabled(bool enabled) -> void;
auto _setStatusFont(const Font& font) -> void;
auto _setStatusText(const string& text) -> void;
auto _setStatusVisible(bool visible) -> void;
auto _statusHeight() const -> s32;
auto _statusTextHeight() const -> s32;
auto _synchronizeGeometry() -> void;
auto _synchronizeMargin() -> void;
auto _synchronizeState() -> void;
GtkWidget* widget = nullptr;
GtkWidget* menuContainer = nullptr;
GtkWidget* formContainer = nullptr;
GtkWidget* statusContainer = nullptr;
GtkWidget* gtkMenu = nullptr;
GtkWidget* gtkStatus = nullptr;
GtkAllocation lastMove = {};
GtkAllocation lastSize = {};
bool screenSaver = true;
};
}
#endif