Files
86Box/src/qt/qt_renderercomon.hpp

22 lines
396 B
C++
Raw Normal View History

2021-12-07 13:47:42 +01:00
#pragma once
#include <QRect>
#include <QImage>
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
};