API reference - Class QBrush

Notation used in Ruby API documentation

Description: Binding of QBrush

Public constructors

new QBrushnewConstructor QBrush::QBrush()
new QBrushnew(const Qt_BrushStyle bs)Constructor QBrush::QBrush(Qt::BrushStyle bs)
new QBrushnew(const QColor color,
const Qt_BrushStyle bs = Qt::SolidPattern)
Constructor QBrush::QBrush(const QColor &color, Qt::BrushStyle bs)
new QBrushnew(const Qt_GlobalColor color,
const Qt_BrushStyle bs = Qt::SolidPattern)
Constructor QBrush::QBrush(Qt::GlobalColor color, Qt::BrushStyle bs)
new QBrushnew(const QColor color,
const QPixmap pixmap)
Constructor QBrush::QBrush(const QColor &color, const QPixmap &pixmap)
new QBrushnew(const Qt_GlobalColor color,
const QPixmap pixmap)
Constructor QBrush::QBrush(Qt::GlobalColor color, const QPixmap &pixmap)
new QBrushnew(const QPixmap pixmap)Constructor QBrush::QBrush(const QPixmap &pixmap)
new QBrushnew(const QImage image)Constructor QBrush::QBrush(const QImage &image)
new QBrushnew(const QBrush brush)Constructor QBrush::QBrush(const QBrush &brush)
new QBrushnew(const QGradient gradient)Constructor QBrush::QBrush(const QGradient &gradient)

Public methods

[const]bool!=(const QBrush b)Method bool QBrush::operator!=(const QBrush &b)
[const]bool==(const QBrush b)Method bool QBrush::operator==(const QBrush &b)
QBrushassign(const QBrush brush)Method QBrush &QBrush::operator=(const QBrush &brush)
[const]voidassign(const QBrush other)Assign the contents of another object to self
[const]QColorcolorMethod const QColor &QBrush::color()
voidcolor=(const QColor color)Method void QBrush::setColor(const QColor &color)
voidcolor=(const Qt_GlobalColor color)Method void QBrush::setColor(Qt::GlobalColor color)
voidcreateEnsures the C++ object is created
voiddestroyExplicitly destroy the object
[const]booldestroyed?Returns a value indicating whether the object was already destroyed
[const]QBrushdupCreates a copy of self
[const]const QGradient ptrgradientMethod const QGradient *QBrush::gradient()
[const]boolisDetachedMethod bool QBrush::isDetached()
[const]boolisDetached?Method bool QBrush::isDetached()
[const]boolisOpaqueMethod bool QBrush::isOpaque()
[const]boolisOpaque?Method bool QBrush::isOpaque()
[const]boolis_const_object?Returns a value indicating whether the reference is a const reference
[const]QMatrixmatrixMethod const QMatrix &QBrush::matrix()
voidmatrix=(const QMatrix mat)Method void QBrush::setMatrix(const QMatrix &mat)
voidsetColor(const QColor color)Method void QBrush::setColor(const QColor &color)
voidsetColor(const Qt_GlobalColor color)Method void QBrush::setColor(Qt::GlobalColor color)
voidsetMatrix(const QMatrix mat)Method void QBrush::setMatrix(const QMatrix &mat)
voidsetStyle(const Qt_BrushStyle arg1)Method void QBrush::setStyle(Qt::BrushStyle)
voidsetTexture(const QPixmap pixmap)Method void QBrush::setTexture(const QPixmap &pixmap)
voidsetTextureImage(const QImage image)Method void QBrush::setTextureImage(const QImage &image)
voidsetTransform(const QTransform arg1)Method void QBrush::setTransform(const QTransform &)
[const]Qt_BrushStylestyleMethod Qt::BrushStyle QBrush::style()
voidstyle=(const Qt_BrushStyle arg1)Method void QBrush::setStyle(Qt::BrushStyle)
[const]QPixmaptextureMethod QPixmap QBrush::texture()
voidtexture=(const QPixmap pixmap)Method void QBrush::setTexture(const QPixmap &pixmap)
[const]QImagetextureImageMethod QImage QBrush::textureImage()
voidtextureImage=(const QImage image)Method void QBrush::setTextureImage(const QImage &image)
[const]QTransformtransformMethod QTransform QBrush::transform()
voidtransform=(const QTransform arg1)Method void QBrush::setTransform(const QTransform &)

Detailed description

[const] bool !=(const QBrush b)

Description: Method bool QBrush::operator!=(const QBrush &b)

[const] bool ==(const QBrush b)

