Go to the source code of this file.
◆ setWindowGeometry()
static DFBResult setWindowGeometry |
( |
IDirectFBWindow * |
dfbWindow, |
|
|
const QRect & |
old, |
|
|
const QRect & |
rect |
|
) |
| |
|
static |
Definition at line 185 of file qdirectfbwindowsurface.cpp.
Referenced by QDirectFBWindowSurface::setGeometry().
187 DFBResult result = DFB_OK;
189 const bool isResize = rect.
size() != old.
size();
191 #if (Q_DIRECTFB_VERSION >= 0x010000) 192 if (isResize && isMove) {
193 result = dfbWindow->SetBounds(dfbWindow, rect.
x(), rect.
y(),
195 }
else if (isResize) {
196 result = dfbWindow->Resize(dfbWindow,
199 result = dfbWindow->MoveTo(dfbWindow, rect.
x(), rect.
y());
203 result = dfbWindow->Resize(dfbWindow,
207 result = dfbWindow->MoveTo(dfbWindow, rect.
x(), rect.
y());
int width() const
Returns the width of the rectangle.
int height() const
Returns the height of the rectangle.
QSize size() const
Returns the size of the rectangle.
bool isEmpty() const
Returns true if the rectangle is empty, otherwise returns false.
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.
QPoint topLeft() const
Returns the position of the rectangle's top-left corner.