CopperSpice API  1.7.2
QPlatformPixmap Class Referenceabstract

Provides an abstraction for native pixmaps. More...

Inherited by QBlittablePlatformPixmap, and 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

Documentation pending.

qint64 QPlatformPixmap::cacheKey ( ) const
inline

Documentation pending.

ClassId QPlatformPixmap::classId ( ) const
inline

Documentation pending.

int QPlatformPixmap::colorCount ( ) const
inline

Documentation pending.

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

Documentation pending.

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

Documentation pending.

QPlatformPixmap * QPlatformPixmap::createCompatiblePlatformPixmap ( ) const
virtual

Documentation pending.

int QPlatformPixmap::depth ( ) const
inline

Documentation pending.

qreal QPlatformPixmap::devicePixelRatio ( ) const
pure virtual

Documentation pending.

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

Documentation pending.

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

Documentation pending.

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

Documentation pending.

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

Documentation pending.

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

Documentation pending.

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

Documentation pending.

bool QPlatformPixmap::hasAlphaChannel ( ) const
pure virtual

Documentation pending.

int QPlatformPixmap::height ( ) const
inline

Documentation pending.

bool QPlatformPixmap::isNull ( ) const
inline

Documentation pending.

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

Documentation pending.

QPaintEngine * QPlatformPixmap::paintEngine ( ) const
pure virtual

Documentation pending.

PixelType QPlatformPixmap::pixelType ( ) const
inline

Documentation pending.

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

Documentation pending.

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

Documentation pending.

int QPlatformPixmap::serialNumber ( ) const
inline

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

Documentation pending.

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

Documentation pending.

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

Documentation pending.

int QPlatformPixmap::width ( ) const
inline

Documentation pending.