Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QDirectFbBlitter Class Reference

#include <qdirectfbblitter.h>

+ Inheritance diagram for QDirectFbBlitter:
+ Collaboration diagram for QDirectFbBlitter:

Public Member Functions

 QDirectFbBlitter (const QSize &size, IDirectFBSurface *surface)
 
 QDirectFbBlitter (const QSize &size, bool alpha)
 
virtual ~QDirectFbBlitter ()
 
void fillRect (const QRectF &rect, const QColor &color) override
 
void drawPixmap (const QRectF &rect, const QPixmap &pixmap, const QRectF &subrect) override
 
void alphaFillRect (const QRectF &rect, const QColor &color, QPainter::CompositionMode cmode) override
 
void drawPixmapOpacity (const QRectF &rect, const QPixmap &pixmap, const QRectF &subrect, QPainter::CompositionMode cmode, qreal opacity) override
 
bool drawCachedGlyphs (const QPaintEngineState *state, QFontEngine::GlyphFormat glyphFormat, int numGlyphs, const glyph_t *glyphs, const QFixedPoint *positions, QFontEngine *fontEngine) override
 
IDirectFBSurface * dfbSurface () const
 
- Public Member Functions inherited from QBlittable
 QBlittable (const QSize &size, Capabilities caps)
 
virtual ~QBlittable ()
 
Capabilities capabilities () const
 
QSize size () const
 
QImagelock ()
 
void unlock ()
 
bool isLocked () const
 

Static Public Member Functions

static DFBSurfacePixelFormat alphaPixmapFormat ()
 
static DFBSurfacePixelFormat pixmapFormat ()
 
static DFBSurfacePixelFormat selectPixmapFormat (bool withAlpha)
 

Protected Member Functions

QImagedoLock () override
 
void doUnlock () override
 

Protected Attributes

QDirectFBPointer< IDirectFBSurface > m_surface
 
QImage m_image
 
- Protected Attributes inherited from QBlittable
QBlittablePrivated_ptr
 

Friends

class QDirectFbConvenience
 

Additional Inherited Members

- Public Types inherited from QBlittable
enum  Capability {
  SolidRectCapability = 0x0001 , SourcePixmapCapability = 0x0002 , SourceOverPixmapCapability = 0x0004 , SourceOverScaledPixmapCapability = 0x0008 ,
  AlphaFillRectCapability = 0x0010 , OpacityPixmapCapability = 0x0020 , DrawScaledCachedGlyphsCapability = 0x0040 , SubPixelGlyphsCapability = 0x0080 ,
  ComplexClipCapability = 0x0100 , OutlineCapability = 0x0001000
}
 

Detailed Description

Definition at line 15 of file qdirectfbblitter.h.

Constructor & Destructor Documentation

◆ QDirectFbBlitter() [1/2]

QDirectFbBlitter::QDirectFbBlitter ( const QSize & size,
IDirectFBSurface * surface )

Definition at line 28 of file qdirectfbblitter.cpp.

References QScopedPointer< T, Cleanup >::data(), m_surface, and qEnvironmentVariableIntValue().

+ Here is the call graph for this function:

◆ QDirectFbBlitter() [2/2]

QDirectFbBlitter::QDirectFbBlitter ( const QSize & size,
bool alpha )

Definition at line 42 of file qdirectfbblitter.cpp.

References alphaPixmapFormat(), QScopedPointer< T, Cleanup >::data(), QDirectFbConvenience::dfbInterface(), m_surface, QDirectFBPointer< T >::outPtr(), pixmapFormat(), qEnvironmentVariableIntValue(), and rect.

+ Here is the call graph for this function:

◆ ~QDirectFbBlitter()

QDirectFbBlitter::~QDirectFbBlitter ( )
virtual

Definition at line 73 of file qdirectfbblitter.cpp.

References QBlittable::unlock().

+ Here is the call graph for this function:

Member Function Documentation

◆ alphaFillRect()

void QDirectFbBlitter::alphaFillRect ( const QRectF & rect,
const QColor & color,
QPainter::CompositionMode cmode )
overridevirtual

Reimplemented from QBlittable.

Definition at line 103 of file qdirectfbblitter.cpp.

References Qt::blue, QPainter::CompositionMode_Source, QScopedPointer< T, Cleanup >::data(), m_surface, and rect.

Referenced by fillRect().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ alphaPixmapFormat()

