ppsspp/Windows/MainWindow.h

88 lines
2.0 KiB
C
Raw Normal View History

2012-11-01 15:19:01 +00:00
#pragma once
2017-02-24 23:25:46 +00:00
#include "ppsspp_config.h"
#if !PPSSPP_PLATFORM(UWP)
#include "Common/CommonWindows.h"
#include "Core/System.h"
2015-09-19 12:43:50 +00:00
#include "MainWindowMenu.h"
2012-11-01 15:19:01 +00:00
2017-02-24 23:25:46 +00:00
2012-11-01 15:19:01 +00:00
namespace MainWindow
{
enum {
WM_USER_SAVESTATE_FINISH = WM_USER + 100,
WM_USER_UPDATE_UI = WM_USER + 101,
WM_USER_WINDOW_TITLE_CHANGED = WM_USER + 103,
WM_USER_TOGGLE_FULLSCREEN = WM_USER + 105,
WM_USER_RESTART_EMUTHREAD = WM_USER + 106,
WM_USER_SWITCHUMD_UPDATED = WM_USER + 107,
WM_USER_RUN_CALLBACK = WM_USER + 108,
};
enum {
FRAMESKIP_OFF = 0,
FRAMESKIP_1 = 1,
FRAMESKIP_2 = 2,
FRAMESKIP_3 = 3,
FRAMESKIP_4 = 4,
FRAMESKIP_5 = 5,
FRAMESKIP_6 = 6,
FRAMESKIP_7 = 7,
FRAMESKIP_8 = 8,
FRAMESKIP_MAX = FRAMESKIP_8,
2018-11-04 01:59:37 +00:00
FRAMESKIPTYPE_COUNT = 0,
FRAMESKIPTYPE_PRCNT = 1,
RESOLUTION_AUTO = 0,
RESOLUTION_NATIVE = 1,
RESOLUTION_2X = 2,
RESOLUTION_3X = 3,
RESOLUTION_4X = 4,
RESOLUTION_5X = 5,
RESOLUTION_6X = 6,
RESOLUTION_7X = 7,
RESOLUTION_8X = 8,
RESOLUTION_9X = 9,
RESOLUTION_MAX = 10,
TEXSCALING_OFF = 1,
TEXSCALING_2X = 2,
TEXSCALING_3X = 3,
TEXSCALING_4X = 4,
2013-07-30 07:52:05 +00:00
TEXSCALING_5X = 5,
TEXSCALING_MAX = TEXSCALING_5X,
};
2012-11-01 15:19:01 +00:00
void Init(HINSTANCE hInstance);
2014-07-17 04:06:52 +00:00
BOOL Show(HINSTANCE hInstance);
void CreateDisasmWindow();
void CreateGeDebuggerWindow();
void CreateMemoryWindow();
void CreateVFPUWindow();
void NotifyDebuggerMapLoaded();
void DestroyDebugWindows();
void UpdateMenus(bool isMenuSelect = false);
2013-05-13 08:08:10 +00:00
void UpdateCommands();
void UpdateSwitchUMD();
void SetWindowTitle(const wchar_t *title);
2012-11-01 15:19:01 +00:00
void Redraw();
HWND GetHWND();
HINSTANCE GetHInstance();
HWND GetDisplayHWND();
void ToggleFullscreen(HWND hWnd, bool goingFullscreen);
void Minimize();
void SendToggleFullscreen(bool fullscreen); // To be used off-thread
bool IsFullscreen();
void ToggleDebugConsoleVisibility();
void SetInternalResolution(int res = -1);
void SetWindowSize(int zoom);
void RunCallbackInWndProc(void (*callback)(void *window, void *userdata), void *userdata);
void SetKeepScreenBright(bool keepBright);
2012-11-01 15:19:01 +00:00
}
2017-02-24 23:25:46 +00:00
#endif