QCAD Application Framework
CAD Application Development and Automation.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
qtscriptshell_QGLPixelBuffer.h
Go to the documentation of this file.
1 #ifndef QTSCRIPTSHELL_QGLPIXELBUFFER_H
2 #define QTSCRIPTSHELL_QGLPIXELBUFFER_H
3 
4 #include <qglpixelbuffer.h>
5 
6 #include <QtScript/qscriptvalue.h>
7 
8 class QtScriptShell_QGLPixelBuffer : public QGLPixelBuffer
9 {
10 public:
11  QtScriptShell_QGLPixelBuffer(const QSize& size, const QGLFormat& format = QGLFormat::defaultFormat(), QGLWidget* shareWidget = 0);
12  QtScriptShell_QGLPixelBuffer(int width, int height, const QGLFormat& format = QGLFormat::defaultFormat(), QGLWidget* shareWidget = 0);
14 
15  int devType() const;
16  int metric(QPaintDevice::PaintDeviceMetric metric) const;
17  QPaintEngine* paintEngine() const;
18 
19  QScriptValue __qtscript_self;
20 };
21 
22 #endif // QTSCRIPTSHELL_QGLPIXELBUFFER_H