java.lang.Object
io.qt.internal.NativeUtility.Object
io.qt.QtObject
io.qt.gui.QRegion
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
,Iterable<QRect>
Specifies a clip region for a painter
Java wrapper for Qt's class QRegion
-
Nested Class Summary
Nested classes/interfaces inherited from class io.qt.QtObject
QtObject.QPrivateConstructor
-
Constructor Summary
ModifierConstructorDescriptionQRegion()
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) 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) 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) protected
Constructor for internal use only. -
Method Summary
Modifier and TypeMethodDescriptionprotected final QSequentialConstIterator<QRect>
begin()
final QRect
clone()
final boolean
final boolean
protected final QSequentialConstIterator<QRect>
end()
boolean
Used to check if this object shares the same native counterpart with the other object, i.e. the objects are equals if their native counterparts are identical.int
hashCode()
final QRegion
intersected
(QRect r) final QRegion
final boolean
intersects
(QRect r) final boolean
final boolean
isEmpty()
final boolean
isNull()
iterator()
final QRegion
final QRegion
final QRegion
void
readFrom
(QDataStream arg__1) final int
rects()
Deprecated.Use begin()/end() insteadfinal void
final QRegion
final void
toString()
final void
translate
(int dx, int dy) final void
final QRegion
translated
(int dx, int dy) final QRegion
translated
(QPoint p) final QRegion
final QRegion
void
writeTo
(QDataStream arg__1) final QRegion
Methods inherited from class io.qt.QtObject
dispose, isDisposed
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
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
-
plus
-
plus
-
minus
-
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 the same native counterpart with the other object, i.e. the objects are equals if their native counterparts are identical. Qt value types override this method to make a value comparison. Otherwise it will return the result of calling the super class implementation. -
hashCode
-
toString
-
clone
-