nukescripts.widgetgroup.QPainterPath

class nukescripts.widgetgroup.QPainterPath(self)
class nukescripts.widgetgroup.QPainterPath(self, other: PySide6.QtGui.QPainterPath)
class nukescripts.widgetgroup.QPainterPath(self, startPoint: PySide6.QtCore.QPointF | PySide6.QtCore.QPoint | PySide6.QtGui.QPainterPath.Element)

Bases: Object

__init__(self) -> None __init__(self, other: PySide6.QtGui.QPainterPath) -> None __init__(self, startPoint: Union[PySide6.QtCore.QPointF, PySide6.QtCore.QPoint, PySide6.QtGui.QPainterPath.Element]) -> None

Initialize self. See help(type(self)) for accurate signature.

Methods

addEllipse

addEllipse(self, center: Union[PySide6.QtCore.QPointF, PySide6.QtCore.QPoint, PySide6.QtGui.QPainterPath.Element], rx: float, ry: float) -> None addEllipse(self, rect: Union[PySide6.QtCore.QRectF, PySide6.QtCore.QRect]) -> None addEllipse(self, x: float, y: float, w: float, h: float) -> None

addPath

addPath(self, path: PySide6.QtGui.QPainterPath) -> None

addPolygon

addPolygon(self, polygon: Union[PySide6.QtGui.QPolygonF, Sequence[PySide6.QtCore.QPointF], PySide6.QtGui.QPolygon, PySide6.QtCore.QRectF]) -> None

addRect

addRect(self, rect: Union[PySide6.QtCore.QRectF, PySide6.QtCore.QRect]) -> None addRect(self, x: float, y: float, w: float, h: float) -> None

addRegion

addRegion(self, region: Union[PySide6.QtGui.QRegion, PySide6.QtGui.QBitmap, PySide6.QtGui.QPolygon, PySide6.QtCore.QRect]) -> None

addRoundedRect

addRoundedRect(self, rect: Union[PySide6.QtCore.QRectF, PySide6.QtCore.QRect], xRadius: float, yRadius: float, mode: PySide6.QtCore.Qt.SizeMode = Instance(Qt.AbsoluteSize)) -> None addRoundedRect(self, x: float, y: float, w: float, h: float, xRadius: float, yRadius: float, mode: PySide6.QtCore.Qt.SizeMode = Instance(Qt.AbsoluteSize)) -> None

addText

addText(self, point: Union[PySide6.QtCore.QPointF, PySide6.QtCore.QPoint, PySide6.QtGui.QPainterPath.Element], f: Union[PySide6.QtGui.QFont, str, Sequence[str]], text: str) -> None addText(self, x: float, y: float, f: Union[PySide6.QtGui.QFont, str, Sequence[str]], text: str) -> None

angleAtPercent

angleAtPercent(self, t: float) -> float

arcMoveTo

arcMoveTo(self, rect: Union[PySide6.QtCore.QRectF, PySide6.QtCore.QRect], angle: float) -> None arcMoveTo(self, x: float, y: float, w: float, h: float, angle: float) -> None

arcTo

arcTo(self, rect: Union[PySide6.QtCore.QRectF, PySide6.QtCore.QRect], startAngle: float, arcLength: float) -> None arcTo(self, x: float, y: float, w: float, h: float, startAngle: float, arcLength: float) -> None

boundingRect

boundingRect(self) -> PySide6.QtCore.QRectF

capacity

capacity(self) -> int

clear

clear(self) -> None

closeSubpath

closeSubpath(self) -> None

connectPath

connectPath(self, path: PySide6.QtGui.QPainterPath) -> None

contains

contains(self, p: PySide6.QtGui.QPainterPath) -> bool contains(self, pt: Union[PySide6.QtCore.QPointF, PySide6.QtCore.QPoint, PySide6.QtGui.QPainterPath.Element]) -> bool contains(self, rect: Union[PySide6.QtCore.QRectF, PySide6.QtCore.QRect]) -> bool

controlPointRect

controlPointRect(self) -> PySide6.QtCore.QRectF

cubicTo

cubicTo(self, ctrlPt1: Union[PySide6.QtCore.QPointF, PySide6.QtCore.QPoint, PySide6.QtGui.QPainterPath.Element], ctrlPt2: Union[PySide6.QtCore.QPointF, PySide6.QtCore.QPoint, PySide6.QtGui.QPainterPath.Element], endPt: Union[PySide6.QtCore.QPointF, PySide6.QtCore.QPoint, PySide6.QtGui.QPainterPath.Element]) -> None cubicTo(self, ctrlPt1x: float, ctrlPt1y: float, ctrlPt2x: float, ctrlPt2y: float, endPtx: float, endPty: float) -> None

currentPosition

currentPosition(self) -> PySide6.QtCore.QPointF

elementAt

elementAt(self, i: int) -> PySide6.QtGui.QPainterPath.Element

elementCount

elementCount(self) -> int

fillRule

fillRule(self) -> PySide6.QtCore.Qt.FillRule

intersected

intersected(self, r: PySide6.QtGui.QPainterPath) -> PySide6.QtGui.QPainterPath

