diff options
author | Yuqian Yang <crupest@crupest.life> | 2025-09-09 19:10:14 +0800 |
---|---|---|
committer | Yuqian Yang <crupest@crupest.life> | 2025-09-09 19:10:14 +0800 |
commit | f761d4ef25ab0e695c79ae5c2ede1f850f1607af (patch) | |
tree | e6b674fd33d7ef3660e8c114473aa290ea3c3a4c /include/cru/platform/gui/xcb/UiApplication.h | |
parent | 2f1ea611385b5bf8985a5b0571eb71976b9a8e52 (diff) | |
download | cru-f761d4ef25ab0e695c79ae5c2ede1f850f1607af.tar.gz cru-f761d4ef25ab0e695c79ae5c2ede1f850f1607af.tar.bz2 cru-f761d4ef25ab0e695c79ae5c2ede1f850f1607af.zip |
Develop some xcb window.
Diffstat (limited to 'include/cru/platform/gui/xcb/UiApplication.h')
-rw-r--r-- | include/cru/platform/gui/xcb/UiApplication.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/cru/platform/gui/xcb/UiApplication.h b/include/cru/platform/gui/xcb/UiApplication.h index 42d63609..3fce8efa 100644 --- a/include/cru/platform/gui/xcb/UiApplication.h +++ b/include/cru/platform/gui/xcb/UiApplication.h @@ -17,8 +17,14 @@ class XcbUiApplication : public XcbResource, public virtual IUiApplication { XcbUiApplication(); ~XcbUiApplication(); + public: void CheckXcbConnectionError(); + xcb_connection_t* GetXcbConnection(); + + // This API is weird, but before we have correct screen API, we still use it. + xcb_screen_t* GetFirstXcbScreen(); + public: int Run() override; void RequestQuit(int quit_code) override; @@ -66,7 +72,7 @@ class XcbUiApplication : public XcbResource, public virtual IUiApplication { void UnregisterWindow(XcbWindow* window); private: - xcb_connection_t* xcb_; + xcb_connection_t* xcb_connection_; xcb_screen_t* screen_; cru::platform::unix::UnixEventLoop event_loop_; |