- 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 class QPainter::PixmapFragment
-
Nested Class Summary
Nested classes/interfaces inherited from class io.qt.QtObject
QtObject.QPrivateConstructor
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionclone()
Creates and returns a copy of this object.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()See
QPainter::PixmapFragment::
PixmapFragment()
-
-
Method Details
-
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
-
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
-
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
-
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
-
scaleX
The horizontal scale of the target rectangle
-
setScaleY
The vertical scale of the target rectangle
-
scaleY
The vertical scale of the target rectangle
-
setSourceLeft
The left coordinate of the source rectangle
-
sourceLeft
The left coordinate of the source rectangle
-
setSourceTop
The top coordinate of the source rectangle
-
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
-
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
-
x
The x coordinate of center point in the target rectangle
-
setY
The y coordinate of the center point in the target rectangle
-
y
The y coordinate of the center point in the target rectangle
-
clone
Creates and returns a copy of this object.
-
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
-
getHeight
Kotlin property getter. In Java use
height()
instead. -
getOpacity
Kotlin property getter. In Java use
opacity()
instead. -
getRotation
Kotlin property getter. In Java use
rotation()
instead. -
getScaleX
Kotlin property getter. In Java use
scaleX()
instead. -
getScaleY
Kotlin property getter. In Java use
scaleY()
instead. -
getSourceLeft
Kotlin property getter. In Java use
sourceLeft()
instead. -
getSourceTop
Kotlin property getter. In Java use
sourceTop()
instead. -
getWidth
Kotlin property getter. In Java use
width()
instead. -
getX
Kotlin property getter. In Java use
x()
instead. -
getY
Kotlin property getter. In Java use
y()
instead.
-