java.lang.Object
io.qt.internal.QtJambiObject
io.qt.QtObject
io.qt.gui.QPen
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
public class QPen extends QtObject implements Cloneable
Defines how a QPainter should draw lines and outlines of shapes
Java wrapper for Qt class QPen
-
Nested Class Summary
-
Constructor Summary
Constructors Modifier Constructor Description QPen()
See QPen::QPen()QPen(Qt.PenStyle arg__1)
QPen(QBrush brush, double width)
QPen(QBrush brush, double width, Qt.PenStyle s)
QPen(QBrush brush, double width, Qt.PenStyle s, Qt.PenCapStyle c)
Overloaded constructor forQPen(io.qt.gui.QBrush, double, io.qt.core.Qt.PenStyle, io.qt.core.Qt.PenCapStyle, io.qt.core.Qt.PenJoinStyle)
withj = io.qt.core.Qt.PenJoinStyle.BevelJoin
.QPen(QBrush brush, double width, Qt.PenStyle s, Qt.PenCapStyle c, Qt.PenJoinStyle j)
QPen(QColor color)
QPen(QColor color, double width)
QPen(QColor color, double width, Qt.PenStyle s)
QPen(QColor color, double width, Qt.PenStyle s, Qt.PenCapStyle c)
QPen(QColor color, double width, Qt.PenStyle s, Qt.PenCapStyle c, Qt.PenJoinStyle j)
QPen(QPen pen)
See QPen::QPen(QPen)protected
QPen(QtObject.QPrivateConstructor p)
Constructor for internal use only. -
Method Summary
Modifier and Type Method Description QBrush
brush()
Qt.PenCapStyle
capStyle()
QPen
clone()
QColor
color()
double
dashOffset()
QVector<Double>
dashPattern()
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.int
hashCode()
boolean
isCosmetic()
boolean
isDetached()
boolean
isSolid()
Qt.PenJoinStyle
joinStyle()
double
miterLimit()
void
readFrom(QDataStream arg__1)
void
setBrush(QBrush brush)
void
setCapStyle(Qt.PenCapStyle pcs)
void
setColor(QColor color)
void
setCosmetic(boolean cosmetic)
void
setDashOffset(double doffset)
void
setDashPattern(Collection<Double> pattern)
void
setJoinStyle(Qt.PenJoinStyle pcs)
void
setMiterLimit(double limit)
void
setStyle(Qt.PenStyle arg__1)
void
setWidth(int width)
void
setWidthF(double width)
Qt.PenStyle
style()
void
swap(QPen other)
String
toString()
int
width()
double
widthF()
void
writeTo(QDataStream arg__1)
-
Constructor Details
-
QPen
public QPen()See QPen::QPen()
-
QPen
-
QPen
Overloaded constructor for
QPen(io.qt.gui.QBrush, double, io.qt.core.Qt.PenStyle, io.qt.core.Qt.PenCapStyle, io.qt.core.Qt.PenJoinStyle)
withj = io.qt.core.Qt.PenJoinStyle.BevelJoin
. -
QPen
Overloaded constructor for
QPen(io.qt.gui.QBrush, double, io.qt.core.Qt.PenStyle, io.qt.core.Qt.PenCapStyle, io.qt.core.Qt.PenJoinStyle)
with:
c = io.qt.core.Qt.PenCapStyle.SquareCap
j = io.qt.core.Qt.PenJoinStyle.BevelJoin
-
QPen
Overloaded constructor for
QPen(io.qt.gui.QBrush, double, io.qt.core.Qt.PenStyle, io.qt.core.Qt.PenCapStyle, io.qt.core.Qt.PenJoinStyle)
with:
s = io.qt.core.Qt.PenStyle.SolidLine
c = io.qt.core.Qt.PenCapStyle.SquareCap
j = io.qt.core.Qt.PenJoinStyle.BevelJoin
-
QPen
-
QPen
-
QPen
See QPen::QPen(QPen)
-
QPen
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
QPen
-
QPen
-
QPen
-
QPen
-
-
Method Details
-
brush
-
capStyle
-
color
-
dashOffset
-
dashPattern
-
isCosmetic
-
isDetached
-
isSolid
-
joinStyle
-
miterLimit
-
writeTo
-
readFrom
-
setBrush
-
setCapStyle
-
setColor
-
setCosmetic
-
setDashOffset
-
setDashPattern
-
setJoinStyle
-
setMiterLimit
-
setStyle
-
setWidth
-
setWidthF
-
style
-
swap
-
width
-
widthF
-
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
-