Qt 4.8
Public Functions | Public Variables | List of all members
QGLWindowSurfaceGLPaintDevice Class Reference

#include <qwindowsurface_gl_p.h>

Inheritance diagram for QGLWindowSurfaceGLPaintDevice:
QGLPaintDevice QPaintDevice

Public Functions

QGLContextcontext () const
 
int metric (PaintDeviceMetric m) const
 
QPaintEnginepaintEngine () const
 
QSize size () const
 
- Public Functions inherited from QGLPaintDevice
virtual bool alphaRequested () const
 
virtual void beginPaint ()
 
int devType () const
 
virtual void endPaint ()
 
virtual void ensureActiveTarget ()
 
virtual QGLFormat format () const
 
virtual bool isFlipped () const
 
 QGLPaintDevice ()
 
virtual ~QGLPaintDevice ()
 
- Public Functions inherited from QPaintDevice
int colorCount () const
 
int depth () const
 
virtual HDC getDC () const
 
int height () const
 
int heightMM () const
 
int logicalDpiX () const
 
int logicalDpiY () const
 
QT_DEPRECATED int numColors () const
 
bool paintingActive () const
 
int physicalDpiX () const
 
int physicalDpiY () const
 
virtual void releaseDC (HDC hdc) const
 
int width () const
 
int widthMM () const
 
virtual ~QPaintDevice ()
 

Public Variables

QGLWindowSurfacePrivated
 

Additional Inherited Members

- Public Types inherited from QPaintDevice
enum  PaintDeviceMetric {
  PdmWidth = 1, PdmHeight, PdmWidthMM, PdmHeightMM,
  PdmNumColors, PdmDepth, PdmDpiX, PdmDpiY,
  PdmPhysicalDpiX, PdmPhysicalDpiY
}
 
- Static Public Functions inherited from QGLPaintDevice
static QGLPaintDevicegetDevice (QPaintDevice *)
 
- Static Public Functions inherited from QPaintDevice
static QWSDisplayqwsDisplay ()
 
- Protected Functions inherited from QPaintDevice
 QPaintDevice ()
 
- Protected Variables inherited from QGLPaintDevice
GLuint m_previousFBO
 
GLuint m_thisFBO
 
- Protected Variables inherited from QPaintDevice
ushort painters
 

Detailed Description

Definition at line 73 of file qwindowsurface_gl_p.h.

Functions

◆ context()

QGLContext * QGLWindowSurfaceGLPaintDevice::context ( ) const
virtual

Implements QGLPaintDevice.

Definition at line 329 of file qwindowsurface_gl.cpp.

330 {
331  return d->ctx;
332 }
QGLWindowSurfacePrivate * d

◆ metric()

int QGLWindowSurfaceGLPaintDevice::metric ( PaintDeviceMetric  m) const
virtual

Reimplemented from QGLPaintDevice.

Definition at line 335 of file qwindowsurface_gl.cpp.

336 {
337  return qt_paint_device_metric(d->q_ptr->window(), m);
338 }
friend Q_GUI_EXPORT int qt_paint_device_metric(const QPaintDevice *device, PaintDeviceMetric metric)
QGLWindowSurfacePrivate * d
QWidget * window() const
Returns a pointer to the top-level window associated with this surface.

◆ paintEngine()

QPaintEngine * QGLWindowSurfaceGLPaintDevice::paintEngine ( ) const
virtual

Implements QPaintDevice.

Definition at line 340 of file qwindowsurface_gl.cpp.

341 {
342  return qt_qgl_paint_engine();
343 }
Q_OPENGL_EXPORT QPaintEngine * qt_qgl_paint_engine()
Definition: qgl.cpp:5530

◆ size()

QSize QGLWindowSurfaceGLPaintDevice::size ( ) const
virtual

Implements QGLPaintDevice.

Definition at line 324 of file qwindowsurface_gl.cpp.

325 {
326  return d->size;
327 }
QGLWindowSurfacePrivate * d

Properties

◆ d

QGLWindowSurfacePrivate* QGLWindowSurfaceGLPaintDevice::d

Definition at line 80 of file qwindowsurface_gl_p.h.

Referenced by QGLWindowSurface::QGLWindowSurface().


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