java.lang.Object
io.qt.internal.QtJambiObject
io.qt.QtObject
io.qt.gui.QRegion
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
,Iterable<QRect>
public class QRegion extends QtObject implements Iterable<QRect>, Cloneable
Specifies a clip region for a painter
Java wrapper for Qt class QRegion
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
QRegion.RegionType
Java wrapper for Qt enum QRegion::RegionType -
Constructor Summary
Constructors Modifier Constructor Description QRegion()
QRegion(int x, int y, int w, int h)
Overloaded constructor forQRegion(int, int, int, int, io.qt.gui.QRegion.RegionType)
witht = io.qt.gui.QRegion.RegionType.Rectangle
.QRegion(int x, int y, int w, int h, QRegion.RegionType t)
QRegion(QRect r)
Overloaded constructor forQRegion(io.qt.core.QRect, io.qt.gui.QRegion.RegionType)
witht = io.qt.gui.QRegion.RegionType.Rectangle
.QRegion(QRect r, QRegion.RegionType t)
QRegion(QBitmap bitmap)
QRegion(QPolygon pa)
Overloaded constructor forQRegion(io.qt.gui.QPolygon, io.qt.core.Qt.FillRule)
withfillRule = io.qt.core.Qt.FillRule.OddEvenFill
.QRegion(QPolygon pa, Qt.FillRule fillRule)
QRegion(QRegion region)
protected
QRegion(QtObject.QPrivateConstructor p)
Constructor for internal use only. -
Method Summary
Modifier and Type Method Description protected QIterator<QRect>
begin()
QRect
boundingRect()
QRegion
clone()
boolean
contains(QPoint p)
boolean
contains(QRect r)
protected QIterator<QRect>
end()
boolean
equals(Object other)
Used to check if this object shares native resources with the other object if the other object is a subtype of QtJambiInterface.int
hashCode()
QRegion
intersected(QRect r)
QRegion
intersected(QRegion r)
boolean
intersects(QRect r)
boolean
intersects(QRegion r)
boolean
isEmpty()
boolean
isNull()
Iterator<QRect>
iterator()
void
readFrom(QDataStream arg__1)
int
rectCount()
QVector<QRect>
rects()
Deprecated.Use begin()/end() insteadvoid
setRects(QRect[] rect)
QRegion
subtracted(QRegion r)
void
swap(QRegion other)
String
toString()
void
translate(int dx, int dy)
void
translate(QPoint p)
QRegion
translated(int dx, int dy)
QRegion
translated(QPoint p)
QRegion
united(QRect r)
QRegion
united(QRegion r)
void
writeTo(QDataStream arg__1)
QRegion
xored(QRegion r)
-
Constructor Details
-
QRegion
public QRegion() -
QRegion
-
QRegion
Overloaded constructor for
QRegion(io.qt.gui.QPolygon, io.qt.core.Qt.FillRule)
withfillRule = io.qt.core.Qt.FillRule.OddEvenFill
. -
QRegion
-
QRegion
Overloaded constructor for
QRegion(io.qt.core.QRect, io.qt.gui.QRegion.RegionType)
witht = io.qt.gui.QRegion.RegionType.Rectangle
. -
QRegion
-
QRegion
-
QRegion
public QRegion(int x, int y, int w, int h)Overloaded constructor for
QRegion(int, int, int, int, io.qt.gui.QRegion.RegionType)
witht = io.qt.gui.QRegion.RegionType.Rectangle
. -
QRegion
-
QRegion
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
-
Method Details
-
begin
-
boundingRect
-
contains
-
contains
-
end
-
intersected
-
intersected
-
intersects
-
intersects
-
isEmpty
-
isNull
-
writeTo
-
readFrom
-
rectCount
-
rects
Deprecated.Use begin()/end() instead -
setRects
-
subtracted
-
swap
-
translate
-
translate
-
translated
-
translated
-
united
-
united
-
xored
-
iterator
-
equals
Description copied from class:QtObject
Used to check if this object shares native resources with the other object if the other object is a subtype of QtJambiInterface. Otherwise it will return the result of calling the super class implementation. -
hashCode
-
toString
-
clone
-