-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhui_windowcontrols__dummy.cc
More file actions
82 lines (71 loc) · 2.61 KB
/
hui_windowcontrols__dummy.cc
File metadata and controls
82 lines (71 loc) · 2.61 KB
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
// NOW, THIS JUST CODE APPENDED TO WEBVIEW
struct WindowControls::pImpl {};
WindowControls::WindowControls(void* backend, void* handle) {
std::cout<<"WindowControls::WindowControls"<<"\n\t"<<backend<<"\n\t"<<handle<<"\n";
}
WindowControls::~WindowControls() {
std::cout<<"WindowControls::~WindowControls"<<"\n";
}
void WindowControls::set_type(WindowType type) {
std::cout<<"WindowControls::set_type"<<"\n\t"<<type<<"\n";
}
WindowType WindowControls::get_type() {
std::cout<<"WindowControls::get_type"<<"\n";
return WT_TOPLEVEL_SSD;
}
void WindowControls::set_layer(WindowLayer layer) {
std::cout<<"WindowControls::set_layer"<<"\n\t"<<layer<<"\n";
}
WindowLayer WindowControls::get_layer() {
std::cout<<"WindowControls::get_layer"<<"\n";
return WL_TOP;
}
void WindowControls::set_geometry(WindowGeometry geometry) {
std::cout<<"WindowControls::set_geometry"<<"\n\t"<<geometry.state<<"\n\t"<<geometry.monitor<<"\n\t"<<geometry.width<<"\n\t"<<geometry.height<<"\n\t"<<geometry.left<<"\n\t"<<geometry.top<<"\n\t"<<geometry.right<<"\n\t"<<geometry.bottom<<"\n";
}
WindowGeometry WindowControls::get_geometry() {
std::cout<<"WindowControls::get_geometry"<<"\n";
return {};
}
void WindowControls::set_opacity(uint8_t opacity) {
std::cout<<"WindowControls::set_opacity"<<"\n\t"<<opacity<<"\n";
}
uint8_t WindowControls::get_opacity() {
std::cout<<"WindowControls::get_opacity"<<"\n";
return 100;
}
void WindowControls::set_id(std::string id) {
std::cout<<"WindowControls::set_id"<<"\n\t"<<id<<"\n";
}
std::string WindowControls::get_id() {
std::cout<<"WindowControls::get_id"<<"\n";
return "";
}
void WindowControls::set_title(std::string title) {
std::cout<<"WindowControls::set_title"<<"\n\t"<<title<<"\n";
}
std::string WindowControls::get_title() {
std::cout<<"WindowControls::get_title"<<"\n";
return "";
}
void WindowControls::set_exclusive_zone(int16_t zone) {
std::cout<<"WindowControls::set_exclusive_zone"<<"\n\t"<<zone<<"\n";
}
int16_t WindowControls::get_exclusive_zone() {
std::cout<<"WindowControls::get_exclusive_zone"<<"\n";
return 0;
}
void WindowControls::set_focused(bool activated) {
std::cout<<"WindowControls::set_focused"<<"\n\t"<<activated<<"\n";
}
bool WindowControls::get_focused() {
std::cout<<"WindowControls::get_focused"<<"\n";
return false;
}
void WindowControls::set_input_mode_keyboard(WindowInputMode mode) {
std::cout<<"WindowControls::set_input_mode_keyboard"<<"\n\t"<<mode<<"\n";
}
WindowInputMode WindowControls::get_input_mode_keyboard() {
std::cout<<"WindowControls::get_input_mode_keyboard"<<"\n";
return 0;
}