2023-11-26 12:11:18 +00:00
|
|
|
// SPDX-FileCopyrightText: 2019-2023 Connor McLaughlin <stenzek@gmail.com>
|
2024-05-26 12:30:34 +00:00
|
|
|
// SPDX-FileCopyrightText: 2019-2023 Connor McLaughlin <stenzek@gmail.com>
|
2022-12-04 11:03:45 +00:00
|
|
|
// SPDX-License-Identifier: (GPL-3.0 OR CC-BY-NC-ND-4.0)
|
|
|
|
|
2021-01-30 11:37:49 +00:00
|
|
|
#pragma once
|
2023-11-26 12:11:18 +00:00
|
|
|
|
2022-07-11 13:03:29 +00:00
|
|
|
#include "common/progress_callback.h"
|
2021-01-30 11:37:49 +00:00
|
|
|
#include "common/types.h"
|
2023-11-26 12:11:18 +00:00
|
|
|
|
|
|
|
#include <functional>
|
2021-08-09 13:56:17 +00:00
|
|
|
#include <memory>
|
2022-07-11 13:03:29 +00:00
|
|
|
#include <string>
|
2023-11-26 12:11:18 +00:00
|
|
|
#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
|
|
|
|
2022-09-21 12:58:18 +00:00
|
|
|
struct Settings;
|
|
|
|
|
2021-01-30 11:37:49 +00:00
|
|
|
namespace FullscreenUI {
|
2022-07-11 13:03:29 +00:00
|
|
|
bool Initialize();
|
2021-05-14 03:26:06 +00:00
|
|
|
bool IsInitialized();
|
2021-01-30 11:37:49 +00:00
|
|
|
bool HasActiveWindow();
|
2022-09-21 12:58:18 +00:00
|
|
|
void CheckForConfigChanges(const Settings& old_settings);
|
2022-07-11 13:03:29 +00:00
|
|
|
void OnSystemStarted();
|
|
|
|
void OnSystemPaused();
|
|
|
|
void OnSystemResumed();
|
|
|
|
void OnSystemDestroyed();
|
|
|
|
void OnRunningGameChanged();
|
2023-10-31 15:32:29 +00:00
|
|
|
|
|
|
|
#ifndef __ANDROID__
|
2022-07-11 13:03:29 +00:00
|
|
|
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();
|
2024-04-09 10:04:45 +00:00
|
|
|
void SetStandardSelectionFooterText(bool back_instead_of_cancel);
|
2023-10-31 15:32:29 +00:00
|
|
|
#endif
|
2021-06-21 02:10:49 +00:00
|
|
|
|
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-03-07 15:39:13 +00:00
|
|
|
|
2021-01-30 11:37:49 +00:00
|
|
|
} // namespace FullscreenUI
|
2024-01-20 10:09:32 +00:00
|
|
|
|
|
|
|
// Host UI triggers from Big Picture mode.
|
|
|
|
namespace Host {
|
2024-04-09 10:04:45 +00:00
|
|
|
/// Requests shut down and exit of the hosting application. This may not actually exit,
|
|
|
|
/// if the user cancels the shutdown confirmation.
|
|
|
|
void RequestExitApplication(bool allow_confirm);
|
|
|
|
|
|
|
|
/// Requests Big Picture mode to be shut down, returning to the desktop interface.
|
|
|
|
void RequestExitBigPicture();
|
|
|
|
|
|
|
|
/// Requests the cover downloader be opened.
|
2024-01-20 10:09:32 +00:00
|
|
|
void OnCoverDownloaderOpenRequested();
|
|
|
|
} // namespace Host
|