all repos — mgba @ 4fb121bbe0e78bb664f19c463518c0513ee4d196

mGBA Game Boy Advance Emulator

src/platform/qt/Display.h (view raw)

 1/* Copyright (c) 2013-2015 Jeffrey Pfau
 2 *
 3 * This Source Code Form is subject to the terms of the Mozilla Public
 4 * License, v. 2.0. If a copy of the MPL was not distributed with this
 5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 6#ifndef QGBA_DISPLAY
 7#define QGBA_DISPLAY
 8
 9#include <QWidget>
10
11struct GBAThread;
12
13namespace QGBA {
14
15class Display : public QWidget {
16Q_OBJECT
17
18public:
19	Display(QWidget* parent = nullptr);
20
21public slots:
22	virtual void startDrawing(const uint32_t* buffer, GBAThread* context) = 0;
23	virtual void stopDrawing() = 0;
24	virtual void pauseDrawing() = 0;
25	virtual void unpauseDrawing() = 0;
26	virtual void forceDraw() = 0;
27	virtual void lockAspectRatio(bool lock) = 0;
28	virtual void filter(bool filter) = 0;
29#ifdef USE_PNG
30	virtual void screenshot() = 0;
31#endif
32};
33
34}
35
36#endif