blob: 4cbc3791bd28748e54ccdd4ce0cd61ad518f126c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#pragma once
#include "../Base.hpp"
namespace cru::ui::components {
// In destructor, component should check all owned controls whether it is
// attached to window, if not, destroy them, otherwise it is host's duty to
// destroy them.
class CRU_UI_API Component : public Object {
public:
Component() = default;
CRU_DELETE_COPY(Component)
CRU_DELETE_MOVE(Component)
~Component() = default;
virtual controls::Control* GetRootControl() = 0;
};
} // namespace cru::ui::components
|