QtGui/qplatformwindowformat_qpa.h Source File
Go to the documentation of this file.
41 #ifndef QPLATFORMWINDOWFORMAT_QPA_H
42 #define QPLATFORMWINDOWFORMAT_QPA_H
44 #include <QtGui/QPlatformWindow>
52 class QPlatformWindowFormatPrivate;
69 HasWindowSurface = 0x0800,
81 NoWindowSurface = HasWindowSurface << 16
92 QPlatformWindowFormat();
93 QPlatformWindowFormat(FormatOptions options);
94 QPlatformWindowFormat(
const QPlatformWindowFormat &other);
95 QPlatformWindowFormat &operator=(
const QPlatformWindowFormat &other);
96 ~QPlatformWindowFormat();
98 void setDepthBufferSize(
int size);
99 int depthBufferSize()
const;
101 void setAccumBufferSize(
int size);
102 int accumBufferSize()
const;
104 void setRedBufferSize(
int size);
105 int redBufferSize()
const;
107 void setGreenBufferSize(
int size);
108 int greenBufferSize()
const;
110 void setBlueBufferSize(
int size);
111 int blueBufferSize()
const;
113 void setAlphaBufferSize(
int size);
114 int alphaBufferSize()
const;
116 void setStencilBufferSize(
int size);
117 int stencilBufferSize()
const;
119 void setSampleBuffers(
bool enable);
120 bool sampleBuffers()
const;
122 void setSamples(
int numSamples);
125 void setSwapInterval(
int interval);
126 int swapInterval()
const;
129 WindowApi windowApi()
const;
134 bool doubleBuffer()
const;
135 void setDoubleBuffer(
bool enable);
137 void setDepth(
bool enable);
139 void setRgba(
bool enable);
141 void setAlpha(
bool enable);
143 void setAccum(
bool enable);
144 bool stencil()
const;
145 void setStencil(
bool enable);
147 void setStereo(
bool enable);
148 bool directRendering()
const;
149 void setDirectRendering(
bool enable);
150 bool hasWindowSurface()
const;
151 void setWindowSurface(
bool enable);
153 void setOption(QPlatformWindowFormat::FormatOptions opt);
154 bool testOption(QPlatformWindowFormat::FormatOptions opt)
const;
156 static QPlatformWindowFormat defaultFormat();
157 static void setDefaultFormat(
const QPlatformWindowFormat&
f);
160 QPlatformWindowFormatPrivate *d;
164 friend Q_GUI_EXPORT
bool operator==(
const QPlatformWindowFormat&,
const QPlatformWindowFormat&);
165 friend Q_GUI_EXPORT
bool operator!=(
const QPlatformWindowFormat&,
const QPlatformWindowFormat&);
166 #ifndef QT_NO_DEBUG_STREAM
174 #ifndef QT_NO_DEBUG_STREAM
178 Q_DECLARE_OPERATORS_FOR_FLAGS(QPlatformWindowFormat::FormatOptions)
234 #endif //QPLATFORMWINDOWFORMAT_QPA_H
#define QT_BEGIN_NAMESPACE
GLclampf GLclampf GLclampf alpha
GLint GLint GLsizei GLsizei GLsizei depth