Duckstation/src/core/fullscreen_ui.h

50 lines
1.1 KiB
C
Raw Normal View History

// SPDX-FileCopyrightText: 2019-2023 Connor McLaughlin <stenzek@gmail.com>
// SPDX-License-Identifier: (GPL-3.0 OR CC-BY-NC-ND-4.0)
2021-01-30 11:37:49 +00:00
#pragma once
#include "common/progress_callback.h"
2021-01-30 11:37:49 +00:00
#include "common/types.h"
#include <functional>
#include <memory>
#include <string>
#include <string_view>
2021-01-30 11:37:49 +00:00
2023-09-20 13:49:14 +00:00
class SmallStringBase;
2021-01-30 11:37:49 +00:00
struct Settings;
2021-01-30 11:37:49 +00:00
namespace FullscreenUI {
bool Initialize();
bool IsInitialized();
2021-01-30 11:37:49 +00:00
bool HasActiveWindow();
void CheckForConfigChanges(const Settings& old_settings);
void OnSystemStarted();
void OnSystemPaused();
void OnSystemResumed();
void OnSystemDestroyed();
void OnRunningGameChanged();
2023-10-31 15:32:29 +00:00
#ifndef __ANDROID__
void OpenPauseMenu();
2023-09-18 12:29:47 +00:00
void OpenAchievementsWindow();
2023-09-07 10:13:48 +00:00
bool IsAchievementsWindowOpen();
2023-09-18 12:29:47 +00:00
void OpenLeaderboardsWindow();
2023-09-07 10:13:48 +00:00
bool IsLeaderboardsWindowOpen();
void ReturnToMainWindow();
2023-09-18 12:29:47 +00:00
void ReturnToPreviousWindow();
2023-10-31 15:32:29 +00:00
#endif
2021-01-30 11:37:49 +00:00
void Shutdown();
void Render();
2022-09-09 10:32:21 +00:00
void InvalidateCoverCache();
2023-09-20 13:49:14 +00:00
void TimeToPrintableString(SmallStringBase* str, time_t t);
2021-01-30 11:37:49 +00:00
} // namespace FullscreenUI
// Host UI triggers from Big Picture mode.
namespace Host {
void OnCoverDownloaderOpenRequested();
} // namespace Host