intersects

intersects(self, p: PySide6.QtGui.QPainterPath) -> bool intersects(self, rect: Union[PySide6.QtCore.QRectF, PySide6.QtCore.QRect]) -> bool

isEmpty

isEmpty(self) -> bool

length

length(self) -> float

lineTo

lineTo(self, p: Union[PySide6.QtCore.QPointF, PySide6.QtCore.QPoint, PySide6.QtGui.QPainterPath.Element]) -> None lineTo(self, x: float, y: float) -> None

moveTo

moveTo(self, p: Union[PySide6.QtCore.QPointF, PySide6.QtCore.QPoint, PySide6.QtGui.QPainterPath.Element]) -> None moveTo(self, x: float, y: float) -> None

percentAtLength

percentAtLength(self, t: float) -> float

pointAtPercent

pointAtPercent(self, t: float) -> PySide6.QtCore.QPointF

quadTo

quadTo(self, ctrlPt: Union[PySide6.QtCore.QPointF, PySide6.QtCore.QPoint, PySide6.QtGui.QPainterPath.Element], endPt: Union[PySide6.QtCore.QPointF, PySide6.QtCore.QPoint, PySide6.QtGui.QPainterPath.Element]) -> None quadTo(self, ctrlPtx: float, ctrlPty: float, endPtx: float, endPty: float) -> None

reserve

reserve(self, size: int) -> None

setElementPositionAt

setElementPositionAt(self, i: int, x: float, y: float) -> None

setFillRule

setFillRule(self, fillRule: PySide6.QtCore.Qt.FillRule) -> None

simplified

simplified(self) -> PySide6.QtGui.QPainterPath

slopeAtPercent

slopeAtPercent(self, t: float) -> float

subtracted

subtracted(self, r: PySide6.QtGui.QPainterPath) -> PySide6.QtGui.QPainterPath

swap

swap(self, other: PySide6.QtGui.QPainterPath) -> None

toFillPolygon

toFillPolygon(self, matrix: PySide6.QtGui.QTransform = Default(QTransform)) -> PySide6.QtGui.QPolygonF

toFillPolygons

toFillPolygons(self, matrix: PySide6.QtGui.QTransform = Default(QTransform)) -> List[PySide6.QtGui.QPolygonF]

toReversed

toReversed(self) -> PySide6.QtGui.QPainterPath

toSubpathPolygons

toSubpathPolygons(self, matrix: PySide6.QtGui.QTransform = Default(QTransform)) -> List[PySide6.QtGui.QPolygonF]

translate

translate(self, dx: float, dy: float) -> None translate(self, offset: Union[PySide6.QtCore.QPointF, PySide6.QtCore.QPoint, PySide6.QtGui.QPainterPath.Element]) -> None

translated

translated(self, dx: float, dy: float) -> PySide6.QtGui.QPainterPath translated(self, offset: Union[PySide6.QtCore.QPointF, PySide6.QtCore.QPoint, PySide6.QtGui.QPainterPath.Element]) -> PySide6.QtGui.QPainterPath

united

united(self, r: PySide6.QtGui.QPainterPath) -> PySide6.QtGui.QPainterPath

class Element(self)
class Element(self, Element: PySide6.QtGui.QPainterPath.Element)

Bases: Object

__init__(self) -> None __init__(self, Element: PySide6.QtGui.QPainterPath.Element) -> None

Initialize self. See help(type(self)) for accurate signature.

isCurveTo(self) bool
isLineTo(self) bool
isMoveTo(self) bool
class ElementType(value)

Bases: Enum

__add__(self, other: PySide6.QtGui.QPainterPath) PySide6.QtGui.QPainterPath

Return self+value.

__mul__(self, m: PySide6.QtGui.QTransform) PySide6.QtGui.QPainterPath

Return self*value.

