From 5dd004464d37c3f0e334423588bc9d140b573255 Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Wed, 23 Aug 2023 01:04:43 +0200 Subject: c++,window: Implemented missing functions --- c++/window/xcb.cpp | 4 ++++ c++/window/xcb.h | 3 +++ 2 files changed, 7 insertions(+) (limited to 'c++/window') 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::keyboard_event(int16_t x, int16_t y, uint32_t k assert(false); } +xcb_window_t window::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; }; } } -- cgit v1.2.3