snes9x/qt/src/EmuCanvasQt.hpp

25 lines
498 B
C++
Raw Normal View History

2023-03-23 21:53:43 +00:00
#ifndef __EMU_CANVAS_QT_HPP
#define __EMU_CANVAS_QT_HPP
#include "EmuCanvas.hpp"
#include <QPainter>
2023-08-05 21:59:56 +00:00
#include <mutex>
2023-03-23 21:53:43 +00:00
class EmuCanvasQt : public EmuCanvas
{
public:
EmuCanvasQt(EmuConfig *config, QWidget *parent, QWidget *main_window);
~EmuCanvasQt();
virtual void deinit() override;
virtual void draw() override;
void paintEvent(QPaintEvent *event) override;
2023-07-13 23:00:16 +00:00
void resizeEvent(QResizeEvent *event) override;
2023-08-05 21:59:56 +00:00
std::mutex qimage_mutex;
QImage qimage;
2023-03-23 21:53:43 +00:00
};
#endif