java.lang.Object
io.qt.internal.NativeUtility.Object
io.qt.QtObject
io.qt.core.QRect
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
Defines a rectangle in the plane using integer precision
Java wrapper for Qt's class QRect
-
Nested Class Summary
Nested classes/interfaces inherited from class io.qt.QtObject
QtObject.QPrivateConstructor
-
Constructor Summary
ModifierConstructorDescriptionQRect()
See QRect::QRect()QRect
(int left, int top, int width, int height) protected
Constructor for internal use only. -
Method Summary
Modifier and TypeMethodDescriptionfinal QRect
final void
adjust
(int x1, int y1, int x2, int y2) final QRect
adjusted
(int x1, int y1, int x2, int y2) final int
bottom()
final QPoint
final QPoint
final QPoint
center()
clone()
final boolean
contains
(int x, int y) final boolean
contains
(int x, int y, boolean proper) final boolean
Overloaded function forcontains(io.qt.core.QPoint, boolean)
withproper = false
.final boolean
final boolean
Overloaded function forcontains(io.qt.core.QRect, boolean)
withproper = false
.final boolean
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 int
height()
final QRect
intersected
(QRect other) final boolean
intersects
(QRect r) final boolean
isEmpty()
final boolean
isNull()
final boolean
isValid()
final int
left()
final QRect
marginsAdded
(QMargins margins) final QRect
marginsRemoved
(QMargins margins) final void
moveBottom
(int pos) final void
final void
final void
moveCenter
(QPoint p) final void
moveLeft
(int pos) final void
moveRight
(int pos) final void
moveTo
(int x, int t) final void
final void
moveTop
(int pos) final void
final void
final QRect
void
readFrom
(QDataStream arg__1) final int
right()
final void
setBottom
(int pos) final void
final void
final void
setCoords
(int x1, int y1, int x2, int y2) final void
setHeight
(int h) final void
setLeft
(int pos) final void
setRect
(int x, int y, int w, int h) final void
setRight
(int pos) final void
final void
setTop
(int pos) final void
setTopLeft
(QPoint p) final void
final void
setWidth
(int w) final void
setX
(int x) See QRect::setX(int)final void
setY
(int y) See QRect::setY(int)final QSize
size()
static QRect
final QRect
final int
top()
final QPoint
topLeft()
final QPoint
topRight()
toString()
final void
translate
(int dx, int dy) final void
final QRect
translated
(int dx, int dy) final QRect
translated
(QPoint p) final QRect
final QRect
final int
width()
void
writeTo
(QDataStream arg__1) final int
x()
See QRect::x()constfinal int
y()
See QRect::y()constMethods inherited from class io.qt.QtObject
dispose, isDisposed
-
Constructor Details
-
QRect
public QRect()See QRect::QRect()
-
QRect
-
QRect
-
QRect
public QRect(int left, int top, int width, int height) -
QRect
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
-
Method Details
-
adjust
-
adjusted
-
bottom
-
bottomLeft
-
bottomRight
-
center
-
contains
Overloaded function for
contains(io.qt.core.QPoint, boolean)
withproper = false
. -
contains
-
contains
Overloaded function for
contains(io.qt.core.QRect, boolean)
withproper = false
. -
contains
-
contains
-
contains
-
height
-
intersected
-
intersects
-
isEmpty
-
isNull
-
isValid
-
left
-
marginsAdded
-
marginsRemoved
-
moveBottom
-
moveBottomLeft
-
moveBottomRight
-
moveCenter
-
moveLeft
-
moveRight
-
moveTo
-
moveTo
-
moveTop
-
moveTopLeft
-
moveTopRight
-
normalized
-
add
-
subtract
-
writeTo
-
readFrom
-
right
-
setBottom
-
setBottomLeft
-
setBottomRight
-
setCoords
-
setHeight
-
setLeft
-
setRect
-
setRight
-
setSize
-
setTop
-
setTopLeft
-
setTopRight
-
setWidth
-
setX
See QRect::setX(int)
-
setY
See QRect::setY(int)
-
size
-
top
-
topLeft
-
topRight
-
translate
-
translate
-
translated
-
translated
-
transposed
-
united
-
width
-
x
See QRect::x()const
-
y
See QRect::y()const
-
span
-
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
-