AppleWin/source/Frame.h

64 lines
1.7 KiB
C
Raw Normal View History

2006-02-25 20:50:29 +00:00
#pragma once
2010-12-18 20:55:55 +00:00
// 1.19.0.0 Hard Disk Status/Indicator Light
#define HD_LED 1
// Keyboard -- keystroke type
enum {NOT_ASCII=0, ASCII};
2006-02-25 20:50:29 +00:00
2008-08-31 04:31:35 +00:00
2006-07-02 09:56:50 +00:00
// Win32
2009-02-17 02:12:39 +00:00
extern HWND g_hFrameWindow;
2015-01-02 01:19:49 +00:00
extern int g_nViewportCX;
extern int g_nViewportCY;
extern BOOL g_bConfirmReboot; // saved PageConfig REGSAVE
extern BOOL g_bMultiMon;
2009-02-17 02:12:39 +00:00
2015-01-02 01:19:49 +00:00
2009-02-17 02:12:39 +00:00
// Emulator
extern bool g_bFreshReset;
extern std::string PathFilename[2];
2009-02-17 02:12:39 +00:00
extern bool g_bScrollLock_FullSpeed;
extern int g_nCharsetType;
2009-02-17 02:12:39 +00:00
// Prototypes
void CtrlReset();
void FrameCreateWindow(void);
2009-02-17 02:12:39 +00:00
HDC FrameGetDC ();
void FrameReleaseDC ();
void FrameRefreshStatus (int, bool bUpdateDiskStatus = true );
2009-02-17 02:12:39 +00:00
void FrameRegisterClass ();
void FrameSetCursorPosByMousePos();
int GetViewportScale(void);
int SetViewportScale(int nNewScale, bool bForce = false);
void GetViewportCXCY(int& nViewportCX, int& nViewportCY);
2016-03-21 23:48:02 +00:00
void FrameUpdateApple2Type(void);
bool GetBestDisplayResolutionForFullScreen(UINT& bestWidth, UINT& bestHeight, UINT userSpecifiedHeight=0);
2009-02-17 02:12:39 +00:00
bool IsFullScreen(void);
bool GetFullScreenShowSubunitStatus(void);
void SetFullScreenShowSubunitStatus(bool bShow);
void FrameDrawDiskLEDS( HDC hdc );
void FrameDrawDiskStatus( HDC hdc );
2014-07-22 01:21:31 +00:00
2009-02-17 02:12:39 +00:00
LRESULT CALLBACK FrameWndProc (
HWND window,
UINT message,
WPARAM wparam,
LPARAM lparam );
2016-07-26 21:33:45 +00:00
int GetFullScreenOffsetX(void);
int GetFullScreenOffsetY(void);
UINT GetFrameBufferBorderlessWidth(void);
UINT GetFrameBufferBorderlessHeight(void);
UINT GetFrameBufferBorderWidth(void);
UINT GetFrameBufferBorderHeight(void);
UINT GetFrameBufferWidth(void);
UINT GetFrameBufferHeight(void);
UINT Get3DBorderWidth(void);
UINT Get3DBorderHeight(void);