#pragma once

#include "GuiWidget.h"

#include <vector>
#include <memory>

namespace td {
namespace gui {

class GuiManager {
private:
	std::vector<std::unique_ptr<GuiWidget>> m_Widgets;
public:
	GuiManager() {}

	void RenderWidgets() {
		for (auto& widget : m_Widgets) {
			widget->Render();
		}
	}

	void AddWidget(std::unique_ptr<GuiWidget>&& widget) {
		m_Widgets.push_back(std::move(widget));
	}
};

} // namespace gui
} // namespace td
