aboutsummaryrefslogtreecommitdiff
path: root/src/theme_builder/components/MainWindow.h
blob: 101b678e6dee0c3190fe3f234b36ccf15b22f9f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#pragma once
#include "cru/ui/components/Component.h"
#include "cru/ui/controls/Button.h"
#include "cru/ui/controls/FlexLayout.h"
#include "cru/ui/controls/StackLayout.h"
#include "cru/ui/controls/Window.h"

namespace cru::theme_builder {
class MainWindow : public ui::components::Component {
 public:
  MainWindow();

  CRU_DELETE_COPY(MainWindow)
  CRU_DELETE_MOVE(MainWindow)

  ~MainWindow() override;

  ui::controls::Control* GetRootControl() override { return window_; }

  void Show();

 private:
  ui::controls::Window* window_;
  ui::controls::FlexLayout* main_layout_;
  ui::controls::StackLayout* preview_layout_;
  ui::controls::Button* preview_button_;
};
}  // namespace cru::theme_builder