- 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
-
Constructor Summary
ConstructorDescriptionSeeQPainter::PixmapFragment::
PixmapFragment() PixmapFragment
(double x, double y, double sourceLeft, double sourceTop, double width, double height, double scaleX, double scaleY, double rotation, double opacity) SeeQPainter::PixmapFragment::
PixmapFragment{qreal, qreal, qreal, qreal, qreal, qreal, qreal, qreal, qreal, qreal} SeeQPainter::PixmapFragment::
PixmapFragment(QPainter::PixmapFragment) -
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.QRect, 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)
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) static QPainter.PixmapFragment
Overloaded function forcreate(io.qt.core.QPointF, io.qt.core.QRect, double, double, double, double)
static QPainter.PixmapFragment
Overloaded function forcreate(io.qt.core.QPointF, io.qt.core.QRect, double, double, double, double)
static QPainter.PixmapFragment
Overloaded function forcreate(io.qt.core.QPointF, io.qt.core.QRect, double, double, double, double)
withopacity = 1
.static QPainter.PixmapFragment
create
(QPointF pos, QRect sourceRect, double scaleX, double scaleY, double rotation, double opacity) Overloaded function forcreate(io.qt.core.QPointF, io.qt.core.QRectF, double, double, double, double)
.static QPainter.PixmapFragment
Overloaded function forcreate(io.qt.core.QPoint, io.qt.core.QRect, double, double, double, double)
static QPainter.PixmapFragment
Overloaded function forcreate(io.qt.core.QPoint, io.qt.core.QRectF, double, double, double, double)
static QPainter.PixmapFragment
Overloaded function forcreate(io.qt.core.QPoint, io.qt.core.QRectF, double, double, double, double)
static QPainter.PixmapFragment
Overloaded function forcreate(io.qt.core.QPoint, io.qt.core.QRectF, double, double, double, double)
static QPainter.PixmapFragment
Overloaded function forcreate(io.qt.core.QPoint, io.qt.core.QRectF, double, double, double, double)
withopacity = 1
.static QPainter.PixmapFragment
create
(QPoint pos, QRectF sourceRect, double scaleX, double scaleY, double rotation, double opacity) Overloaded function forcreate(io.qt.core.QPointF, io.qt.core.QRectF, double, double, double, double)
.static QPainter.PixmapFragment
Overloaded function forcreate(io.qt.core.QPoint, io.qt.core.QRect, double, double, double, double)
static QPainter.PixmapFragment
Overloaded function forcreate(io.qt.core.QPoint, io.qt.core.QRect, double, double, double, double)
static QPainter.PixmapFragment
Overloaded function forcreate(io.qt.core.QPoint, io.qt.core.QRect, double, double, double, double)
withopacity = 1
.static QPainter.PixmapFragment
Overloaded function forcreate(io.qt.core.QPointF, io.qt.core.QRectF, double, double, double, double)
.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() -
PixmapFragment
See
QPainter::PixmapFragment::
PixmapFragment(QPainter::PixmapFragment) - Parameters:
other
-
-
PixmapFragment
public PixmapFragment(double x, double y, double sourceLeft, double sourceTop, double width, double height, double scaleX, double scaleY, double rotation, double opacity) See
QPainter::PixmapFragment::
PixmapFragment{qreal, qreal, qreal, qreal, qreal, qreal, qreal, qreal, qreal, qreal} - Parameters:
x
-y
-sourceLeft
-sourceTop
-width
-height
-scaleX
-scaleY
-rotation
-opacity
-
-
-
Method Details
-
create
public static QPainter.PixmapFragment create(QPointF pos, QRectF sourceRect, double scaleX, double scaleY, double rotation, double opacity) - Parameters:
pos
-sourceRect
-scaleX
-scaleY
-rotation
-opacity
-- Returns:
-
setHeight
The height of the source rectangle and is used to calculate the height of the target rectangle
- Parameters:
height
-
-
height
The height of the source rectangle and is used to calculate the height of the target rectangle
- Returns:
-
setOpacity
The opacity of the target rectangle, where 0.0 is fully transparent and 1.0 is fully opaque
- Parameters:
opacity
-
-
opacity
The opacity of the target rectangle, where 0.0 is fully transparent and 1.0 is fully opaque
- Returns:
-
setRotation
The rotation of the target rectangle in degrees. The target rectangle is rotated after it has been scaled
- Parameters:
rotation
-
-
rotation
The rotation of the target rectangle in degrees. The target rectangle is rotated after it has been scaled
- Returns:
-
setScaleX
The horizontal scale of the target rectangle
- Parameters:
scaleX
-
-
scaleX
The horizontal scale of the target rectangle
- Returns:
-
setScaleY
The vertical scale of the target rectangle
- Parameters:
scaleY
-
-
scaleY
The vertical scale of the target rectangle
- Returns:
-
setSourceLeft
The left coordinate of the source rectangle
- Parameters:
sourceLeft
-
-
sourceLeft
The left coordinate of the source rectangle
- Returns:
-
setSourceTop
The top coordinate of the source rectangle
- Parameters:
sourceTop
-
-
sourceTop
The top coordinate of the source rectangle
- Returns:
-
setWidth
The width of the source rectangle and is used to calculate the width of the target rectangle
- Parameters:
width
-
-
width
The width of the source rectangle and is used to calculate the width of the target rectangle
- Returns:
-
setX
The x coordinate of center point in the target rectangle
- Parameters:
x
-
-
x
The x coordinate of center point in the target rectangle
- Returns:
-
setY
The y coordinate of the center point in the target rectangle
- Parameters:
y
-
-
y
The y coordinate of the center point in the target rectangle
- Returns:
-
clone
Creates and returns a copy of this object.
See
QPainter::PixmapFragment::
PixmapFragment(QPainter::PixmapFragment) -
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(QPoint pos, QRectF sourceRect, double scaleX, double scaleY, double rotation) Overloaded function for
create(io.qt.core.QPoint, io.qt.core.QRectF, double, double, double, double)
withopacity = 1
. -
create
public static QPainter.PixmapFragment create(QPoint pos, QRectF sourceRect, double scaleX, double scaleY) Overloaded function for
create(io.qt.core.QPoint, io.qt.core.QRectF, double, double, double, double)
with:
rotation = 0
opacity = 1
-
create
Overloaded function for
create(io.qt.core.QPoint, io.qt.core.QRectF, double, double, double, double)
with:
scaleY = 1
rotation = 0
opacity = 1
-
create
Overloaded function for
create(io.qt.core.QPoint, io.qt.core.QRectF, double, double, double, double)
with:
scaleX = 1
scaleY = 1
rotation = 0
opacity = 1
-
create
public static QPainter.PixmapFragment create(QPoint pos, QRectF sourceRect, double scaleX, double scaleY, double rotation, double opacity) Overloaded function for
create(io.qt.core.QPointF, io.qt.core.QRectF, double, double, double, double)
. -
create
public static QPainter.PixmapFragment create(QPointF pos, QRect sourceRect, double scaleX, double scaleY, double rotation) Overloaded function for
create(io.qt.core.QPointF, io.qt.core.QRect, double, double, double, double)
withopacity = 1
. -
create
public static QPainter.PixmapFragment create(QPointF pos, QRect sourceRect, double scaleX, double scaleY) Overloaded function for
create(io.qt.core.QPointF, io.qt.core.QRect, double, double, double, double)
with:
rotation = 0
opacity = 1
-
create
Overloaded function for
create(io.qt.core.QPointF, io.qt.core.QRect, double, double, double, double)
with:
scaleY = 1
rotation = 0
opacity = 1
-
create
Overloaded function for
create(io.qt.core.QPointF, io.qt.core.QRect, double, double, double, double)
with:
scaleX = 1
scaleY = 1
rotation = 0
opacity = 1
-
create
public static QPainter.PixmapFragment create(QPointF pos, QRect sourceRect, double scaleX, double scaleY, double rotation, double opacity) Overloaded function for
create(io.qt.core.QPointF, io.qt.core.QRectF, double, double, double, double)
. -
create
public static QPainter.PixmapFragment create(QPoint pos, QRect sourceRect, double scaleX, double scaleY, double rotation) Overloaded function for
create(io.qt.core.QPoint, io.qt.core.QRect, double, double, double, double)
withopacity = 1
. -
create
public static QPainter.PixmapFragment create(QPoint pos, QRect sourceRect, double scaleX, double scaleY) Overloaded function for
create(io.qt.core.QPoint, io.qt.core.QRect, double, double, double, double)
with:
rotation = 0
opacity = 1
-
create
Overloaded function for
create(io.qt.core.QPoint, io.qt.core.QRect, double, double, double, double)
with:
scaleY = 1
rotation = 0
opacity = 1
-
create
Overloaded function for
create(io.qt.core.QPoint, io.qt.core.QRect, double, double, double, double)
with:
scaleX = 1
scaleY = 1
rotation = 0
opacity = 1
-
create
public static QPainter.PixmapFragment create(QPoint pos, QRect sourceRect, double scaleX, double scaleY, double rotation, double opacity) Overloaded function for
create(io.qt.core.QPointF, io.qt.core.QRectF, double, double, double, double)
.
-