- All Implemented Interfaces:
QtObjectInterface
,Cloneable
- Enclosing class:
- QPainter
public static class QPainter.PixmapFragment extends QtObject implements Cloneable
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
-
Constructor Summary
Constructors Modifier Constructor Description PixmapFragment()
protected
PixmapFragment(QtObject.QPrivateConstructor p)
Constructor for internal use only. -
Method Summary
Modifier and Type Method Description QPainter.PixmapFragment
clone()
static QPainter.PixmapFragment
create(QPointF pos, QRectF sourceRect)
Overloaded function forcreate(io.qt.core.QPointF, io.qt.core.QRectF, double, double, double, double)
static QPainter.PixmapFragment
create(QPointF pos, QRectF sourceRect, double scaleX)
Overloaded function forcreate(io.qt.core.QPointF, io.qt.core.QRectF, double, double, double, double)
static QPainter.PixmapFragment
create(QPointF pos, QRectF sourceRect, double scaleX, double scaleY)
Overloaded function forcreate(io.qt.core.QPointF, io.qt.core.QRectF, double, double, double, double)
static QPainter.PixmapFragment
create(QPointF pos, QRectF sourceRect, double scaleX, double scaleY, double rotation)
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)
double
height()
The height of the source rectangle and is used to calculate the height of the target rectangledouble
opacity()
The opacity of the target rectangle, where 0.0 is fully transparent and 1.0 is fully opaquedouble
rotation()
The rotation of the target rectangle in degrees.double
scaleX()
The horizontal scale of the target rectangledouble
scaleY()
The vertical scale of the target rectanglevoid
setHeight(double height)
The height of the source rectangle and is used to calculate the height of the target rectanglevoid
setOpacity(double opacity)
The opacity of the target rectangle, where 0.0 is fully transparent and 1.0 is fully opaquevoid
setRotation(double rotation)
The rotation of the target rectangle in degrees.void
setScaleX(double scaleX)
The horizontal scale of the target rectanglevoid
setScaleY(double scaleY)
The vertical scale of the target rectanglevoid
setSourceLeft(double sourceLeft)
The left coordinate of the source rectanglevoid
setSourceTop(double sourceTop)
The top coordinate of the source rectanglevoid
setWidth(double width)
The width of the source rectangle and is used to calculate the width of the target rectanglevoid
setX(double x)
The x coordinate of center point in the target rectanglevoid
setY(double y)
The y coordinate of the center point in the target rectangledouble
sourceLeft()
The left coordinate of the source rectangledouble
sourceTop()
The top coordinate of the source rectangledouble
width()
The width of the source rectangle and is used to calculate the width of the target rectangledouble
x()
The x coordinate of center point in the target rectangledouble
y()
The y coordinate of the center point in the target rectangle
-
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
-
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
-