AppleWin/source/frontends/qt/qtframe.h
Andrea Odetti 9439b1b400 Incorporate VidHD fro AW.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-12-03 18:46:23 +00:00

39 lines
969 B
C++

#ifndef QTFRAME_H
#define QTFRAME_H
#include "linux/linuxframe.h"
#include <memory>
#include <QByteArray>
#include <QString>
class Emulator;
class QMdiSubWindow;
class QtFrame : public LinuxFrame
{
public:
QtFrame(Emulator * emulator, QMdiSubWindow * window);
void VideoPresentScreen() override;
void FrameRefreshStatus(int drawflags) override;
void Initialize(bool resetVideoState) override;
void Destroy() override;
int FrameMessageBox(LPCSTR lpText, LPCSTR lpCaption, UINT uType) override;
void GetBitmap(LPCSTR lpBitmapName, LONG cb, LPVOID lpvBits) override;
BYTE* GetResource(WORD id, LPCSTR lpType, DWORD expectedSize) override;
void SetForceRepaint(const bool force);
void SetZoom(const int x);
void Set43Ratio();
bool saveScreen(const QString & filename) const;
private:
Emulator * myEmulator;
QMdiSubWindow * myWindow;
bool myForceRepaint;
QByteArray myResource;
};
#endif // QTFRAME_H