Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
|
Stores geometry constraints and provides utility functions. More...
#include <qwindowswindow.h>
Static Public Member Functions | |
static QMargins | frameOnPrimaryScreen (const QWindow *w, DWORD style, DWORD exStyle) |
static QMargins | frameOnPrimaryScreen (const QWindow *w, HWND hwnd) |
static QMargins | frame (const QWindow *w, DWORD style, DWORD exStyle, qreal dpi) |
static QMargins | frame (const QWindow *w, HWND hwnd, DWORD style, DWORD exStyle) |
static QMargins | frame (const QWindow *w, HWND hwnd) |
static QMargins | frame (const QWindow *w, const QRect &geometry, DWORD style, DWORD exStyle) |
static bool | handleCalculateSize (const QMargins &customMargins, const MSG &msg, LRESULT *result) |
static void | applyToMinMaxInfo (const QWindow *w, const QScreen *screen, const QMargins &margins, MINMAXINFO *mmi) |
static void | applyToMinMaxInfo (const QWindow *w, const QMargins &margins, MINMAXINFO *mmi) |
static void | frameSizeConstraints (const QWindow *w, const QScreen *screen, const QMargins &margins, QSize *minimumSize, QSize *maximumSize) |
static QPoint | mapToGlobal (HWND hwnd, const QPoint &) |
static QPoint | mapToGlobal (const QWindow *w, const QPoint &) |
static QPoint | mapFromGlobal (const HWND hwnd, const QPoint &) |
static QPoint | mapFromGlobal (const QWindow *w, const QPoint &) |
static bool | positionIncludesFrame (const QWindow *w) |
Stores geometry constraints and provides utility functions.
Geometry constraints ready to apply to a MINMAXINFO taking frame into account.
Definition at line 27 of file qwindowswindow.h.
|
static |
Definition at line 1191 of file qwindowswindow.cpp.
References applyToMinMaxInfo().
|
static |
Definition at line 1165 of file qwindowswindow.cpp.
References frameSizeConstraints(), QSize::height(), qCDebug, QWINDOWSIZE_MAX, screen, and QSize::width().
Referenced by applyToMinMaxInfo(), QWindowCreationContext::applyToMinMaxInfo(), and QWindowsWindow::getSizeHints().
|
static |
Definition at line 1105 of file qwindowswindow.cpp.
References QRect::center(), frame(), frameOnPrimaryScreen(), QWindowsContext::instance(), QWindowsScreenManager::isSingleScreen(), screen, QWindowsContext::shouldHaveNonClientDpiScaling(), and shouldOmitFrameAdjustment().
|
static |
Definition at line 1066 of file qwindowswindow.cpp.
References Qt::dec(), Qt::hex(), Qt::noshowbase(), qAbs(), qCDebug, qErrnoWarning(), qRound(), rect, shouldOmitFrameAdjustment(), and Qt::showbase().
Referenced by frame(), QWindowsBaseWindow::frameMargins_sys(), and QWindowsWindow::normalGeometry().
Definition at line 1098 of file qwindowswindow.cpp.
References frame.
|
static |
Definition at line 1084 of file qwindowswindow.cpp.
References frame, frameOnPrimaryScreen(), QWindowsContext::instance(), QWindowsScreenManager::isSingleScreen(), screen, and shouldOmitFrameAdjustment().
|
static |
Definition at line 1044 of file qwindowswindow.cpp.
References Qt::dec(), Qt::hex(), Qt::noshowbase(), qAbs(), qCDebug, qErrnoWarning(), rect, shouldOmitFrameAdjustment(), and Qt::showbase().
Referenced by frame(), frame(), and frameOnPrimaryScreen().
Definition at line 1060 of file qwindowswindow.cpp.
References frameOnPrimaryScreen().
|
static |
Definition at line 1143 of file qwindowswindow.cpp.
References QMargins::bottom(), QSize::height(), QMargins::left(), qMax(), QWINDOWSIZE_MAX, QSize::rheight(), QMargins::right(), QSize::rwidth(), screen, QSize::setHeight(), QSize::setWidth(), toNativeSizeConstrained(), QMargins::top(), and QSize::width().
Referenced by applyToMinMaxInfo().
|
static |
Definition at line 1124 of file qwindowswindow.cpp.
References QMargins::bottom(), QMargins::isNull(), QMargins::left(), qCDebug, QMargins::right(), and QMargins::top().
Referenced by QWindowsContext::windowsProc().
Definition at line 433 of file qwindowswindow.h.
References screenToClient().
Referenced by QWindowsOleDropTarget::DragOver(), QWindowsBaseWindow::mapFromGlobal(), QWindowsWindow::mapFromGlobal(), mapFromGlobal(), redirectWheelEvent(), QWindowsMouseHandler::translateMouseEvent(), and QWindowsPointerHandler::translateMouseEvent().
Definition at line 443 of file qwindowswindow.h.
References QWindowsBaseWindow::handleOf(), and mapFromGlobal().
Definition at line 440 of file qwindowswindow.h.
References QWindowsBaseWindow::handleOf(), and mapToGlobal().
Definition at line 426 of file qwindowswindow.h.
References clientToScreen().
Referenced by QWindowsBaseWindow::mapToGlobal(), QWindowsWindow::mapToGlobal(), mapToGlobal(), QWindowsMouseHandler::translateMouseEvent(), and QWindowsPointerHandler::translateMouseEvent().
|
static |
Definition at line 1198 of file qwindowswindow.cpp.
References qt_window_private(), and QWindowPrivate::WindowFrameInclusive.
Referenced by QWindowCreationContext::QWindowCreationContext(), WindowCreationData::create(), QWindowsIntegration::createPlatformWindow(), and QWindowsWindow::setGeometry().