2014-10-04 19:12:15 +00:00
|
|
|
// Copyright 2014 Dolphin Emulator Project
|
2015-05-17 23:08:10 +00:00
|
|
|
// Licensed under GPLv2+
|
2014-10-04 19:12:15 +00:00
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2018-01-01 21:03:50 +00:00
|
|
|
#if defined(HAVE_XRANDR) && HAVE_XRANDR
|
|
|
|
#include <X11/extensions/Xrandr.h>
|
|
|
|
#endif
|
|
|
|
|
2014-10-04 19:12:15 +00:00
|
|
|
namespace UICommon
|
|
|
|
{
|
|
|
|
void Init();
|
|
|
|
void Shutdown();
|
|
|
|
|
2018-01-01 21:03:50 +00:00
|
|
|
#if defined(HAVE_XRANDR) && HAVE_XRANDR
|
|
|
|
void EnableScreenSaver(Display* display, Window win, bool enable);
|
|
|
|
#else
|
|
|
|
void EnableScreenSaver(bool enable);
|
|
|
|
#endif
|
|
|
|
|
2014-10-04 19:12:15 +00:00
|
|
|
void CreateDirectories();
|
2015-02-25 09:23:42 +00:00
|
|
|
void SetUserDirectory(const std::string& custom_path);
|
2014-10-04 19:12:15 +00:00
|
|
|
|
2017-06-24 19:41:53 +00:00
|
|
|
bool TriggerSTMPowerEvent();
|
|
|
|
|
2017-05-09 16:49:10 +00:00
|
|
|
void SaveWiimoteSources();
|
2017-12-31 19:33:36 +00:00
|
|
|
|
|
|
|
// Return a pretty file size string from byte count.
|
|
|
|
// e.g. 1134278 -> "1.08 MiB"
|
|
|
|
std::string FormatSize(u64 bytes);
|
2016-06-24 08:43:46 +00:00
|
|
|
} // namespace UICommon
|