all repos — mgba @ e11d34d7617cd6f7c1da26dcb2d6bfbfbc5375e4

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(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	virtual void framePosted(const uint32_t*) = 0;
30};
31
32}
33
34#endif