// Copyright (C) 2023 Jérôme "Lynix" Leclercq (lynix680@gmail.com) // This file is part of the "Nazara Engine - Platform module" // For conditions of distribution and use, see copyright notice in Config.hpp #pragma once #ifndef NAZARA_PLATFORM_APPWINDOWINGCOMPONENT_HPP #define NAZARA_PLATFORM_APPWINDOWINGCOMPONENT_HPP #include #include #include #include namespace Nz { class NAZARA_PLATFORM_API AppWindowingComponent : public ApplicationComponent { public: inline AppWindowingComponent(ApplicationBase& app); AppWindowingComponent(const AppWindowingComponent&) = delete; AppWindowingComponent(AppWindowingComponent&&) = delete; ~AppWindowingComponent() = default; template Window& CreateWindow(Args&&... args); inline void DisableQuitOnLastWindowClosed(); inline void EnableQuitOnLastWindowClosed(bool enable = true); inline bool IsQuitOnLastWindowClosedEnabled() const; void Update(Time elapsedTime) override; AppWindowingComponent& operator=(const AppWindowingComponent&) = delete; AppWindowingComponent& operator=(AppWindowingComponent&&) = delete; private: std::vector> m_windows; bool m_quitOnLastWindowClosed; }; } #include #endif // NAZARA_PLATFORM_APPWINDOWINGCOMPONENT_HPP