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
ConstructorDescriptionQRect()
SeeQRect::
QRect() QRect
(int left, int top, int width, int height) SeeQRect::
QRect(QRect) -
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
boolean
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()
static QRect
final QRect
final int
top()
final QPoint
topLeft()
final QPoint
topRight()
final QRectF
toRectF()
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
- Parameters:
topleft
-bottomright
-
-
QRect
- Parameters:
topleft
-size
-
-
QRect
See
QRect::
QRect(QRect) - Parameters:
other
-
-
QRect
public QRect(int left, int top, int width, int height) - Parameters:
left
-top
-width
-height
-
-
-
Method Details
-
adjust
- Parameters:
x1
-y1
-x2
-y2
-
-
adjusted
- Parameters:
x1
-y1
-x2
-y2
-- Returns:
-
bottom
- Returns:
-
bottomLeft
- Returns:
-
bottomRight
- Returns:
-
center
- Returns:
-
contains
- Parameters:
p
-proper
-- Returns:
-
contains
- Parameters:
r
-proper
-- Returns:
-
contains
- Parameters:
x
-y
-- Returns:
-
contains
- Parameters:
x
-y
-proper
-- Returns:
-
height
- Returns:
-
intersected
- Parameters:
other
-- Returns:
-
intersects
- Parameters:
r
-- Returns:
-
isEmpty
- Returns:
-
isNull
- Returns:
-
isValid
- Returns:
-
left
- Returns:
-
marginsAdded
- Parameters:
margins
-- Returns:
-
marginsRemoved
- Parameters:
margins
-- Returns:
-
moveBottom
- Parameters:
pos
-
-
moveBottomLeft
- Parameters:
p
-
-
moveBottomRight
- Parameters:
p
-
-
moveCenter
- Parameters:
p
-
-
moveLeft
- Parameters:
pos
-
-
moveRight
- Parameters:
pos
-
-
moveTo
- Parameters:
p
-
-
moveTo
- Parameters:
x
-t
-
-
moveTop
- Parameters:
pos
-
-
moveTopLeft
- Parameters:
p
-
-
moveTopRight
- Parameters:
p
-
-
normalized
- Returns:
-
plus
See
operator+(QRect,
QMargins) - Parameters:
margins
-- Returns:
-
add
- Parameters:
margins
-- Returns:
-
minus
See
operator-(QRect,
QMargins) - Parameters:
rhs
-- Returns:
-
subtract
- Parameters:
margins
-- Returns:
-
writeTo
See
operator<<(QDataStream&,
QRect) - Parameters:
arg__1
-
-
equals
- Parameters:
r2
-- Returns:
-
readFrom
See
operator>>(QDataStream&,
QRect&) - Parameters:
arg__1
-
-
right
- Returns:
-
setBottom
- Parameters:
pos
-
-
setBottomLeft
- Parameters:
p
-
-
setBottomRight
- Parameters:
p
-
-
setCoords
- Parameters:
x1
-y1
-x2
-y2
-
-
setHeight
- Parameters:
h
-
-
setLeft
- Parameters:
pos
-
-
setRect
- Parameters:
x
-y
-w
-h
-
-
setRight
- Parameters:
pos
-
-
setSize
- Parameters:
s
-
-
setTop
- Parameters:
pos
-
-
setTopLeft
- Parameters:
p
-
-
setTopRight
- Parameters:
p
-
-
setWidth
- Parameters:
w
-
-
setX
See
QRect::
setX(int) - Parameters:
x
-
-
setY
See
QRect::
setY(int) - Parameters:
y
-
-
size
- Returns:
-
toRectF
- Returns:
- Since:
- This function was introduced in Qt 6.4.
-
top
- Returns:
-
topLeft
- Returns:
-
topRight
- Returns:
-
translate
- Parameters:
p
-
-
translate
- Parameters:
dx
-dy
-
-
translated
- Parameters:
p
-- Returns:
-
translated
- Parameters:
dx
-dy
-- Returns:
-
transposed
- Returns:
-
united
- Parameters:
other
-- Returns:
-
width
- Returns:
-
x
See
QRect::
x()const - Returns:
-
y
See
QRect::
y()const - Returns:
-
span
- Parameters:
p1
-p2
-- Returns:
- Since:
- This function was introduced in Qt 6.0.
-
equals
-
hashCode
Returns the objects's hash code computed byqHash(QRect)
. -
toString
See
operator<<(QDebug,
QRect) -
clone
Creates and returns a copy of this object.
See
QRect::
QRect(QRect) -
contains
Overloaded function for
contains(io.qt.core.QPoint, boolean)
withproper = false
. -
contains
Overloaded function for
contains(io.qt.core.QRect, boolean)
withproper = false
.
-