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