Qt 4.8
Public Functions | List of all members
QGLPixmapFilter< Filter > Class Template Reference

#include <qglpixmapfilter_p.h>

Inheritance diagram for QGLPixmapFilter< Filter >:
QGLPixmapFilterBase

Public Functions

void draw (QPainter *painter, const QPointF &pos, const QPixmap &src, const QRectF &srcRect=QRectF()) const
 
- Public Functions inherited from QGLPixmapFilterBase
virtual ~QGLPixmapFilterBase ()
 

Additional Inherited Members

- Protected Functions inherited from QGLPixmapFilterBase
void bindTexture (const QPixmap &src) const
 
void drawImpl (QPainter *painter, const QPointF &pos, const QPixmap &src, const QRectF &srcRect=QRectF()) const
 
virtual bool processGL (QPainter *painter, const QPointF &pos, const QPixmap &src, const QRectF &srcRect) const =0
 

Detailed Description

template<typename Filter>
class QGLPixmapFilter< Filter >

Definition at line 80 of file qglpixmapfilter_p.h.

Functions

◆ draw()

template<typename Filter>
void QGLPixmapFilter< Filter >::draw ( QPainter painter,
const QPointF pos,
const QPixmap src,
const QRectF srcRect = QRectF() 
) const
inline

Definition at line 83 of file qglpixmapfilter_p.h.

83  {
84  const QRectF source = srcRect.isNull() ? QRectF(src.rect()) : srcRect;
85  if (painter)
86  drawImpl(painter, pos, src, source);
87  }
The QRectF class defines a rectangle in the plane using floating point precision. ...
Definition: qrect.h:511
void drawImpl(QPainter *painter, const QPointF &pos, const QPixmap &src, const QRectF &srcRect=QRectF()) const
QRect rect() const
Returns the pixmap&#39;s enclosing rectangle.
Definition: qpixmap.cpp:676
bool isNull() const
Returns true if the rectangle is a null rectangle, otherwise returns false.
Definition: qrect.h:655

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