DFBSurfacePixelFormat QDirectFbBlitter::alphaPixmapFormat ( )
static

Definition at line 78 of file qdirectfbblitter.cpp.

Referenced by QDirectFbBlitter(), and selectPixmapFormat().

+ Here is the caller graph for this function:

◆ dfbSurface()

IDirectFBSurface * QDirectFbBlitter::dfbSurface ( ) const
inline

Definition at line 83 of file qdirectfbblitter.h.

References QScopedPointer< T, Cleanup >::data(), and m_surface.

+ Here is the call graph for this function:

◆ doLock()

QImage * QDirectFbBlitter::doLock ( )
overrideprotectedvirtual

Implements QBlittable.

Definition at line 279 of file qdirectfbblitter.cpp.

References QScopedPointer< T, Cleanup >::data(), QDirectFbConvenience::imageFormatFromSurfaceFormat(), m_image, m_surface, Q_ASSERT, and QBlittable::size().

+ Here is the call graph for this function:

◆ doUnlock()

void QDirectFbBlitter::doUnlock ( )
overrideprotectedvirtual

Implements QBlittable.

Definition at line 385 of file qdirectfbblitter.cpp.

References QScopedPointer< T, Cleanup >::data(), and m_surface.

+ Here is the call graph for this function:

◆ drawCachedGlyphs()

bool QDirectFbBlitter::drawCachedGlyphs ( const QPaintEngineState * state,
QFontEngine::GlyphFormat glyphFormat,
int numGlyphs,
const glyph_t * glyphs,
const QFixedPoint * positions,
QFontEngine * fontEngine )
overridevirtual

Reimplemented from QBlittable.

Definition at line 193 of file qdirectfbblitter.cpp.

References cache, cacheKey(), QScopedPointer< T, Cleanup >::data(), QDirectFbConvenience::dfbInterface(), QFontEngine::glyphCache(), QFontEngine::glyphMargin(), i, m_surface, positions, Q_ASSERT, qFloor(), qRound(), QFontEngine::setGlyphCache(), state, QFontEngine::subPixelPositionForX(), and Qt::yellow.

+ Here is the call graph for this function:

◆ drawPixmap()

void QDirectFbBlitter::drawPixmap ( const QRectF & rect,
const QPixmap & pixmap,
const QRectF & subrect )
overridevirtual

Implements QBlittable.

Definition at line 98 of file qdirectfbblitter.cpp.

References QPainter::CompositionMode_SourceOver, drawPixmapOpacity(), pixmap, and rect.

+ Here is the call graph for this function:

◆ drawPixmapOpacity()

void QDirectFbBlitter::drawPixmapOpacity ( const QRectF & rect,
const QPixmap & pixmap,
const QRectF & subrect,
QPainter::CompositionMode cmode,
qreal opacity )
overridevirtual

Reimplemented from QBlittable.

Definition at line 142 of file qdirectfbblitter.cpp.

References QPainter::CompositionMode_SourceOver, QScopedPointer< T, Cleanup >::data(), Qt::green, m_surface, pixmap, rect, Qt::red, and QBlittable::unlock().

Referenced by drawPixmap().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fillRect()

void QDirectFbBlitter::fillRect ( const QRectF & rect,
const QColor & color )
overridevirtual

Implements QBlittable.

Definition at line 93 of file qdirectfbblitter.cpp.

References alphaFillRect(), QPainter::CompositionMode_Source, and rect.

+ Here is the call graph for this function:

◆ pixmapFormat()

DFBSurfacePixelFormat QDirectFbBlitter::pixmapFormat ( )
static

Definition at line 83 of file qdirectfbblitter.cpp.

Referenced by QDirectFbBlitter(), and selectPixmapFormat().

+ Here is the caller graph for this function:

◆ selectPixmapFormat()

DFBSurfacePixelFormat QDirectFbBlitter::selectPixmapFormat ( bool withAlpha)
static

Definition at line 88 of file qdirectfbblitter.cpp.

References alphaPixmapFormat(), and pixmapFormat().

+ Here is the call graph for this function:

Friends And Related Symbol Documentation

◆ QDirectFbConvenience

friend class QDirectFbConvenience
friend

Definition at line 50 of file qdirectfbblitter.h.

Member Data Documentation

◆ m_image

QImage QDirectFbBlitter::m_image
protected

Definition at line 48 of file qdirectfbblitter.h.

Referenced by doLock().

◆ m_surface


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