summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/vi/display.h
blob: fceda75e3931b3b8d97c71d23d575beb5af46a94 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
// SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later

#pragma once

#include "core/hle/service/vi/vi_types.h"

namespace Service::VI {

class Display {
public:
    constexpr Display() = default;

    void Initialize(u64 id, const DisplayName& display_name) {
        m_id = id;
        m_display_name = display_name;
        m_is_initialized = true;
    }

    void Finalize() {
        m_id = {};
        m_display_name = {};
        m_is_initialized = {};
    }

    u64 GetId() const {
        return m_id;
    }

    const DisplayName& GetDisplayName() const {
        return m_display_name;
    }

    bool IsInitialized() const {
        return m_is_initialized;
    }

private:
    u64 m_id{};
    DisplayName m_display_name{};
    bool m_is_initialized{};
};

} // namespace Service::VI