blob: 459715842dd0ecf99074bcf10834f25eeb1a13a7 (
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
29
30
31
32
33
34
35
36
|
#pragma once
// ReSharper disable once CppUnusedIncludeDirective
#include "pre.hpp"
#include <initializer_list>
#include "ui/control.hpp"
namespace cru::ui::controls
{
class FrameLayout : public Control
{
public:
static constexpr auto control_type = L"FrameLayout";
static FrameLayout* Create(const std::initializer_list<Control*>& children = std::initializer_list<Control*>{})
{
const auto layout = new FrameLayout();
for (auto child : children)
layout->AddChild(child);
return layout;
}
protected:
FrameLayout();
public:
FrameLayout(const FrameLayout& other) = delete;
FrameLayout(FrameLayout&& other) = delete;
FrameLayout& operator=(const FrameLayout& other) = delete;
FrameLayout& operator=(FrameLayout&& other) = delete;
~FrameLayout() override;
StringView GetControlType() const override final;
};
}
|