Description: Method bool QBrush::operator==(const QBrush &b)

QBrush assign(const QBrush brush)

Description: Method QBrush &QBrush::operator=(const QBrush &brush)

[const] void assign(const QBrush 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.

[const] QColor color

Description: Method const QColor &QBrush::color()

void color=(const QColor color)

Description: Method void QBrush::setColor(const QColor &color)

void color=(const Qt_GlobalColor color)

Description: Method void QBrush::setColor(Qt::GlobalColor color)

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] QBrush dup

Description: Creates a copy of self

[const] const QGradient ptr gradient

Description: Method const QGradient *QBrush::gradient()

[const] bool isDetached

Description: Method bool QBrush::isDetached()

[const] bool isDetached?

Description: Method bool QBrush::isDetached()

[const] bool isOpaque

Description: Method bool QBrush::isOpaque()

[const] bool isOpaque?

Description: Method bool QBrush::isOpaque()

[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.

[const] QMatrix matrix

Description: Method const QMatrix &QBrush::matrix()

void matrix=(const QMatrix mat)

Description: Method void QBrush::setMatrix(const QMatrix &mat)

[static] new QBrush new

Description: Constructor QBrush::QBrush()

This method creates an object of class QBrush.

[static] new QBrush new(const Qt_BrushStyle bs)

Description: Constructor QBrush::QBrush(Qt::BrushStyle bs)

This method creates an object of class QBrush.

[static] new QBrush new(const QColor color,const Qt_BrushStyle bs = Qt::SolidPattern)

Description: Constructor QBrush::QBrush(const QColor &color, Qt::BrushStyle bs)

This method creates an object of class QBrush.

[static] new QBrush new(const Qt_GlobalColor color,const Qt_BrushStyle bs = Qt::SolidPattern)

Description: Constructor QBrush::QBrush(Qt::GlobalColor color, Qt::BrushStyle bs)

This method creates an object of class QBrush.

[static] new QBrush new(const QColor color,const QPixmap pixmap)

Description: Constructor QBrush::QBrush(const QColor &color, const QPixmap &pixmap)

This method creates an object of class QBrush.

[static] new QBrush new(const Qt_GlobalColor color,const QPixmap pixmap)

Description: Constructor QBrush::QBrush(Qt::GlobalColor color, const QPixmap &pixmap)

This method creates an object of class QBrush.

[static] new QBrush new(const QPixmap pixmap)

Description: Constructor QBrush::QBrush(const QPixmap &pixmap)

This method creates an object of class QBrush.

[static] new QBrush new(const QImage image)

Description: Constructor QBrush::QBrush(const QImage &image)

This method creates an object of class QBrush.

[static] new QBrush new(const QBrush brush)

Description: Constructor QBrush::QBrush(const QBrush &brush)

This method creates an object of class QBrush.

[static] new QBrush new(const QGradient gradient)

Description: Constructor QBrush::QBrush(const QGradient &gradient)

This method creates an object of class QBrush.

void setColor(const QColor color)

Description: Method void QBrush::setColor(const QColor &color)

void setColor(const Qt_GlobalColor color)

Description: Method void QBrush::setColor(Qt::GlobalColor color)

void setMatrix(const QMatrix mat)

Description: Method void QBrush::setMatrix(const QMatrix &mat)

void setStyle(const Qt_BrushStyle arg1)

Description: Method void QBrush::setStyle(Qt::BrushStyle)

void setTexture(const QPixmap pixmap)

Description: Method void QBrush::setTexture(const QPixmap &pixmap)

void setTextureImage(const QImage image)

Description: Method void QBrush::setTextureImage(const QImage &image)

void setTransform(const QTransform arg1)

Description: Method void QBrush::setTransform(const QTransform &)

[const] Qt_BrushStyle style

Description: Method Qt::BrushStyle QBrush::style()

void style=(const Qt_BrushStyle arg1)

Description: Method void QBrush::setStyle(Qt::BrushStyle)

[const] QPixmap texture

Description: Method QPixmap QBrush::texture()

void texture=(const QPixmap pixmap)

Description: Method void QBrush::setTexture(const QPixmap &pixmap)

[const] QImage textureImage

Description: Method QImage QBrush::textureImage()

void textureImage=(const QImage image)

Description: Method void QBrush::setTextureImage(const QImage &image)

[const] QTransform transform

Description: Method QTransform QBrush::transform()

void transform=(const QTransform arg1)

Description: Method void QBrush::setTransform(const QTransform &)