1/*
2 * Copyright (C) 2020-2022 The opuntiaOS Project Authors.
3 * + Contributed by Nikita Melekhin <nimelehin@gmail.com>
4 *
5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file.
7 */
8
9#pragma once
10
11#include "../Target/Generic/Window.h"
12
13namespace WinServer {
14
15class SystemApp {
16public:
17 SystemApp() = default;
18 ~SystemApp() = default;
19
20 void set_window(Window* win) { m_window = win; }
21 Window* window() { return m_window; }
22 const Window* window() const { return m_window; }
23
24 bool has_value() const { return !!m_window; }
25 operator bool() const { return has_value(); }
26
27private:
28 bool visible;
29 Window* m_window {};
30};
31
32}