Possible to create a vector or another container of Window.

This commit is contained in:
Pcornat 2022-06-09 22:16:23 +02:00
parent e17764dc88
commit 7d1a0473ff
Signed by: Pcornat
GPG Key ID: 2F3932FF46D9ECA0

View File

@ -19,6 +19,8 @@ namespace gui {
public: public:
Window(); Window();
Window(Window &&window) noexcept: wwindow(std::move(window.wwindow)) {}
~Window() noexcept = default; ~Window() noexcept = default;
[[nodiscard]] const std::unique_ptr<GLFWwindow, decltype(&delete_glfw_window)> &get_window() const { return wwindow; } [[nodiscard]] const std::unique_ptr<GLFWwindow, decltype(&delete_glfw_window)> &get_window() const { return wwindow; }