QWindowsContext Class
Singleton container for all relevant information. More...
#include <QWindowsContext>
Public Types
Public Functions
| QWindowsContext() |
| ~QWindowsContext() |
void | addWindow(HWND, QWindowsWindow * w) |
HWND | createDummyWindow(const QString & classNameIn, const wchar_t * windowName, WNDPROC wndProc = 0, DWORD style = WS_OVERLAPPED) |
int | defaultDPI() const |
HDC | displayContext() const |
QWindowsWindow * | findPlatformWindow(HWND) const |
QWindowsWindow * | findPlatformWindowAt(HWND parent, const QPoint & screenPointIn, unsigned cwex_flags) const |
QWindow * | findWindow(HWND) const |
QWindow * | keyGrabber() const |
QWindowsMimeConverter & | mimeConverter() const |
QString | registerWindowClass(const QWindow * w, bool isGL) |
QString | registerWindowClass(QString cname, WNDPROC proc, unsigned style = 0, HBRUSH brush = 0, bool icon = false) |
void | removeWindow(HWND) |
int | screenDepth() const |
QWindowsScreenManager & | screenManager() |
EventFilter | setEventFilter(const QByteArray & eventType, EventFilter filter) |
void | setKeyGrabber(QWindow * hwnd) |
void | setWindowCreationContext(const QSharedPointer<QWindowCreationContext> & ctx) |
unsigned | systemInfo() const |
QWindow * | windowUnderMouse() const |
bool | windowsProc(HWND hwnd, UINT message, QtWindows::WindowsEventType et, WPARAM wParam, LPARAM lParam, LRESULT * result) |
Static Public Members
Detailed Description
Singleton container for all relevant information.
Holds state information formerly stored in qapplication_win.cpp.
Member Type Documentation
typedef QWindowsContext::EventFilter
enum QWindowsContext::SystemInfoFlags
Member Function Documentation
QWindowsContext::QWindowsContext()
QWindowsContext::~QWindowsContext()
void QWindowsContext::addWindow(HWND, QWindowsWindow * w)
QByteArray QWindowsContext::comErrorString(HRESULT hr) [static]
Common COM error strings.
HWND QWindowsContext::createDummyWindow(const QString & classNameIn, const wchar_t * windowName, WNDPROC wndProc = 0, DWORD style = WS_OVERLAPPED)
Convenience to create a non-visible, message-only dummy window for example used as clipboard watcher or for GL.
int QWindowsContext::defaultDPI() const
HDC QWindowsContext::displayContext() const
QWindowsWindow * QWindowsContext::findPlatformWindow(HWND) const
QWindowsWindow * QWindowsContext::findPlatformWindowAt(HWND parent, const QPoint & screenPointIn, unsigned cwex_flags) const
Find a child window at a screen point.
Deep search for a QWindow at global point, skipping non-owned windows (accessibility?). Implemented using ChildWindowFromPointEx() instead of (historically used) WindowFromPoint() to get a well-defined behaviour for hidden/transparent windows.
cwex_flags are flags of ChildWindowFromPointEx(). parent is the parent window, pass GetDesktopWindow() for top levels.
QWindow * QWindowsContext::findWindow(HWND) const
QWindowsContext * QWindowsContext::instance() [static]
QWindow * QWindowsContext::keyGrabber() const
See also setKeyGrabber().
QString QWindowsContext::registerWindowClass(const QWindow * w, bool isGL)
QString QWindowsContext::registerWindowClass(QString cname, WNDPROC proc, unsigned style = 0, HBRUSH brush = 0, bool icon = false)
void QWindowsContext::removeWindow(HWND)
int QWindowsContext::screenDepth() const
Set event filter.
See also QWindowsNativeInterface.
void QWindowsContext::setKeyGrabber(QWindow * hwnd)
See also keyGrabber().
unsigned QWindowsContext::systemInfo() const
QWindow * QWindowsContext::windowUnderMouse() const
QString QWindowsContext::windowsErrorMessage(unsigned long errorCode) [static]
bool QWindowsContext::windowsProc(HWND hwnd, UINT message, QtWindows::WindowsEventType et, WPARAM wParam, LPARAM lParam, LRESULT * result)
Main windows procedure registered for windows.
See also QWindowsGuiEventDispatcher.
|