42 #include <private/qgraphicssystem_runtime_p.h> 43 #include <private/qgraphicssystem_raster_p.h> 44 #include <private/qgraphicssystemfactory_p.h> 45 #include <private/qapplication_p.h> 46 #include <private/qwidget_p.h> 47 #include <QtCore/QDebug> 48 #include <QtCore/QTimer> 49 #include <QtGui/QBitmap> 128 Qt::ImageConversionFlags flags)
137 Qt::ImageConversionFlags flags)
147 Qt::ImageConversionFlags flags)
236 #if defined(Q_OS_SYMBIAN) 237 void* QRuntimePixmapData::toNativeType(NativeType
type)
239 return m_data->toNativeType(type);
242 void QRuntimePixmapData::fromNativeType(
void *pixmap, NativeType type)
244 m_data->fromNativeType(pixmap, type);
280 qDebug() <<
"QRuntimeWindowSurface::flush() - destroy pending window surface";
328 : m_windowSurfaceDestroyPolicy(DestroyImmediately),
336 #ifdef QT_DEFAULT_RUNTIME_SYSTEM 380 qDebug() <<
"QRuntimeGraphicsSystem::setGraphicsSystem( " << name <<
" )";
428 #include "qgraphicssystem_runtime.moc" virtual QPixmapData * createCompatiblePixmapData() const
The QColor class provides colors based on RGB, HSV or CMYK values.
virtual bool fromFile(const QString &filename, const char *format, Qt::ImageConversionFlags flags)
QRect geometry() const
Returns the currently allocated area on the screen.
virtual QPixmapData * createCompatiblePixmapData() const
virtual QPixmap transformed(const QTransform &matrix, Qt::TransformationMode mode) const
virtual QPixmap grabWidget(const QWidget *widget, const QRect &rectangle=QRect()) const
Returns a QPixmap generated from the part of the backing store corresponding to widget.
Q_CORE_EXPORT QByteArray qgetenv(const char *varName)
static QString fromLocal8Bit(const char *, int size=-1)
Returns a QString initialized with the first size characters of the 8-bit string str.
QScopedPointer< QWindowSurface > m_pendingWindowSurface
virtual QPixmapData * runtimeData() const
#define QT_END_NAMESPACE
This macro expands to.
QPointer< QWidget > widget
QRuntimeWindowSurface(const QRuntimeGraphicsSystem *gs, QWidget *window)
void removePixmapData(QRuntimePixmapData *pixmapData) const
virtual bool scroll(const QRegion &area, int dx, int dy)
Scrolls the given area dx pixels to the right and dy downward; both dx and dy may be negative...
const QRuntimeGraphicsSystem * m_graphicsSystem
virtual QPixmapData * runtimeData() const
virtual void fill(const QColor &color)=0
virtual QImage toImage() const
const QRuntimeGraphicsSystem * m_graphicsSystem
QRuntimeGraphicsSystem * m_graphicsSystem
QList< QRuntimeWindowSurface * > m_windowSurfaces
T * take()
Returns the value of the pointer referenced by this object.
virtual QPoint offset(const QWidget *widget) const
Returns the offset of widget in the coordinates of this window surface.
virtual void copy(const QPixmapData *data, const QRect &rect)
void setGraphicsSystem(const QString &name)
virtual void resize(int width, int height)=0
virtual void setGeometry(const QRect &rect)
Sets the currently allocated area to be the given rect.
virtual QPoint offset(const QWidget *widget) const
Returns the offset of widget in the coordinates of this window surface.
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
virtual QPaintEngine * paintEngine() const =0
virtual QPaintEngine * paintEngine() const
The QString class provides a Unicode character string.
virtual QWindowSurface * createWindowSurface(QWidget *widget) const =0
virtual int metric(QPaintDevice::PaintDeviceMetric metric) const
The QObject class is the base class of all Qt objects.
virtual QBitmap mask() const
virtual WindowSurfaceFeatures features() const
virtual bool fromData(const uchar *buffer, uint len, const char *format, Qt::ImageConversionFlags flags)
QString m_graphicsSystemName
virtual bool fromFile(const QString &filename, const char *format, Qt::ImageConversionFlags flags)
virtual void beginPaint(const QRegion &)
This function is called before painting onto the surface begins, with the region in which the paintin...
virtual QImage * buffer()
virtual QPixmap grabWidget(const QWidget *widget, const QRect &rectangle=QRect()) const
Returns a QPixmap generated from the part of the backing store corresponding to widget.
virtual bool hasAlphaChannel() const
Q_CORE_EXPORT void qDebug(const char *,...)
PixelType pixelType() const
virtual QPixmap alphaChannel() const
The QBitmap class provides monochrome (1-bit depth) pixmaps.
virtual QImage toImage() const =0
#define QT_BEGIN_NAMESPACE
This macro expands to.
virtual QPixmap transformed(const QTransform &matrix, Qt::TransformationMode mode) const
static QGraphicsSystem * create(const QString &)
static bool isEmpty(const char *str)
int lastIndexOf(const T &t, int from=-1) const
Returns the index position of the last occurrence of value in the list, searching backward from index...
virtual void flush(QWidget *widget, const QRegion ®ion, const QPoint &offset)=0
Flushes the given region from the specified widget onto the screen.
QWindowSurface * createWindowSurface(QWidget *widget) const
virtual void setAlphaChannel(const QPixmap &alphaChannel)
virtual bool fromData(const uchar *buffer, uint len, const char *format, Qt::ImageConversionFlags flags)
virtual void fromImage(const QImage &image, Qt::ImageConversionFlags flags)=0
static int qt_pixmap_serial
const T & at(int i) const
Returns the item at index position i in the list.
The QImage class provides a hardware-independent image representation that allows direct access to th...
static const char * data(const QByteArray &arr)
virtual QBitmap mask() const
virtual int metric(QPaintDevice::PaintDeviceMetric metric) const =0
The QRegion class specifies a clip region for a painter.
virtual void setMask(const QBitmap &mask)
static bool runtime_graphics_system
The QPaintEngine class provides an abstract definition of how QPainter draws to a given device on a g...
static QString graphics_system_name
virtual void flush(QWidget *widget, const QRegion ®ion, const QPoint &offset)
Flushes the given region from the specified widget onto the screen.
The QWindowSurface class provides the drawing area for top-level windows.
void reset(T *other=0)
Deletes the existing object it is pointing to if any, and sets its pointer to other.
virtual bool hasAlphaChannel() const =0
QPixmapData * createPixmapData(QPixmapData::PixelType type) const
virtual QPaintDevice * paintDevice()
Implement this function to return the appropriate paint device.
QGraphicsSystem * m_graphicsSystem
virtual void setGeometry(const QRect &rect)
Sets the currently allocated area to be the given rect.
QList< QRuntimePixmapData * > m_pixmapDatas
bool isNull() const
Returns true if this string is null; otherwise returns false.
virtual QPixmap alphaChannel() const
QString m_graphicsSystemName
virtual void endPaint(const QRegion &)
This function is called after painting onto the surface has ended, with the region in which the paint...
friend class QRuntimeWindowSurface
virtual void endPaint(const QRegion &)
This function is called after painting onto the surface has ended, with the region in which the paint...
friend class QRuntimePixmapData
virtual bool scroll(int dx, int dy, const QRect &rect)
The QPoint class defines a point in the plane using integer precision.
bool singleShot
This static function calls a slot after a given time interval.
int size() const
Returns the number of items in the list.
virtual QImage * buffer(const QWidget *widget)
Returns a QImage pointer which represents the actual buffer the widget is drawn into or 0 if this is ...
int windowSurfaceDestroyPolicy() const
virtual void copy(const QPixmapData *data, const QRect &rect)
The QRect class defines a rectangle in the plane using integer precision.
static QGraphicsSystem * graphics_system
virtual QImage * buffer(const QWidget *widget)
Returns a QImage pointer which represents the actual buffer the widget is drawn into or 0 if this is ...
virtual void setMask(const QBitmap &mask)
The QPixmap class is an off-screen image representation that can be used as a paint device...
virtual QImage * buffer()
virtual void resize(int width, int height)
virtual void setAlphaChannel(const QPixmap &alphaChannel)
QRuntimePixmapData(const QRuntimeGraphicsSystem *gs, PixelType type)
QString m_pendingGraphicsSystemName
QScopedPointer< QWindowSurface > m_windowSurface
virtual QPixmapData * createPixmapData(QPixmapData::PixelType type) const =0
int m_windowSurfaceDestroyPolicy
void setSerialNumber(int serNo)
virtual void fill(const QColor &color)
virtual void beginPaint(const QRegion &)
This function is called before painting onto the surface begins, with the region in which the paintin...
virtual WindowSurfaceFeatures features() const
virtual bool scroll(const QRegion &area, int dx, int dy)
Scrolls the given area dx pixels to the right and dy downward; both dx and dy may be negative...
void deleteLater()
Schedules this object for deletion.
QWidget * window() const
Returns a pointer to the top-level window associated with this surface.
virtual bool scroll(int dx, int dy, const QRect &rect)
QDeferredGraphicsSystemChange(QRuntimeGraphicsSystem *gs, const QString &graphicsSystemName)
void removeWindowSurface(QRuntimeWindowSurface *windowSurface) const
virtual QPaintDevice * paintDevice()=0
Implement this function to return the appropriate paint device.
static int area(const QSize &s)
virtual void fromImage(const QImage &image, Qt::ImageConversionFlags flags)
void removeAt(int i)
Removes the item at index position i.