-
-
Notifications
You must be signed in to change notification settings - Fork 246
Expand file tree
/
Copy pathapi.h
More file actions
36 lines (29 loc) · 868 Bytes
/
api.h
File metadata and controls
36 lines (29 loc) · 868 Bytes
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
#ifndef _BDW_API_
#define _BDW_API_
#include "./common.h"
#include "./api_impl.h"
typedef GtkWindow* (*TGetAppWindowHandle)();
GtkWindow* getAppWindowHandle();
namespace bitsdojo_window {
typedef struct _BDWAPI {
TGetAppWindowHandle getAppWindowHandle;
TGetScreenRect getScreenRect;
TGetScaleFactor getScaleFactor;
TGetPosition getPosition;
TSetPosition setPosition;
TGetSize getSize;
TSetSize setSize;
TSetRect setRect;
TSetMinSize setMinSize;
TSetMaxSize setMaxSize;
TShowWindow showWindow;
THideWindow hideWindow;
TMinimizeWindow minimizeWindow;
TMaximizeWindow maximizeWindow;
TUnmaximizeWindow unmaximizeWindow;
TSetWindowTitle setWindowTitle;
TSetTopmost setTopmost;
} BDWAPI;
} // namespace bitsdojo_window
BDW_EXPORT bitsdojo_window::BDWAPI* bitsdojo_window_api();
#endif // _BDW_API_