java.lang.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 class QRect
-
Constructor Summary
-
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()
Creates and returns a copy of this object.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
final boolean
Seeoperator==(QRect,
QRect) boolean
Seeoperator==(QRect,
QRect) int
hashCode()
Returns the objects's hash code computed byqHash(QRect)
.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 QRect
Seeoperator-(QRect,
QMargins) 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
final QRect
Seeoperator+(QRect,
QMargins) void
readFrom
(QDataStream arg__1) Seeoperator>>(QDataStream&,
QRect&) 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) SeeQRect::
setX(int) final void
setY
(int y) SeeQRect::
setY(int) final QSize
size()
final QRect
final int
top()
final QPoint
topLeft()
final QPoint
topRight()
toString()
Seeoperator<<(QDebug,
QRect) 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) Seeoperator<<(QDataStream&,
QRect) final int
x()
SeeQRect::
x()const final int
y()
SeeQRect::
y()const Methods 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)
-
-
Method Details
-
adjust
-
adjusted
-
bottom
-
bottomLeft
-
bottomRight
-
center
-
contains
-
contains
-
contains
-
contains
-
height
-
intersected
-
intersects
-
isEmpty
-
isNull
-
isValid
-
left
-
marginsAdded
-
marginsRemoved
-
moveBottom
-
moveBottomLeft
-
moveBottomRight
-
moveCenter
-
moveLeft
-
moveRight
-
moveTo
-
moveTo
-
moveTop
-
moveTopLeft
-
moveTopRight
-
normalized
-
plus
See
operator+(QRect,
QMargins) -
add
-
minus
See
operator-(QRect,
QMargins) -
subtract
-
writeTo
See
operator<<(QDataStream&,
QRect) -
equals
See
operator==(QRect,
QRect) -
readFrom
See
operator>>(QDataStream&,
QRect&) -
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 -
equals
See
operator==(QRect,
QRect) -
hashCode
Returns the objects's hash code computed byqHash(QRect)
. -
toString
See
operator<<(QDebug,
QRect) -
clone
Creates and returns a copy of this object.
-
contains
Overloaded function for
contains(io.qt.core.QPoint, boolean)
withproper = false
. -
contains
Overloaded function for
contains(io.qt.core.QRect, boolean)
withproper = false
.
-