KLayout Manual: Main Index » Class Index » API reference - Class QBitmap

API reference - Class QBitmap

Notation used in Ruby API documentation

Description: Binding of QBitmap

Class hierarchy: QBitmap » QPixmap » QPaintDevice

Public constructors

new QBitmapnewConstructor QBitmap::QBitmap()
new QBitmapnew(int w,
int h)
Constructor QBitmap::QBitmap(int w, int h)
new QBitmapnew(const QSize arg1)Constructor QBitmap::QBitmap(const QSize &)
new QBitmapnew(const QPixmap arg1)Constructor QBitmap::QBitmap(const QPixmap &)
new QBitmapnew(string fileName)Constructor QBitmap::QBitmap(const QString &fileName, const char *format)
new QBitmapnew(string fileName,
string format)
Constructor QBitmap::QBitmap(const QString &fileName, const char *format)

Public methods

QBitmapassign(const QPixmap arg1)Method QBitmap & QBitmap::operator=(const QPixmap &)
[const]voidassign(const QBitmap other)Assign the contents of another object to self
voidclearMethod void QBitmap::clear()
voidcreateEnsures the C++ object is created
voiddestroyExplicitly destroy the object
[const]booldestroyed?Returns a value indicating whether the object was already destroyed
[const]QBitmapdupCreates a copy of self
[const]boolis_const_object?Returns a value indicating whether the reference is a const reference
[virtual,const]QPaintEngine ptrpaintEngineVirtual method QPaintEngine * QBitmap::paintEngine()
[const]QBitmaptransformed(const QMatrix arg1)Method QBitmap QBitmap::transformed(const QMatrix &)
[const]QBitmaptransformed(const QTransform matrix)Method QBitmap QBitmap::transformed(const QTransform &matrix)

Public static methods and constants

QBitmapfromData(const QSize size,
string bits)
Static method QBitmap QBitmap::fromData(const QSize &size, const char unsigned *bits, QImage::Format monoFormat)
QBitmapfromData(const QSize size,
string bits,
const QImage_Format monoFormat)
Static method QBitmap QBitmap::fromData(const QSize &size, const char unsigned *bits, QImage::Format monoFormat)
QBitmapfromImage(const QImage image)Static method QBitmap QBitmap::fromImage(const QImage &image, QFlags<enum Qt::ImageConversionFlag> flags)
QBitmapfromImage(const QImage image,
int flags)
Static method QBitmap QBitmap::fromImage(const QImage &image, QFlags<enum Qt::ImageConversionFlag> flags)

Protected methods (static, non-static and constructors)

[virtual,const]intmetric(const QPaintDevice_PaintDeviceMetric arg1)Virtual method int QBitmap::metric(QPaintDevice::PaintDeviceMetric )

Detailed description

QBitmap assign(const QPixmap arg1)

Description: Method QBitmap & QBitmap::operator=(const QPixmap &)

[const] void assign(const QBitmap other)

Description: Assign the contents of another object to self

This method assigns the contents of another object to self. This is a deep copy that does not only copy the reference but the actual content.

void clear

Description: Method void QBitmap::clear()

void create

Description: Ensures the C++ object is created

Use this method to ensure the C++ object is created, for example to ensure that resources are allocated. Usually C++ objects are created on demand and not necessarily when the script object is created.

void destroy

Description: Explicitly destroy the object

Explicitly destroy the object on C++ side if it was owned by the Ruby interpreter. Subsequent access to this object will throw an exception. If the object is not owned by Ruby, this method will do nothing.

[const] bool destroyed?

Description: Returns a value indicating whether the object was already destroyed

This method returns true, if the object was destroyed, either explicitly or by the C++ side. The latter may happen, if the object is owned by a C++ object which got destroyed itself.

[const] QBitmap dup

Description: Creates a copy of self

[static] QBitmap fromData(const QSize size,string bits)

Description: Static method QBitmap QBitmap::fromData(const QSize &size, const char unsigned *bits, QImage::Format monoFormat)

This method is static and can be called without an instance.

[static] QBitmap fromData(const QSize size,string bits,const QImage_Format monoFormat)

Description: Static method QBitmap QBitmap::fromData(const QSize &size, const char unsigned *bits, QImage::Format monoFormat)

This method is static and can be called without an instance.

[static] QBitmap fromImage(const QImage image)

Description: Static method QBitmap QBitmap::fromImage(const QImage &image, QFlags<enum Qt::ImageConversionFlag> flags)

This method is static and can be called without an instance.

[static] QBitmap fromImage(const QImage image,int flags)

Description: Static method QBitmap QBitmap::fromImage(const QImage &image, QFlags<enum Qt::ImageConversionFlag> flags)

This method is static and can be called without an instance.

[const] bool is_const_object?

Description: Returns a value indicating whether the reference is a const reference

This method returns true, if self is a const reference. In that case, only const methods may be called on self.

[virtual,const] int metric(const QPaintDevice_PaintDeviceMetric arg1)

Description: Virtual method int QBitmap::metric(QPaintDevice::PaintDeviceMetric )

This method can be reimplemented in a derived class.

[static] new QBitmap new

Description: Constructor QBitmap::QBitmap()

This method creates an object of class QBitmap.

[static] new QBitmap new(int w,int h)

Description: Constructor QBitmap::QBitmap(int w, int h)

This method creates an object of class QBitmap.

[static] new QBitmap new(const QSize arg1)

Description: Constructor QBitmap::QBitmap(const QSize &)

This method creates an object of class QBitmap.

[static] new QBitmap new(const QPixmap arg1)

Description: Constructor QBitmap::QBitmap(const QPixmap &)

This method creates an object of class QBitmap.

[static] new QBitmap new(string fileName)

Description: Constructor QBitmap::QBitmap(const QString &fileName, const char *format)

This method creates an object of class QBitmap.

[static] new QBitmap new(string fileName,string format)

Description: Constructor QBitmap::QBitmap(const QString &fileName, const char *format)

This method creates an object of class QBitmap.

[virtual,const] QPaintEngine ptr paintEngine

Description: Virtual method QPaintEngine * QBitmap::paintEngine()

This method can be reimplemented in a derived class.

[const] QBitmap transformed(const QMatrix arg1)

Description: Method QBitmap QBitmap::transformed(const QMatrix &)

[const] QBitmap transformed(const QTransform matrix)

Description: Method QBitmap QBitmap::transformed(const QTransform &matrix)