aboutsummaryrefslogtreecommitdiff
path: root/include/cru/platform/gui/sdl/Window.h
diff options
context:
space:
mode:
authorYuqian Yang <crupest@crupest.life>2025-11-27 20:44:30 +0800
committerYuqian Yang <crupest@crupest.life>2025-11-27 20:44:30 +0800
commit06cded30294ac02a78ede7083eaf769c772a0ed1 (patch)
treec6bba0ac4377b0ea8350d59f5a7f5e9113e3fa1f /include/cru/platform/gui/sdl/Window.h
parentb0be1fbc5b615141d6c2104624bd4b68dc52371f (diff)
downloadcru-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.h9
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