- All Implemented Interfaces:
QtObjectInterface
,Cloneable
public class QPainterPath extends QtObject implements Cloneable
Container for painting operations, enabling graphical shapes to be constructed and reused
Java wrapper for Qt class QPainterPath
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
QPainterPath.Element
QPainterPath::Element class specifies the position and type of a subpathstatic class
QPainterPath.ElementType
Java wrapper for Qt enum QPainterPath::ElementType -
Constructor Summary
Constructors Modifier Constructor Description QPainterPath()
QPainterPath(QPointF startPoint)
QPainterPath(QPainterPath other)
protected
QPainterPath(QtObject.QPrivateConstructor p)
Constructor for internal use only. -
Method Summary
Modifier and Type Method Description void
addEllipse(double x, double y, double w, double h)
void
addEllipse(QPointF center, double rx, double ry)
void
addEllipse(QRectF rect)
void
addPath(QPainterPath path)
void
addPolygon(QPolygonF polygon)
void
addRect(double x, double y, double w, double h)
void
addRect(QRectF rect)
void
addRegion(QRegion region)
void
addRoundedRect(double x, double y, double w, double h, double xRadius, double yRadius)
Overloaded function foraddRoundedRect(double, double, double, double, double, double, io.qt.core.Qt.SizeMode)
withmode = io.qt.core.Qt.SizeMode.AbsoluteSize
.void
addRoundedRect(double x, double y, double w, double h, double xRadius, double yRadius, Qt.SizeMode mode)
void
addRoundedRect(QRectF rect, double xRadius, double yRadius)
Overloaded function foraddRoundedRect(io.qt.core.QRectF, double, double, io.qt.core.Qt.SizeMode)
withmode = io.qt.core.Qt.SizeMode.AbsoluteSize
.void
addRoundedRect(QRectF rect, double xRadius, double yRadius, Qt.SizeMode mode)
void
addText(double x, double y, QFont f, String text)
void
addText(QPointF point, QFont f, String text)
double
angleAtPercent(double t)
void
arcMoveTo(double x, double y, double w, double h, double angle)
void
arcMoveTo(QRectF rect, double angle)
void
arcTo(double x, double y, double w, double h, double startAngle, double arcLength)
void
arcTo(QRectF rect, double startAngle, double arcLength)
QRectF
boundingRect()
int
capacity()
void
clear()
QPainterPath
clone()
void
closeSubpath()
void
connectPath(QPainterPath path)
boolean
contains(QPointF pt)
boolean
contains(QRectF rect)
boolean
contains(QPainterPath p)
QRectF
controlPointRect()
void
cubicTo(double ctrlPt1x, double ctrlPt1y, double ctrlPt2x, double ctrlPt2y, double endPtx, double endPty)
void
cubicTo(QPointF ctrlPt1, QPointF ctrlPt2, QPointF endPt)
QPointF
currentPosition()
QPainterPath.Element
elementAt(int i)
int
elementCount()
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.Qt.FillRule
fillRule()
int
hashCode()
void
intersect(QPainterPath other)
QPainterPath
intersected(QPainterPath r)
boolean
intersects(QRectF rect)
boolean
intersects(QPainterPath p)
boolean
isEmpty()
double
length()
void
lineTo(double x, double y)
void
lineTo(QPointF p)
void
moveTo(double x, double y)
void
moveTo(QPointF p)
double
percentAtLength(double t)
QPointF
pointAtPercent(double t)
void
quadTo(double ctrlPtx, double ctrlPty, double endPtx, double endPty)
void
quadTo(QPointF ctrlPt, QPointF endPt)
void
readFrom(QDataStream arg__1)
void
reserve(int size)
void
setElementPositionAt(int i, double x, double y)
void
setFillRule(Qt.FillRule fillRule)
QPainterPath
simplified()
double
slopeAtPercent(double t)
void
subtract(QPainterPath other)
QPainterPath
subtracted(QPainterPath r)
void
swap(QPainterPath other)
QPolygonF
toFillPolygon()
Overloaded function fortoFillPolygon(io.qt.gui.QTransform)
withmatrix = new io.qt.gui.QTransform()
.QPolygonF
toFillPolygon(QTransform matrix)
QList<QPolygonF>
toFillPolygons()
Overloaded function fortoFillPolygons(io.qt.gui.QTransform)
withmatrix = new io.qt.gui.QTransform()
.QList<QPolygonF>
toFillPolygons(QTransform matrix)
QPainterPath
toReversed()
String
toString()
QList<QPolygonF>
toSubpathPolygons()
Overloaded function fortoSubpathPolygons(io.qt.gui.QTransform)
withmatrix = new io.qt.gui.QTransform()
.QList<QPolygonF>
toSubpathPolygons(QTransform matrix)
void
translate(double dx, double dy)
void
translate(QPointF offset)
QPainterPath
translated(double dx, double dy)
QPainterPath
translated(QPointF offset)
void
unite(QPainterPath other)
QPainterPath
united(QPainterPath r)
void
writeTo(QDataStream arg__1)
-
Constructor Details
-
QPainterPath
public QPainterPath() -
QPainterPath
-
QPainterPath
-
QPainterPath
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
-
Method Details
-
addEllipse
-
addEllipse
-
addEllipse
-
addPath
-
addPolygon
-
addRect
-
addRect
-
addRegion
-
addRoundedRect
Overloaded function for
addRoundedRect(io.qt.core.QRectF, double, double, io.qt.core.Qt.SizeMode)
withmode = io.qt.core.Qt.SizeMode.AbsoluteSize
. -
addRoundedRect
@QtUninvokable public final void addRoundedRect(QRectF rect, double xRadius, double yRadius, Qt.SizeMode mode) -
addRoundedRect
@QtUninvokable public final void addRoundedRect(double x, double y, double w, double h, double xRadius, double yRadius)Overloaded function for
addRoundedRect(double, double, double, double, double, double, io.qt.core.Qt.SizeMode)
withmode = io.qt.core.Qt.SizeMode.AbsoluteSize
. -
addRoundedRect
@QtUninvokable public final void addRoundedRect(double x, double y, double w, double h, double xRadius, double yRadius, Qt.SizeMode mode) -
addText
-
addText
-
angleAtPercent
-
arcMoveTo
-
arcMoveTo
-
arcTo
-
arcTo
@QtUninvokable public final void arcTo(double x, double y, double w, double h, double startAngle, double arcLength) -
boundingRect
-
capacity
-
clear
-
closeSubpath
-
connectPath
-
contains
-
contains
-
contains
-
controlPointRect
-
cubicTo
-
cubicTo
@QtUninvokable public final void cubicTo(double ctrlPt1x, double ctrlPt1y, double ctrlPt2x, double ctrlPt2y, double endPtx, double endPty) -
currentPosition
-
elementAt
-
elementCount
-
fillRule
-
intersected
-
intersects
-
intersects
-
isEmpty
-
length
-
lineTo
-
lineTo
-
moveTo
-
moveTo
-
intersect
-
unite
-
subtract
-
writeTo
-
readFrom
-
percentAtLength
-
pointAtPercent
-
quadTo
-
quadTo
@QtUninvokable public final void quadTo(double ctrlPtx, double ctrlPty, double endPtx, double endPty) -
reserve
-
setElementPositionAt
-
setFillRule
-
simplified
-
slopeAtPercent
-
subtracted
-
swap
-
toFillPolygon
Overloaded function for
toFillPolygon(io.qt.gui.QTransform)
withmatrix = new io.qt.gui.QTransform()
. -
toFillPolygon
-
toFillPolygons
Overloaded function for
toFillPolygons(io.qt.gui.QTransform)
withmatrix = new io.qt.gui.QTransform()
. -
toFillPolygons
-
toReversed
-
toSubpathPolygons
Overloaded function for
toSubpathPolygons(io.qt.gui.QTransform)
withmatrix = new io.qt.gui.QTransform()
. -
toSubpathPolygons
-
translate
-
translate
-
translated
-
translated
-
united
-
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
-