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's class QBrush
-
Nested Class Summary
Nested classes/interfaces inherited from class io.qt.QtObject
QtObject.QPrivateConstructor
-
Constructor Summary
ModifierConstructorDescriptionQBrush()
See QBrush::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) protected
Constructor for internal use only. -
Method Summary
Modifier and TypeMethodDescriptionclone()
final QColor
color()
boolean
Used to check if this object shares the same native counterpart with the other object, i.e. the objects are equals if their native counterparts are identical.final QGradient
gradient()
int
hashCode()
final boolean
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()
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
-
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 the same native counterpart with the other object, i.e. the objects are equals if their native counterparts are identical. Qt value types override this method to make a value comparison. Otherwise it will return the result of calling the super class implementation. -
hashCode
-
toString
-
clone
-