aboutsummaryrefslogtreecommitdiff
path: root/src/theme_builder/components/MainWindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/theme_builder/components/MainWindow.cpp')
-rw-r--r--src/theme_builder/components/MainWindow.cpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/theme_builder/components/MainWindow.cpp b/src/theme_builder/components/MainWindow.cpp
new file mode 100644
index 00000000..3d521d44
--- /dev/null
+++ b/src/theme_builder/components/MainWindow.cpp
@@ -0,0 +1,19 @@
+#include "MainWindow.hpp"
+
+namespace cru::theme_builder {
+using namespace cru::ui;
+using namespace cru::ui::controls;
+using namespace cru::platform::gui;
+
+MainWindow::MainWindow() {
+ window_ = Window::Create();
+ window_->GetNativeWindow()->SetTitle(u"CruUI Theme Builder");
+}
+
+MainWindow::~MainWindow() { delete window_; }
+
+void MainWindow::Show() {
+ window_->GetNativeWindow()->SetVisibility(WindowVisibilityType::Show);
+ window_->GetNativeWindow()->SetToForeground();
+}
+} // namespace cru::theme_builder