- All Implemented Interfaces:
QtObjectInterface
,Cloneable
- Enclosing class:
QPainter
This class is used in conjunction with the QPainter::drawPixmapFragments() function to specify how a pixmap, or sub-rect of a pixmap, is drawn
Java wrapper for Qt's class QPainter::PixmapFragment
-
Nested Class Summary
Nested classes/interfaces inherited from class io.qt.QtObject
QtObject.QPrivateConstructor
-
Constructor Summary
ModifierConstructorDescriptionprotected
Constructor for internal use only. -
Method Summary
Modifier and TypeMethodDescriptionclone()
static QPainter.PixmapFragment
Overloaded function forcreate(io.qt.core.QPointF, io.qt.core.QRectF, double, double, double, double)
static QPainter.PixmapFragment
Overloaded function forcreate(io.qt.core.QPointF, io.qt.core.QRectF, double, double, double, double)
static QPainter.PixmapFragment
Overloaded function forcreate(io.qt.core.QPointF, io.qt.core.QRectF, double, double, double, double)
static QPainter.PixmapFragment
Overloaded function forcreate(io.qt.core.QPointF, io.qt.core.QRectF, double, double, double, double)
withopacity = 1
.static QPainter.PixmapFragment
create
(QPointF pos, QRectF sourceRect, double scaleX, double scaleY, double rotation, double opacity) final double
Kotlin property getter.final double
Kotlin property getter.final double
Kotlin property getter.final double
Kotlin property getter.final double
Kotlin property getter.final double
Kotlin property getter.final double
Kotlin property getter.final double
getWidth()
Kotlin property getter.final double
getX()
Kotlin property getter.final double
getY()
Kotlin property getter.final double
height()
The height of the source rectangle and is used to calculate the height of the target rectanglefinal double
opacity()
The opacity of the target rectangle, where 0.0 is fully transparent and 1.0 is fully opaquefinal double
rotation()
The rotation of the target rectangle in degrees.final double
scaleX()
The horizontal scale of the target rectanglefinal double
scaleY()
The vertical scale of the target rectanglefinal void
setHeight
(double height) The height of the source rectangle and is used to calculate the height of the target rectanglefinal void
setOpacity
(double opacity) The opacity of the target rectangle, where 0.0 is fully transparent and 1.0 is fully opaquefinal void
setRotation
(double rotation) The rotation of the target rectangle in degrees.final void
setScaleX
(double scaleX) The horizontal scale of the target rectanglefinal void
setScaleY
(double scaleY) The vertical scale of the target rectanglefinal void
setSourceLeft
(double sourceLeft) The left coordinate of the source rectanglefinal void
setSourceTop
(double sourceTop) The top coordinate of the source rectanglefinal void
setWidth
(double width) The width of the source rectangle and is used to calculate the width of the target rectanglefinal void
setX
(double x) The x coordinate of center point in the target rectanglefinal void
setY
(double y) The y coordinate of the center point in the target rectanglefinal double
The left coordinate of the source rectanglefinal double
The top coordinate of the source rectanglefinal double
width()
The width of the source rectangle and is used to calculate the width of the target rectanglefinal double
x()
The x coordinate of center point in the target rectanglefinal double
y()
The y coordinate of the center point in the target rectangleMethods inherited from class io.qt.QtObject
dispose, equals, isDisposed
-
Constructor Details
-
PixmapFragment
public PixmapFragment() -
PixmapFragment
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
-
Method Details
-
create
public static QPainter.PixmapFragment create(QPointF pos, QRectF sourceRect, double scaleX, double scaleY, double rotation) Overloaded function for
create(io.qt.core.QPointF, io.qt.core.QRectF, double, double, double, double)
withopacity = 1
. -
create
public static QPainter.PixmapFragment create(QPointF pos, QRectF sourceRect, double scaleX, double scaleY) Overloaded function for
create(io.qt.core.QPointF, io.qt.core.QRectF, double, double, double, double)
with:
rotation = 0
opacity = 1
-
create
Overloaded function for
create(io.qt.core.QPointF, io.qt.core.QRectF, double, double, double, double)
with:
scaleY = 1
rotation = 0
opacity = 1
-
create
Overloaded function for
create(io.qt.core.QPointF, io.qt.core.QRectF, double, double, double, double)
with:
scaleX = 1
scaleY = 1
rotation = 0
opacity = 1
-
create
public static QPainter.PixmapFragment create(QPointF pos, QRectF sourceRect, double scaleX, double scaleY, double rotation, double opacity) -
setHeight
The height of the source rectangle and is used to calculate the height of the target rectangle
-
getHeight
Kotlin property getter. In Java use
height()
instead. -
height
The height of the source rectangle and is used to calculate the height of the target rectangle
-
setOpacity
The opacity of the target rectangle, where 0.0 is fully transparent and 1.0 is fully opaque
-
getOpacity
Kotlin property getter. In Java use
opacity()
instead. -
opacity
The opacity of the target rectangle, where 0.0 is fully transparent and 1.0 is fully opaque
-
setRotation
The rotation of the target rectangle in degrees. The target rectangle is rotated after it has been scaled
-
getRotation
Kotlin property getter. In Java use
rotation()
instead. -
rotation
The rotation of the target rectangle in degrees. The target rectangle is rotated after it has been scaled
-
setScaleX
The horizontal scale of the target rectangle
-
getScaleX
Kotlin property getter. In Java use
scaleX()
instead. -
scaleX
The horizontal scale of the target rectangle
-
setScaleY
The vertical scale of the target rectangle
-
getScaleY
Kotlin property getter. In Java use
scaleY()
instead. -
scaleY
The vertical scale of the target rectangle
-
setSourceLeft
The left coordinate of the source rectangle
-
getSourceLeft
Kotlin property getter. In Java use
sourceLeft()
instead. -
sourceLeft
The left coordinate of the source rectangle
-
setSourceTop
The top coordinate of the source rectangle
-
getSourceTop
Kotlin property getter. In Java use
sourceTop()
instead. -
sourceTop
The top coordinate of the source rectangle
-
setWidth
The width of the source rectangle and is used to calculate the width of the target rectangle
-
getWidth
Kotlin property getter. In Java use
width()
instead. -
width
The width of the source rectangle and is used to calculate the width of the target rectangle
-
setX
The x coordinate of center point in the target rectangle
-
getX
Kotlin property getter. In Java use
x()
instead. -
x
The x coordinate of center point in the target rectangle
-
setY
The y coordinate of the center point in the target rectangle
-
getY
Kotlin property getter. In Java use
y()
instead. -
y
The y coordinate of the center point in the target rectangle
-
clone
-