CopperSpice API  1.9.2
QPlatformPixmap Class Referenceabstract

Provides an abstraction for native pixmaps. More...

Inherited by QBlittablePlatformPixmap, QRasterPlatformPixmap

Public Methods

 QPlatformPixmap (PixelType pixelType, int classId)
 
virtual ~QPlatformPixmap ()
 
virtual QImagebuffer ()
 
qint64 cacheKey () const
 
ClassId classId () const
 
int colorCount () const
 
virtual void copy (const QPlatformPixmap *data, const QRect &rect)
 
virtual QPlatformPixmap * createCompatiblePlatformPixmap () const
 
int depth () const
 
virtual qreal devicePixelRatio () const = 0
 
virtual void fill (const QColor &color) = 0
 
virtual bool fromData (const uchar *buffer, uint len, const QString &format, Qt::ImageConversionFlags flags)
 
virtual bool fromFile (const QString &filename, const QString &format, Qt::ImageConversionFlags flags)
 
virtual void fromImage (const QImage &image, Qt::ImageConversionFlags flags) = 0
 
virtual void fromImageInPlace (QImage &image, Qt::ImageConversionFlags flags)
 
virtual void fromImageReader (QImageReader *imageReader, Qt::ImageConversionFlags flags)
 
virtual bool hasAlphaChannel () const = 0
 
int height () const
 
bool isNull () const
 
virtual int metric (QPaintDevice::PaintDeviceMetric metric) const = 0
 
virtual QPaintEnginepaintEngine () const = 0
 
PixelType pixelType () const
 
virtual void resize (int width, int height) = 0
 
virtual bool scroll (int dx, int dy, const QRect &rect)
 
int serialNumber () const
 
virtual void setDevicePixelRatio (qreal scaleFactor) = 0
 
virtual QImage toImage () const = 0
 
virtual QImage toImage (const QRect &rect) const
 
virtual QPixmap transformed (const QTransform &matrix, Qt::TransformationMode mode) const
 
int width () const
 

Static Public Methods

static QPlatformPixmap * create (int w, int h, PixelType type)
 

Protected Methods

void setDetachNumber (int detNo)
 
void setSerialNumber (int serNo)
 

Friends

class QExplicitlySharedDataPointer< QPlatformPixmap >
 
class QPixmap
 

Detailed Description

QPlatformPixmap provides an abstraction for native pixmaps.

Constructor & Destructor Documentation

QPlatformPixmap::QPlatformPixmap ( PixelType  pixelType,
int  classId 
)

Constructs a new QPlatformPixmap using pixelType and classId.

QPlatformPixmap::~QPlatformPixmap ( )
virtual

Destroys the current QPlatformPixmap.

Method Documentation

QImage * QPlatformPixmap::buffer ( )
virtual

Additional documentation pending.

qint64 QPlatformPixmap::cacheKey ( ) const
inline

Additional documentation pending.

ClassId QPlatformPixmap::classId ( ) const
inline

Additional documentation pending.

int QPlatformPixmap::colorCount ( ) const
inline

Additional documentation pending.

void QPlatformPixmap::copy ( const QPlatformPixmap *  data,
const QRect rect 
)
virtual

Additional documentation pending.

QPlatformPixmap * QPlatformPixmap::create ( int  w,
int  h,
PixelType  type 
)
static

Additional documentation pending.

QPlatformPixmap * QPlatformPixmap::createCompatiblePlatformPixmap ( ) const
virtual

Additional documentation pending.

int QPlatformPixmap::depth ( ) const
inline

Additional documentation pending.

qreal QPlatformPixmap::devicePixelRatio ( ) const
pure virtual

Additional documentation pending.

void QPlatformPixmap::fill ( const QColor color)
pure virtual

Additional documentation pending.

bool QPlatformPixmap::fromData ( const uchar buffer,
uint  len,
const QString format,
Qt::ImageConversionFlags  flags 
)
virtual

Additional documentation pending.

bool QPlatformPixmap::fromFile ( const QString filename,
const QString format,
Qt::ImageConversionFlags  flags 
)
virtual

Additional documentation pending.

void QPlatformPixmap::fromImage ( const QImage image,
Qt::ImageConversionFlags  flags 
)
pure virtual

Additional documentation pending.

void QPlatformPixmap::fromImageInPlace ( QImage image,
Qt::ImageConversionFlags  flags 
)
inlinevirtual

Additional documentation pending.

void QPlatformPixmap::fromImageReader ( QImageReader imageReader,
Qt::ImageConversionFlags  flags 
)
virtual

Additional documentation pending.

bool QPlatformPixmap::hasAlphaChannel ( ) const
pure virtual

Additional documentation pending.

int QPlatformPixmap::height ( ) const
inline

Additional documentation pending.

bool QPlatformPixmap::isNull ( ) const
inline

Additional documentation pending.

int QPlatformPixmap::metric ( QPaintDevice::PaintDeviceMetric  metric) const
pure virtual

Additional documentation pending.

QPaintEngine * QPlatformPixmap::paintEngine ( ) const
pure virtual

Additional documentation pending.

PixelType QPlatformPixmap::pixelType ( ) const
inline

Additional documentation pending.

void QPlatformPixmap::resize ( int  width,
int  height 
)
pure virtual

Additional documentation pending.

bool QPlatformPixmap::scroll ( int  dx,
int  dy,
const QRect rect 
)
virtual

Additional documentation pending.

int QPlatformPixmap::serialNumber ( ) const
inline

Additional documentation pending.

void QPlatformPixmap::setDetachNumber ( int  detNo)
protected

Sets the value of the property to detNo.

void QPlatformPixmap::setDevicePixelRatio ( qreal  scaleFactor)
pure virtual

Sets the value of the property to scaleFactor.

void QPlatformPixmap::setSerialNumber ( int  serNo)
protected

Sets the value of the property to serNo.

QImage QPlatformPixmap::toImage ( ) const
pure virtual

Additional documentation pending.

QImage QPlatformPixmap::toImage ( const QRect rect) const
virtual

Additional documentation pending.

QPixmap QPlatformPixmap::transformed ( const QTransform matrix,
Qt::TransformationMode  mode 
) const
virtual

Additional documentation pending.

int QPlatformPixmap::width ( ) const
inline

Additional documentation pending.