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