QPlatformWindowFormat Class Reference

QPlatformWindowFormat Class Reference

#include <qplatformwindowformat_qpa.h>

Class Description

Definition at line 54 of file qplatformwindowformat_qpa.h.

Public Types

enum  FormatOption {
  DoubleBuffer = 0x0001, DepthBuffer = 0x0002, Rgba = 0x0004, AlphaChannel = 0x0008,
  AccumBuffer = 0x0010, StencilBuffer = 0x0020, StereoBuffers = 0x0040, DirectRendering = 0x0080,
  HasOverlay = 0x0100, SampleBuffers = 0x0200, DeprecatedFunctions = 0x0400, HasWindowSurface = 0x0800,
  SingleBuffer = DoubleBuffer << 16, NoDepthBuffer = DepthBuffer << 16, ColorIndex = Rgba << 16, NoAlphaChannel = AlphaChannel << 16,
  NoAccumBuffer = AccumBuffer << 16, NoStencilBuffer = StencilBuffer << 16, NoStereoBuffers = StereoBuffers << 16, IndirectRendering = DirectRendering << 16,
  NoOverlay = HasOverlay << 16, NoSampleBuffers = SampleBuffers << 16, NoDeprecatedFunctions = DeprecatedFunctions << 16, NoWindowSurface = HasWindowSurface << 16
}
 
enum  WindowApi { Raster, OpenGL, OpenVG }
 

Public Member Functions

 QPlatformWindowFormat ()
 
 QPlatformWindowFormat (FormatOptions options)
 
 QPlatformWindowFormat (const QPlatformWindowFormat &other)
 
QPlatformWindowFormatoperator= (const QPlatformWindowFormat &other)
 
 ~QPlatformWindowFormat ()
 
void setDepthBufferSize (int size)
 
int depthBufferSize () const
 
void setAccumBufferSize (int size)
 
int accumBufferSize () 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 setStencilBufferSize (int size)
 
int stencilBufferSize () const
 
void setSampleBuffers (bool enable)
 
bool sampleBuffers () const
 
void setSamples (int numSamples)
 
int samples () const
 
void setSwapInterval (int interval)
 
int swapInterval () const
 
void setWindowApi (QPlatformWindowFormat::WindowApi api)
 
WindowApi windowApi () const
 
void setSharedContext (QPlatformGLContext *context)
 
QPlatformGLContextsharedGLContext () const
 
bool doubleBuffer () const
 
void setDoubleBuffer (bool enable)
 
bool depth () const
 
void setDepth (bool enable)
 
bool rgba () const
 
void setRgba (bool enable)
 
bool alpha () const
 
void setAlpha (bool enable)
 
bool accum () const
 
void setAccum (bool enable)
 
bool stencil () const
 
void setStencil (bool enable)
 
bool stereo () const
 
void setStereo (bool enable)
 
bool directRendering () const
 
void setDirectRendering (bool enable)
 
bool hasWindowSurface () const
 
void setWindowSurface (bool enable)
 
void setOption (QPlatformWindowFormat::FormatOptions opt)
 
bool testOption (QPlatformWindowFormat::FormatOptions opt) const
 

Static Public Member Functions

static QPlatformWindowFormat defaultFormat ()
 
static void setDefaultFormat (const QPlatformWindowFormat &f)
 

Friends

Q_GUI_EXPORT bool operator== (const QPlatformWindowFormat &, const QPlatformWindowFormat &)
 
Q_GUI_EXPORT bool operator!= (const QPlatformWindowFormat &, const QPlatformWindowFormat &)
 
Q_GUI_EXPORT QDebug operator<< (QDebug, const QPlatformWindowFormat &)
 

Member Enumeration Documentation

Enumerator
DoubleBuffer 
DepthBuffer 
Rgba 
AlphaChannel 
AccumBuffer 
StencilBuffer 
StereoBuffers 
DirectRendering 
HasOverlay 
SampleBuffers 
DeprecatedFunctions 
HasWindowSurface 
SingleBuffer 
NoDepthBuffer 
ColorIndex 
NoAlphaChannel 
NoAccumBuffer 
NoStencilBuffer 
NoStereoBuffers 
IndirectRendering 
NoOverlay 
NoSampleBuffers 
NoDeprecatedFunctions 
NoWindowSurface 

Definition at line 57 of file qplatformwindowformat_qpa.h.