addEllipse(self, center: PySide6.QtCore.QPointF | PySide6.QtCore.QPoint | PySide6.QtGui.QPainterPath.Element, rx: float, ry: float) None
addEllipse(self, rect: PySide6.QtCore.QRectF | PySide6.QtCore.QRect) None
addEllipse(self, x: float, y: float, w: float, h: float) None
addPath(self, path: PySide6.QtGui.QPainterPath) None
addPolygon(self, polygon: PySide6.QtGui.QPolygonF | Sequence[PySide6.QtCore.QPointF] | PySide6.QtGui.QPolygon | PySide6.QtCore.QRectF) None
addRect(self, rect: PySide6.QtCore.QRectF | PySide6.QtCore.QRect) None
addRect(self, x: float, y: float, w: float, h: float) None
addRegion(self, region: PySide6.QtGui.QRegion | PySide6.QtGui.QBitmap | PySide6.QtGui.QPolygon | PySide6.QtCore.QRect) None
addRoundedRect(self, rect: PySide6.QtCore.QRectF | PySide6.QtCore.QRect, xRadius: float, yRadius: float, mode: PySide6.QtCore.Qt.SizeMode = Instance(Qt.AbsoluteSize)) None
addRoundedRect(self, x: float, y: float, w: float, h: float, xRadius: float, yRadius: float, mode: PySide6.QtCore.Qt.SizeMode = Instance(Qt.AbsoluteSize)) None
addText(self, point: PySide6.QtCore.QPointF | PySide6.QtCore.QPoint | PySide6.QtGui.QPainterPath.Element, f: PySide6.QtGui.QFont | str | Sequence[str], text: str) None
addText(self, x: float, y: float, f: PySide6.QtGui.QFont | str | Sequence[str], text: str) None
angleAtPercent(self, t: float) float
arcMoveTo(self, rect: PySide6.QtCore.QRectF | PySide6.QtCore.QRect, angle: float) None
arcMoveTo(self, x: float, y: float, w: float, h: float, angle: float) None
arcTo(self, rect: PySide6.QtCore.QRectF | PySide6.QtCore.QRect, startAngle: float, arcLength: float) None
arcTo(self, x: float, y: float, w: float, h: float, startAngle: float, arcLength: float) None
boundingRect(self) PySide6.QtCore.QRectF
capacity(self) int
clear(self) None
closeSubpath(self) None
connectPath(self, path: PySide6.QtGui.QPainterPath) None
contains(self, p: PySide6.QtGui.QPainterPath) bool
contains(self, pt: PySide6.QtCore.QPointF | PySide6.QtCore.QPoint | PySide6.QtGui.QPainterPath.Element) bool
contains(self, rect: PySide6.QtCore.QRectF | PySide6.QtCore.QRect) bool
controlPointRect(self) PySide6.QtCore.QRectF
cubicTo(self, ctrlPt1: PySide6.QtCore.QPointF | PySide6.QtCore.QPoint | PySide6.QtGui.QPainterPath.Element, ctrlPt2: PySide6.QtCore.QPointF | PySide6.QtCore.QPoint | PySide6.QtGui.QPainterPath.Element, endPt: PySide6.QtCore.QPointF | PySide6.QtCore.QPoint | PySide6.QtGui.QPainterPath.Element) None
cubicTo(self, ctrlPt1x: float, ctrlPt1y: float, ctrlPt2x: float, ctrlPt2y: float, endPtx: float, endPty: float) None
currentPosition(self) PySide6.QtCore.QPointF
elementAt(self, i: int) PySide6.QtGui.QPainterPath.Element
elementCount(self) int
fillRule(self) PySide6.QtCore.Qt.FillRule
intersected(self, r: PySide6.QtGui.QPainterPath) PySide6.QtGui.QPainterPath
intersects(self, p: PySide6.QtGui.QPainterPath) bool
intersects(self, rect: PySide6.QtCore.QRectF | PySide6.QtCore.QRect) bool
isEmpty(self) bool
length(self) float
lineTo(self, p: PySide6.QtCore.QPointF | PySide6.QtCore.QPoint | PySide6.QtGui.QPainterPath.Element) None
lineTo(self, x: float, y: float) None
moveTo(self, p: PySide6.QtCore.QPointF | PySide6.QtCore.QPoint | PySide6.QtGui.QPainterPath.Element) None
moveTo(self, x: float, y: float) None
percentAtLength(self, t: float) float
pointAtPercent(self, t: float) PySide6.QtCore.QPointF
quadTo(self, ctrlPt: PySide6.QtCore.QPointF | PySide6.QtCore.QPoint | PySide6.QtGui.QPainterPath.Element, endPt: PySide6.QtCore.QPointF | PySide6.QtCore.QPoint | PySide6.QtGui.QPainterPath.Element) None
quadTo(self, ctrlPtx: float, ctrlPty: float, endPtx: float, endPty: float) None
reserve(self, size: int) None
setElementPositionAt(self, i: int, x: float, y: float) None
setFillRule(self, fillRule: PySide6.QtCore.Qt.FillRule) None
simplified(self) PySide6.QtGui.QPainterPath
slopeAtPercent(self, t: float) float
subtracted(self, r: PySide6.QtGui.QPainterPath) PySide6.QtGui.QPainterPath
swap(self, other: PySide6.QtGui.QPainterPath) None
toFillPolygon(self, matrix: PySide6.QtGui.QTransform = Default(QTransform)) PySide6.QtGui.QPolygonF
toFillPolygons(self, matrix: PySide6.QtGui.QTransform = Default(QTransform)) List[PySide6.QtGui.QPolygonF]
toReversed(self) PySide6.QtGui.QPainterPath
toSubpathPolygons(self, matrix: PySide6.QtGui.QTransform = Default(QTransform)) List[PySide6.QtGui.QPolygonF]
translate(self, dx: float, dy: float) None
translate(self, offset: PySide6.QtCore.QPointF | PySide6.QtCore.QPoint | PySide6.QtGui.QPainterPath.Element) None
translated(self, dx: float, dy: float) PySide6.QtGui.QPainterPath
translated(self, offset: PySide6.QtCore.QPointF | PySide6.QtCore.QPoint | PySide6.QtGui.QPainterPath.Element) PySide6.QtGui.QPainterPath
united(self, r: PySide6.QtGui.QPainterPath) PySide6.QtGui.QPainterPath