#include "qrect.h"
#include "qdatastream.h"
#include "qdebug.h"
#include "qmath.h"
#include <math.h>
Go to the source code of this file.
◆ operator<<() [1/4]
Definition at line 1512 of file qrect.cpp.
int left() const
Returns the x-coordinate of the rectangle's left edge.
int bottom() const
Returns the y-coordinate of the rectangle's bottom edge.
int version() const
Returns the version number of the data serialization format.
int top() const
Returns the y-coordinate of the rectangle's top edge.
int right() const
Returns the x-coordinate of the rectangle's right edge.
◆ operator<<() [2/4]
Definition at line 1555 of file qrect.cpp.
1556 dbg.
nospace() <<
"QRect(" << r.
x() <<
',' << r.
y() <<
' ' QDebug & nospace()
Clears the stream's internal flag that records whether the last character was a space and returns a r...
int width() const
Returns the width of the rectangle.
int height() const
Returns the height of the rectangle.
int y() const
Returns the y-coordinate of the rectangle's top edge.
int x() const
Returns the x-coordinate of the rectangle's left edge.
QDebug & space()
Writes a space character to the debug stream and returns a reference to the stream.
◆ operator<<() [3/4]
Definition at line 2879 of file qrect.cpp.
2881 s << double(r.
x()) <<
double(r.
y()) <<
double(r.
width()) <<
double(r.
height());
qreal y() const
Returns the y-coordinate of the rectangle's top edge.
qreal height() const
Returns the height of the rectangle.
qreal width() const
Returns the width of the rectangle.
qreal x() const
Returns the x-coordinate of the rectangle's left edge.
◆ operator<<() [4/4]
Definition at line 2914 of file qrect.cpp.
2915 dbg.
nospace() <<
"QRectF(" << r.
x() <<
',' << r.
y() <<
' ' qreal y() const
Returns the y-coordinate of the rectangle's top edge.
QDebug & nospace()
Clears the stream's internal flag that records whether the last character was a space and returns a r...
qreal height() const
Returns the height of the rectangle.
qreal width() const
Returns the width of the rectangle.
qreal x() const
Returns the x-coordinate of the rectangle's left edge.
QDebug & space()
Writes a space character to the debug stream and returns a reference to the stream.
◆ operator>>() [1/2]
Definition at line 1536 of file qrect.cpp.
1540 s >> x1; s >> y1; s >> x2; s >> y2;
1545 s >> x1; s >> y1; s >> x2; s >> y2;
void setCoords(int x1, int y1, int x2, int y2)
Sets the coordinates of the rectangle's top-left corner to (x1, y1), and the coordinates of its botto...
int version() const
Returns the version number of the data serialization format.
◆ operator>>() [2/2]
Definition at line 2899 of file qrect.cpp.
void setRect(qreal x, qreal y, qreal w, qreal h)
Sets the coordinates of the rectangle's top-left corner to (x, y), and its size to the given width an...