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
|
#ifndef SAW_UNIX_XCB
#error "XCB is not supported"
#endif
#include "xcb.h"
namespace saw {
device::device(::Display* disp, int screen, xcb_connection_t *xcb_connection, xcb_screen_t *xcb_screen, own<input_stream>&& an):
display_{disp}, screen_{screen}, xcb_connection_{xcb_connection}, xcb_screen_{xcb_screen}, async_notifier_{std::move(an)}
{
// TODO
}
device::~device(){
// TODO
}
void device::xcb_window_was_destroyed(xcb_window_t window_id){
// TODO
}
void device::handle_events(){
// TODO
}
own<window> device::create_window(const video_mode& vid_mode, std::string_view title_view){
// TODO
}
void device::flush(){
// TODO
}
window::window(device& dev_, xcb_window_t xcb_win, xcb_colormap_t xcb_colormap_, const video_mode& vid_mode_, std::string_view& title_view):
device_{&dev_},
xcb_window_{xcb_win},
xcb_colormap_{xcb_colormap_},
video_mode_{vid_mode_},
window_title_{tile_view_}
{
// TODO
}
window::~window(){
// TODO
}
void window::show(){
// TODO
}
void window::hide(){
// TODO
}
}
|