diff options
| author | Yuqian Yang <crupest@crupest.life> | 2025-11-27 20:44:30 +0800 |
|---|---|---|
| committer | Yuqian Yang <crupest@crupest.life> | 2025-11-27 20:44:30 +0800 |
| commit | 06cded30294ac02a78ede7083eaf769c772a0ed1 (patch) | |
| tree | c6bba0ac4377b0ea8350d59f5a7f5e9113e3fa1f /include/cru/platform/gui/sdl/Window.h | |
| parent | b0be1fbc5b615141d6c2104624bd4b68dc52371f (diff) | |
| download | cru-06cded30294ac02a78ede7083eaf769c772a0ed1.tar.gz cru-06cded30294ac02a78ede7083eaf769c772a0ed1.tar.bz2 cru-06cded30294ac02a78ede7083eaf769c772a0ed1.zip | |
Impl title,parent,style flag of native window on sdl.
Diffstat (limited to 'include/cru/platform/gui/sdl/Window.h')
| -rw-r--r-- | include/cru/platform/gui/sdl/Window.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/cru/platform/gui/sdl/Window.h b/include/cru/platform/gui/sdl/Window.h index 98166128..0fd9b8e6 100644 --- a/include/cru/platform/gui/sdl/Window.h +++ b/include/cru/platform/gui/sdl/Window.h @@ -67,11 +67,20 @@ class SdlWindow : public SdlResource, public virtual INativeWindow { float GetDisplayScale(); Thickness GetBorderThickness(); + private: + void DoCreateWindow(); + void DoUpdateClientRect(); + void DoUpdateParent(); + void DoUpdateStyleFlag(); + void DoUpdateTitle(); + private: SdlUiApplication* application_; std::optional<SDL_Window*> sdl_window_; Rect client_rect_; SdlWindow* parent_; + EventHandlerRevokerGuard parent_create_guard_; WindowStyleFlag style_; + std::string title_; }; } // namespace cru::platform::gui::sdl |
