diff options
author | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2020-07-17 22:15:07 +0200 |
---|---|---|
committer | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2020-07-20 17:47:39 +0200 |
commit | 9166abcd997f57625c17db8e8734988ff303217e (patch) | |
tree | fa8c97b1f5d89e7c64645a2d261b75ddfbbea18c /src/gui/kernel | |
parent | 6034494070041baab95b835a2605c795f0d7166c (diff) |
Add QXcbWindow platform interface
Task-number: QTBUG-84220
Change-Id: I8bb4288f1ac06d77fb4f43ae091fa1712f694eeb
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'src/gui/kernel')
-rw-r--r-- | src/gui/kernel/qplatformwindow_p.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/gui/kernel/qplatformwindow_p.h b/src/gui/kernel/qplatformwindow_p.h index 03ef210f81..e7682cc204 100644 --- a/src/gui/kernel/qplatformwindow_p.h +++ b/src/gui/kernel/qplatformwindow_p.h @@ -77,6 +77,38 @@ struct Q_GUI_EXPORT QCocoaWindow }; #endif +#if QT_CONFIG(xcb) +struct Q_GUI_EXPORT QXcbWindow +{ + QT_DECLARE_PLATFORM_INTERFACE(QXcbWindow) + + enum WindowType { + None = 0x000000, + Normal = 0x000001, + Desktop = 0x000002, + Dock = 0x000004, + Toolbar = 0x000008, + Menu = 0x000010, + Utility = 0x000020, + Splash = 0x000040, + Dialog = 0x000080, + DropDownMenu = 0x000100, + PopupMenu = 0x000200, + Tooltip = 0x000400, + Notification = 0x000800, + Combo = 0x001000, + Dnd = 0x002000, + KdeOverride = 0x004000 + }; + Q_DECLARE_FLAGS(WindowTypes, WindowType) + + virtual void setWindowType(WindowTypes type) = 0; + virtual void setWindowRole(const QString &role) = 0; + virtual void setWindowIconText(const QString &text) = 0; + virtual uint visualId() const = 0; +}; +#endif + } // QPlatformInterface::Private QT_END_NAMESPACE |