2012-07-28 23:26:10 +00:00
|
|
|
/*
|
|
|
|
* SkRasterWidget.h
|
|
|
|
*
|
|
|
|
* Created on: Jul 28, 2012
|
|
|
|
* Author: chudy
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef SKRASTERWIDGET_H_
|
|
|
|
#define SKRASTERWIDGET_H_
|
|
|
|
|
2015-01-14 06:49:02 +00:00
|
|
|
#include "SkSurface.h"
|
|
|
|
class SkDebugger;
|
2013-02-13 13:26:13 +00:00
|
|
|
|
2012-07-28 23:26:10 +00:00
|
|
|
#include <QWidget>
|
|
|
|
|
|
|
|
class SkRasterWidget : public QWidget {
|
2012-08-03 17:32:05 +00:00
|
|
|
Q_OBJECT
|
2012-07-28 23:26:10 +00:00
|
|
|
|
|
|
|
public:
|
2012-08-07 16:12:23 +00:00
|
|
|
SkRasterWidget(SkDebugger* debugger);
|
2012-07-28 23:26:10 +00:00
|
|
|
|
2015-01-14 06:49:02 +00:00
|
|
|
void updateImage();
|
2012-07-28 23:26:10 +00:00
|
|
|
|
2012-08-03 17:32:05 +00:00
|
|
|
signals:
|
|
|
|
void drawComplete();
|
|
|
|
|
2012-07-28 23:26:10 +00:00
|
|
|
protected:
|
|
|
|
void paintEvent(QPaintEvent* event);
|
|
|
|
|
|
|
|
void resizeEvent(QResizeEvent* event);
|
|
|
|
|
|
|
|
private:
|
2012-08-07 16:12:23 +00:00
|
|
|
SkDebugger* fDebugger;
|
2015-01-14 06:49:02 +00:00
|
|
|
SkAutoTUnref<SkSurface> fSurface;
|
|
|
|
bool fNeedImageUpdate;
|
2012-07-28 23:26:10 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* SKRASTERWIDGET_H_ */
|