diff options
author | Samuel Rødal <samuel.rodal@nokia.com> | 2011-04-26 16:21:58 +0200 |
---|---|---|
committer | Samuel Rødal <samuel.rodal@nokia.com> | 2011-04-28 15:38:51 +0200 |
commit | ef77e8b65149a29a541044239fccf5e14b95e94d (patch) | |
tree | 8182a140efbb517407f1039b6795c67819a31405 /src/gui/kernel/qwindowformat_qpa.h | |
parent | fbef41167aa4aede67bc1ec904142e2e5e12c7fc (diff) |
Added QWindowContext and got wiggly up and running with xcb.
(cherry picked from commit c980e4ef4ebc7699a6c3a7529d3f08ebafc21ffe)
Diffstat (limited to 'src/gui/kernel/qwindowformat_qpa.h')
-rw-r--r-- | src/gui/kernel/qwindowformat_qpa.h | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/gui/kernel/qwindowformat_qpa.h b/src/gui/kernel/qwindowformat_qpa.h index a1fdc9f576..9bc2ccdfaa 100644 --- a/src/gui/kernel/qwindowformat_qpa.h +++ b/src/gui/kernel/qwindowformat_qpa.h @@ -49,6 +49,7 @@ QT_BEGIN_NAMESPACE QT_MODULE(Gui) +class QWindowContext; class QWindowFormatPrivate; class Q_GUI_EXPORT QWindowFormat @@ -60,15 +61,6 @@ public: }; Q_DECLARE_FLAGS(FormatOptions, FormatOption) - enum ColorFormat { - InvalidColorFormat, - RGB565, - RGBA5658, - RGBA5551, - RGB888, - RGBA8888 - }; - enum SwapBehavior { DefaultSwapBehavior, SingleBuffer, @@ -94,20 +86,28 @@ public: void setStencilBufferSize(int size); int stencilBufferSize() const; + void setRedBufferSize(int size); + int redBufferSize() const; + void setGreenBufferSize(int size); + int greenBufferSize() const; + void setBlueBufferSize(int size); + int blueBufferSize() const; + void setAlphaBufferSize(int size); + int alphaBufferSize() const; + void setSamples(int numSamples); int samples() const; void setSwapBehavior(SwapBehavior behavior); SwapBehavior swapBehavior() const; - void setColorFormat(ColorFormat format); - ColorFormat colorFormat() const; + bool hasAlpha() const; void setProfile(OpenGLContextProfile profile); OpenGLContextProfile profile() const; - void setSharedContext(QPlatformGLContext *context); - QPlatformGLContext *sharedGLContext() const; + void setSharedContext(QWindowContext *context); + QWindowContext *sharedContext() const; bool stereo() const; void setStereo(bool enable); |