Files
86Box/src/qt/qt_renderercomon.hpp

23 lines
414 B
C++
Raw Normal View History

2021-12-07 13:47:42 +01:00
#pragma once
#include <QRect>
#include <QImage>
2021-12-31 16:47:49 +06:00
#include <QEvent>
2021-12-07 13:47:42 +01:00
class QWidget;
class RendererCommon
{
public:
RendererCommon();
void onResize(int width, int height);
protected:
void onPaint(QPaintDevice* device);
bool eventDelegate(QEvent* event, bool& result);
2021-12-07 13:47:42 +01:00
QImage image{QSize(2048, 2048), QImage::Format_RGB32};
2021-12-07 13:47:42 +01:00
QRect source, destination;
QWidget* parentWidget{nullptr};
2021-12-07 13:47:42 +01:00
};