aboutsummaryrefslogtreecommitdiff
path: root/include/gui/Page.hpp
blob: a5cfaf95c0d0a1062a84fe00b41826e9ff1dad00 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#pragma once

#include "Widget.hpp"
#include <vector>
#include <memory>

namespace gsr {
    class Page : public Widget {
    public:
        Page() = default;
        Page(const Page&) = delete;
        Page& operator=(const Page&) = delete;
        virtual ~Page() = default;

        void add_widget(std::unique_ptr<Widget> widget);
    protected:
        std::vector<std::unique_ptr<Widget>> widgets;
    };
}