java.lang.Object
io.qt.internal.QtJambiObject
io.qt.QtObject
io.qt.gui.QBrush
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
public class QBrush extends QtObject implements Cloneable
Defines the fill pattern of shapes drawn by QPainter
Java wrapper for Qt class QBrush
-
Nested Class Summary
-
Constructor Summary
Constructors Modifier Constructor Description QBrush()
See QBrush::QBrush()QBrush(Qt.BrushStyle bs)
QBrush(Qt.GlobalColor color, QPixmap pixmap)
QBrush(QBrush brush)
QBrush(QColor color)
Overloaded constructor forQBrush(io.qt.gui.QColor, io.qt.core.Qt.BrushStyle)
withbs = io.qt.core.Qt.BrushStyle.SolidPattern
.QBrush(QColor color, Qt.BrushStyle bs)
QBrush(QColor color, QPixmap pixmap)
QBrush(QGradient gradient)
QBrush(QImage image)
QBrush(QPixmap pixmap)
protected
QBrush(QtObject.QPrivateConstructor p)
Constructor for internal use only. -
Method Summary
Modifier and Type Method Description QBrush
clone()
QColor
color()
boolean
equals(Object other)
Used to check if this object shares native resources with the other object if the other object is a subtype of QtJambiInterface.QGradient
gradient()
int
hashCode()
boolean
isDetached()
boolean
isOpaque()
void
readFrom(QDataStream arg__1)
void
setColor(Qt.GlobalColor color)
void
setColor(QColor color)
void
setStyle(Qt.BrushStyle arg__1)
void
setTexture(QPixmap pixmap)
void
setTextureImage(QImage image)
void
setTransform(QTransform arg__1)
Qt.BrushStyle
style()
void
swap(QBrush other)
QPixmap
texture()
QImage
textureImage()
String
toString()
QTransform
transform()
void
writeTo(QDataStream arg__1)
-
Constructor Details
-
QBrush
public QBrush()See QBrush::QBrush()
-
QBrush
-
QBrush
-
QBrush
-
QBrush
Overloaded constructor for
QBrush(io.qt.gui.QColor, io.qt.core.Qt.BrushStyle)
withbs = io.qt.core.Qt.BrushStyle.SolidPattern
. -
QBrush
-
QBrush
-
QBrush
-
QBrush
-
QBrush
-
QBrush
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
-
Method Details
-
color
-
gradient
-
isDetached
-
isOpaque
-
writeTo
-
readFrom
-
setColor
-
setColor
-
setStyle
-
setTexture
-
setTextureImage
-
setTransform
-
style
-
swap
-
texture
-
textureImage
-
transform
-
equals
Description copied from class:QtObject
Used to check if this object shares native resources with the other object if the other object is a subtype of QtJambiInterface. Otherwise it will return the result of calling the super class implementation. -
hashCode
-
toString
-
clone
-