skia2/debugger/QT/SkRasterWidget.h
2012-08-07 16:12:23 +00:00

48 lines
719 B
C++

/*
* SkRasterWidget.h
*
* Created on: Jul 28, 2012
* Author: chudy
*/
#ifndef SKRASTERWIDGET_H_
#define SKRASTERWIDGET_H_
#include "SkGpuDevice.h"
#include "SkDevice.h"
#include "SkDebugger.h"
#include <QApplication>
#include <QtGui>
#include <QWidget>
class SkRasterWidget : public QWidget {
Q_OBJECT
public:
SkRasterWidget(SkDebugger* debugger);
~SkRasterWidget();
void draw() {
this->update();
}
signals:
void drawComplete();
protected:
void paintEvent(QPaintEvent* event);
void resizeEvent(QResizeEvent* event);
private:
SkBitmap fBitmap;
SkDebugger* fDebugger;
SkCanvas* fCanvas;
SkDevice* fDevice;
};
#endif /* SKRASTERWIDGET_H_ */