57  {
58  DoubleBuffer = 0x0001,
59  DepthBuffer = 0x0002,
60  Rgba = 0x0004,
61  AlphaChannel = 0x0008,
62  AccumBuffer = 0x0010,
63  StencilBuffer = 0x0020,
64  StereoBuffers = 0x0040,
65  DirectRendering = 0x0080,
66  HasOverlay = 0x0100,
67  SampleBuffers = 0x0200,
68  DeprecatedFunctions = 0x0400,
69  HasWindowSurface = 0x0800,
70  SingleBuffer = DoubleBuffer << 16,
71  NoDepthBuffer = DepthBuffer << 16,
72  ColorIndex = Rgba << 16,
74  NoAccumBuffer = AccumBuffer << 16,
78  NoOverlay = HasOverlay << 16,
82 
83  };

Constructor & Destructor Documentation

QPlatformWindowFormat ( FormatOptions  options)

Member Function Documentation

QPlatformWindowFormat& operator= ( const QPlatformWindowFormat other)
void setDepthBufferSize ( int  size)
int depthBufferSize ( ) const
void setAccumBufferSize ( int  size)
int accumBufferSize ( ) 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 setStencilBufferSize ( int  size)
int stencilBufferSize ( ) const
void setSampleBuffers ( bool  enable)
bool sampleBuffers ( ) const
inline

Definition at line 225 of file qplatformwindowformat_qpa.h.

226 {
228 }
bool testOption(QPlatformWindowFormat::FormatOptions opt) const
void setSamples ( int  numSamples)
int samples ( ) const
void setSwapInterval ( int  interval)
int swapInterval ( ) const
void setWindowApi ( QPlatformWindowFormat::WindowApi  api)
WindowApi windowApi ( ) const
void setSharedContext ( QPlatformGLContext context)
QPlatformGLContext* sharedGLContext ( ) const
bool doubleBuffer ( ) const
inline

Definition at line 180 of file qplatformwindowformat_qpa.h.

181 {
183 }
bool testOption(QPlatformWindowFormat::FormatOptions opt) const
void setDoubleBuffer ( bool  enable)
bool depth ( ) const
inline

Definition at line 185 of file qplatformwindowformat_qpa.h.

186 {
188 }
bool testOption(QPlatformWindowFormat::FormatOptions opt) const
void setDepth ( bool  enable)
bool rgba ( ) const
inline

Definition at line 190 of file qplatformwindowformat_qpa.h.

191 {
193 }
bool testOption(QPlatformWindowFormat::FormatOptions opt) const
void setRgba ( bool  enable)
bool alpha ( ) const
inline

Definition at line 195 of file qplatformwindowformat_qpa.h.

196 {
198 }
bool testOption(QPlatformWindowFormat::FormatOptions opt) const
void setAlpha ( bool  enable)
bool accum ( ) const
inline

Definition at line 200 of file qplatformwindowformat_qpa.h.

201 {
203 }
bool testOption(QPlatformWindowFormat::FormatOptions opt) const
void setAccum ( bool  enable)
bool stencil ( ) const
inline

Definition at line 205 of file qplatformwindowformat_qpa.h.

206 {
208 }
bool testOption(QPlatformWindowFormat::FormatOptions opt) const
void setStencil ( bool  enable)
bool stereo ( ) const
inline

Definition at line 210 of file qplatformwindowformat_qpa.h.

211 {
213 }
bool testOption(QPlatformWindowFormat::FormatOptions opt) const
void setStereo ( bool  enable)
bool directRendering ( ) const
inline

Definition at line 215 of file qplatformwindowformat_qpa.h.

216 {
218 }
bool testOption(QPlatformWindowFormat::FormatOptions opt) const
void setDirectRendering ( bool  enable)
bool hasWindowSurface ( ) const
inline

Definition at line 220 of file qplatformwindowformat_qpa.h.

221 {
223 }
bool testOption(QPlatformWindowFormat::FormatOptions opt) const
void setWindowSurface ( bool  enable)
void setOption ( QPlatformWindowFormat::FormatOptions  opt)
bool testOption ( QPlatformWindowFormat::FormatOptions  opt) const
static QPlatformWindowFormat defaultFormat ( )
static
static void setDefaultFormat ( const QPlatformWindowFormat f)
static

Friends And Related Function Documentation

Q_GUI_EXPORT bool operator== ( const QPlatformWindowFormat ,
const QPlatformWindowFormat  
)
friend
Q_GUI_EXPORT bool operator!= ( const QPlatformWindowFormat ,
const QPlatformWindowFormat  
)
friend
Q_GUI_EXPORT QDebug operator<< ( QDebug  ,
const QPlatformWindowFormat  
)
friend

The documentation for this class was generated from the following file: