diff options
author | Claudius "keldu" Holeksa <mail@keldu.de> | 2023-08-23 01:04:43 +0200 |
---|---|---|
committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2023-08-23 01:04:43 +0200 |
commit | 5dd004464d37c3f0e334423588bc9d140b573255 (patch) | |
tree | 4be38f8f6871f4f138cd200ba2aae54776ff8395 /c++/window | |
parent | a48d7e46fdb17b968960c9760209324322f22979 (diff) |
c++,window: Implemented missing functions
Diffstat (limited to 'c++/window')
-rw-r--r-- | c++/window/xcb.cpp | 4 | ||||
-rw-r--r-- | c++/window/xcb.h | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/c++/window/xcb.cpp b/c++/window/xcb.cpp index dac5271..422a0b6 100644 --- a/c++/window/xcb.cpp +++ b/c++/window/xcb.cpp @@ -264,5 +264,9 @@ void window<backend::linux_xcb>::keyboard_event(int16_t x, int16_t y, uint32_t k assert(false); } +xcb_window_t window<backend::linux_xcb>::get_xcb_window_handle() const{ + return xcb_window_; +} + } } diff --git a/c++/window/xcb.h b/c++/window/xcb.h index 0457b58..fd9532b 100644 --- a/c++/window/xcb.h +++ b/c++/window/xcb.h @@ -98,6 +98,9 @@ public: void mouse_event(int16_t x, int16_t y, uint16_t state, bool pressed); void mouse_move_event(int16_t x, int16_t y); void keyboard_event(int16_t x, int16_t y, uint32_t keycode, bool pressed, bool repeat); + + // XCB specific things + xcb_window_t get_xcb_window_handle() const; }; } } |