java.lang.Object
io.qt.QtObject
io.qt.gui.QBrush
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
Defines the fill pattern of shapes drawn by QPainter
Java wrapper for Qt class QBrush
-
Nested Class Summary
Nested classes/interfaces inherited from class io.qt.QtObject
QtObject.QPrivateConstructor
-
Constructor Summary
ConstructorDescriptionQBrush()
SeeQBrush::
QBrush() QBrush
(Qt.BrushStyle bs) QBrush
(Qt.GlobalColor color, QPixmap pixmap) 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) -
Method Summary
Modifier and TypeMethodDescriptionfinal void
clone()
Creates and returns a copy of this object.final QColor
color()
boolean
final QGradient
gradient()
int
hashCode()
Returns the objects's hash code computed byqHash(QBrush)
.final boolean
SeeQBrush::
isDetached()const final boolean
isOpaque()
void
readFrom
(QDataStream arg__1) final void
setColor
(Qt.GlobalColor color) final void
final void
setStyle
(Qt.BrushStyle arg__1) final void
setTexture
(QPixmap pixmap) final void
setTextureImage
(QImage image) final void
setTransform
(QTransform arg__1) final Qt.BrushStyle
style()
final void
final QPixmap
texture()
final QImage
toString()
Seeoperator<<(QDebug,
QBrush) final QTransform
void
writeTo
(QDataStream arg__1) Methods inherited from class io.qt.QtObject
dispose, isDisposed
-
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
-
-
Method Details
-
color
-
gradient
-
isDetached
See
QBrush::
isDetached()const -
isOpaque
-
writeTo
-
assign
-
readFrom
-
setColor
-
setColor
-
setStyle
-
setTexture
-
setTextureImage
-
setTransform
-
style
-
swap
-
texture
-
textureImage
-
transform
-
equals
-
hashCode
Returns the objects's hash code computed byqHash(QBrush)
. -
toString
See
operator<<(QDebug,
QBrush) -
clone
Creates and returns a copy of this object.
-