#include "qcocoawindowsurface.h"
#include <QtCore/qdebug.h>
#include <QtGui/QPainter>
Go to the source code of this file.
◆ flipedRect()
QRect flipedRect |
( |
const QRect & |
sourceRect, |
|
|
int |
height |
|
) |
| |
Definition at line 50 of file qcocoawindowsurface.mm.
54 QRect flippedRect = sourceRect;
55 flippedRect.
moveTop(height - sourceRect.
y());
int y() const
Returns the y-coordinate of the rectangle's top edge.
The QRect class defines a rectangle in the plane using integer precision.
void moveTop(int pos)
Moves the rectangle vertically, leaving the rectangle's top edge at the given y coordinate.
bool isValid() const
Returns true if the rectangle is valid, otherwise returns false.