Qt 4.8
Public Functions | Static Public Functions | List of all members
QGraphicsSystem Class Referenceabstract

#include <qgraphicssystem_p.h>

Inheritance diagram for QGraphicsSystem:
QCoreGraphicsSystem QGLGraphicsSystem QMeeGoGraphicsSystem QRasterGraphicsSystem QRuntimeGraphicsSystem QTraceGraphicsSystem QVGGraphicsSystem QWSGraphicsSystem ShivaVGGraphicsSystem

Public Functions

virtual QPixmapDatacreatePixmapData (QPixmapData::PixelType type) const =0
 
virtual QPixmapDatacreatePixmapData (QPixmapData *origin)
 
virtual QWindowSurfacecreateWindowSurface (QWidget *widget) const =0
 
virtual QGraphicsSystemExplatformExtension ()
 
virtual ~QGraphicsSystem ()
 

Static Public Functions

static QPixmapDatacreateDefaultPixmapData (QPixmapData::PixelType type)
 

Detailed Description

Definition at line 68 of file qgraphicssystem_p.h.

Constructors and Destructors

◆ ~QGraphicsSystem()

QGraphicsSystem::~QGraphicsSystem ( )
virtual

Definition at line 65 of file qgraphicssystem.cpp.

66 {
67 }

Functions

◆ createDefaultPixmapData()

QPixmapData * QGraphicsSystem::createDefaultPixmapData ( QPixmapData::PixelType  type)
static

Definition at line 69 of file qgraphicssystem.cpp.

Referenced by QPixmapData::create(), QPixmapData::createCompatiblePixmapData(), QBitmap::fromImage(), QPixmap::fromImage(), and QPixmap::fromImageReader().

70 {
71 #ifdef Q_WS_QWS
72  Q_UNUSED(type);
73 #endif
74 #if defined(Q_WS_X11)
75  return new QX11PixmapData(type);
76 #elif defined(Q_WS_WIN)
77  return new QRasterPixmapData(type);
78 #elif defined(Q_WS_MAC)
79  return new QMacPixmapData(type);
80 #elif defined(Q_WS_QPA)
81  return QApplicationPrivate::platformIntegration()->createPixmapData(type);
82 #elif defined(Q_OS_SYMBIAN)
83  return new QSymbianRasterPixmapData(type);
84 #elif !defined(Q_WS_QWS)
85 #error QGraphicsSystem::createDefaultPixmapData() not implemented
86 #endif
87  return 0;
88 }
int type
Definition: qmetatype.cpp:239
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...
Definition: qglobal.h:1729

◆ createPixmapData() [1/2]

virtual QPixmapData* QGraphicsSystem::createPixmapData ( QPixmapData::PixelType  type) const
pure virtual

◆ createPixmapData() [2/2]

QPixmapData * QGraphicsSystem::createPixmapData ( QPixmapData origin)
virtual

Reimplemented in QMeeGoGraphicsSystem.

Definition at line 90 of file qgraphicssystem.cpp.

91 {
92  return createPixmapData(origin->pixelType());
93 }
PixelType pixelType() const
virtual QPixmapData * createPixmapData(QPixmapData::PixelType type) const =0

◆ createWindowSurface()

virtual QWindowSurface* QGraphicsSystem::createWindowSurface ( QWidget widget) const
pure virtual

◆ platformExtension()

QGraphicsSystemEx * QGraphicsSystem::platformExtension ( )
virtual

Definition at line 99 of file qgraphicssystem.cpp.

Referenced by QVGGraphicsSystem::createWindowSurface(), and QGLGraphicsSystem::createWindowSurface().

100 {
101 #ifdef Q_OS_SYMBIAN
102  // this is used on raster graphics systems. HW accelerated
103  // graphics systems will overwrite this function.
104  return symbianPlatformExtension();
105 #endif
106  return 0;
107 }

The documentation for this class was generated from the following files: