- All Implemented Interfaces:
QtObjectInterface
,Cloneable
Defines a finite rectangle in the plane using floating point precision
Java wrapper for Qt class QRectF
-
Constructor Summary
ConstructorDescriptionQRectF()
SeeQRectF::
QRectF() QRectF
(double left, double top, double width, double height) Overloaded constructor forQRectF(io.qt.core.QPointF, io.qt.core.QPointF)
.Overloaded constructor forQRectF(io.qt.core.QPointF, io.qt.core.QSizeF)
.Overloaded constructor forQRectF(io.qt.core.QPointF, io.qt.core.QPointF)
.Overloaded constructor forQRectF(io.qt.core.QPointF, io.qt.core.QPointF)
.Overloaded constructor forQRectF(io.qt.core.QPointF, io.qt.core.QSizeF)
.Overloaded constructor forQRectF(io.qt.core.QPointF, io.qt.core.QSizeF)
.SeeQRectF::
QRectF(QRectF) -
Method Summary
Modifier and TypeMethodDescriptionfinal QRectF
Overloaded function foradd(io.qt.core.QMarginsF)
.final QRectF
final void
adjust
(double x1, double y1, double x2, double y2) final QRectF
adjusted
(double x1, double y1, double x2, double y2) final double
bottom()
final QPointF
final QPointF
final QPointF
center()
clone()
Creates and returns a copy of this object.final boolean
contains
(double x, double y) final boolean
Overloaded function forcontains(io.qt.core.QPointF)
.final boolean
final boolean
Overloaded function forcontains(io.qt.core.QRectF)
.final boolean
final boolean
Overloaded function forequals(io.qt.core.QRectF)
.final boolean
boolean
int
hashCode()
Returns the objects's hash code computed byqHash(QRectF)
.final double
height()
final QRectF
intersected
(QRect other) Overloaded function forintersected(io.qt.core.QRectF)
.final QRectF
intersected
(QRectF other) final boolean
intersects
(QRect r) Overloaded function forintersects(io.qt.core.QRectF)
.final boolean
intersects
(QRectF r) final boolean
isEmpty()
final boolean
isNull()
final boolean
isValid()
final double
left()
final QRectF
marginsAdded
(QMargins margins) Overloaded function formarginsAdded(io.qt.core.QMarginsF)
.final QRectF
marginsAdded
(QMarginsF margins) final QRectF
marginsRemoved
(QMargins margins) Overloaded function formarginsRemoved(io.qt.core.QMarginsF)
.final QRectF
marginsRemoved
(QMarginsF margins) final QRectF
Overloaded function forminus(io.qt.core.QMarginsF)
.final QRectF
final void
moveBottom
(double pos) final void
Overloaded function formoveBottomLeft(io.qt.core.QPointF)
.final void
final void
Overloaded function formoveBottomRight(io.qt.core.QPointF)
.final void
final void
moveCenter
(QPoint p) Overloaded function formoveCenter(io.qt.core.QPointF)
.final void
final void
moveLeft
(double pos) final void
moveRight
(double pos) final void
moveTo
(double x, double y) final void
Overloaded function formoveTo(io.qt.core.QPointF)
.final void
final void
moveTop
(double pos) final void
Overloaded function formoveTopLeft(io.qt.core.QPointF)
.final void
final void
Overloaded function formoveTopRight(io.qt.core.QPointF)
.final void
final QRectF
final QRectF
Overloaded function forplus(io.qt.core.QMarginsF)
.final QRectF
Seeoperator+(QRectF,
QMarginsF) void
readFrom
(QDataStream arg__1) Seeoperator>>(QDataStream&,
QRectF&) final double
right()
final void
setBottom
(double pos) final void
Overloaded function forsetBottomLeft(io.qt.core.QPointF)
.final void
final void
Overloaded function forsetBottomRight(io.qt.core.QPointF)
.final void
final void
setCoords
(double x1, double y1, double x2, double y2) final void
setHeight
(double h) final void
setLeft
(double pos) final void
setRect
(double x, double y, double w, double h) final void
setRight
(double pos) final void
Overloaded function forsetSize(io.qt.core.QSizeF)
.final void
final void
setTop
(double pos) final void
setTopLeft
(QPoint p) Overloaded function forsetTopLeft(io.qt.core.QPointF)
.final void
final void
Overloaded function forsetTopRight(io.qt.core.QPointF)
.final void
final void
setWidth
(double w) final void
setX
(double pos) final void
setY
(double pos) final QSizeF
size()
final QRectF
Overloaded function forsubtract(io.qt.core.QMarginsF)
.final QRectF
final QRect
final double
top()
final QPointF
topLeft()
final QPointF
topRight()
final QRect
toRect()
toString()
Seeoperator<<(QDebug,
QRectF) final void
translate
(double dx, double dy) final void
Overloaded function fortranslate(io.qt.core.QPointF)
.final void
final QRectF
translated
(double dx, double dy) final QRectF
translated
(QPoint p) Overloaded function fortranslated(io.qt.core.QPointF)
.final QRectF
final QRectF
final QRectF
Overloaded function forunited(io.qt.core.QRectF)
.final QRectF
final double
width()
void
writeTo
(QDataStream arg__1) Seeoperator<<(QDataStream&,
QRectF) final double
x()
SeeQRectF::
x()const final double
y()
SeeQRectF::
y()const Methods inherited from class io.qt.QtObject
dispose, isDisposed
-
Constructor Details
-
QRectF
public QRectF()See
QRectF::
QRectF() -
QRectF
- Parameters:
topleft
-bottomRight
-
-
QRectF
- Parameters:
topleft
-size
-
-
QRectF
- Parameters:
rect
-
-
QRectF
See
QRectF::
QRectF(QRectF) - Parameters:
other
-
-
QRectF
public QRectF(double left, double top, double width, double height) - Parameters:
left
-top
-width
-height
-
-
QRectF
Overloaded constructor for
QRectF(io.qt.core.QPointF, io.qt.core.QPointF)
. -
QRectF
Overloaded constructor for
QRectF(io.qt.core.QPointF, io.qt.core.QPointF)
. -
QRectF
Overloaded constructor for
QRectF(io.qt.core.QPointF, io.qt.core.QPointF)
. -
QRectF
Overloaded constructor for
QRectF(io.qt.core.QPointF, io.qt.core.QSizeF)
. -
QRectF
Overloaded constructor for
QRectF(io.qt.core.QPointF, io.qt.core.QSizeF)
. -
QRectF
Overloaded constructor for
QRectF(io.qt.core.QPointF, io.qt.core.QSizeF)
.
-
-
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
-- Returns:
-
contains
- Parameters:
r
-- Returns:
-
contains
- Parameters:
x
-y
-- 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
-y
-
-
moveTop
- Parameters:
pos
-
-
moveTopLeft
- Parameters:
p
-
-
moveTopRight
- Parameters:
p
-
-
normalized
- Returns:
-
plus
See
operator+(QRectF,
QMarginsF) - Parameters:
rhs
-- Returns:
-
add
- Parameters:
margins
-- Returns:
-
minus
- Parameters:
rhs
-- Returns:
-
subtract
- Parameters:
margins
-- Returns:
-
writeTo
See
operator<<(QDataStream&,
QRectF) - Parameters:
arg__1
-
-
equals
- Parameters:
r2
-- Returns:
-
readFrom
See
operator>>(QDataStream&,
QRectF&) - 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
- Parameters:
pos
-
-
setY
- Parameters:
pos
-
-
size
- Returns:
-
toAlignedRect
- Returns:
-
toRect
- Returns:
-
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
QRectF::
x()const - Returns:
-
y
See
QRectF::
y()const - Returns:
-
equals
-
hashCode
Returns the objects's hash code computed byqHash(QRectF)
. -
toString
See
operator<<(QDebug,
QRectF) -
clone
Creates and returns a copy of this object.
See
QRectF::
QRectF(QRectF) -
contains
Overloaded function for
contains(io.qt.core.QPointF)
. -
contains
Overloaded function for
contains(io.qt.core.QRectF)
. -
intersected
Overloaded function for
intersected(io.qt.core.QRectF)
. -
intersects
Overloaded function for
intersects(io.qt.core.QRectF)
. -
marginsAdded
Overloaded function for
marginsAdded(io.qt.core.QMarginsF)
. -
marginsRemoved
Overloaded function for
marginsRemoved(io.qt.core.QMarginsF)
. -
moveBottomLeft
Overloaded function for
moveBottomLeft(io.qt.core.QPointF)
. -
moveBottomRight
Overloaded function for
moveBottomRight(io.qt.core.QPointF)
. -
moveCenter
Overloaded function for
moveCenter(io.qt.core.QPointF)
. -
moveTo
Overloaded function for
moveTo(io.qt.core.QPointF)
. -
moveTopLeft
Overloaded function for
moveTopLeft(io.qt.core.QPointF)
. -
moveTopRight
Overloaded function for
moveTopRight(io.qt.core.QPointF)
. -
plus
Overloaded function for
plus(io.qt.core.QMarginsF)
. -
add
Overloaded function for
add(io.qt.core.QMarginsF)
. -
minus
Overloaded function for
minus(io.qt.core.QMarginsF)
. -
subtract
Overloaded function for
subtract(io.qt.core.QMarginsF)
. -
equals
Overloaded function for
equals(io.qt.core.QRectF)
. -
setBottomLeft
Overloaded function for
setBottomLeft(io.qt.core.QPointF)
. -
setBottomRight
Overloaded function for
setBottomRight(io.qt.core.QPointF)
. -
setSize
Overloaded function for
setSize(io.qt.core.QSizeF)
. -
setTopLeft
Overloaded function for
setTopLeft(io.qt.core.QPointF)
. -
setTopRight
Overloaded function for
setTopRight(io.qt.core.QPointF)
. -
translate
Overloaded function for
translate(io.qt.core.QPointF)
. -
translated
Overloaded function for
translated(io.qt.core.QPointF)
. -
united
Overloaded function for
united(io.qt.core.QRectF)
.
-