Phonon  4.7.0
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Pages
Public Member Functions | List of all members
Phonon::QPainterPainter Class Reference
Inheritance diagram for Phonon::QPainterPainter:
Phonon::AbstractVideoGraphicsPainter

Public Member Functions

virtual QList< VideoFrame::FormatsupportedFormats () const
 
void init ()
 
void paint (QPainter *painter, QRectF target)
 
- Public Member Functions inherited from Phonon::AbstractVideoGraphicsPainter
void setFrame (const VideoFrame *frame)
 
virtual ~AbstractVideoGraphicsPainter ()
 
bool inited () const
 

Additional Inherited Members

- Protected Attributes inherited from Phonon::AbstractVideoGraphicsPainter
const VideoFramem_frame
 
bool m_inited
 

Member Function Documentation

void Phonon::QPainterPainter::init ( )
virtual

Implementations of init can prepare the painter for painting. For example an OpenGL painter may setup the GLContext and prepare the textures. Mind that init will usually be irreversible, so once a painter was initialized for a specific frame only the data of this frame may change.

See Also
setFrame

Implements Phonon::AbstractVideoGraphicsPainter.

void Phonon::QPainterPainter::paint ( QPainter *  painter,
QRectF  target 
)
virtual

The actual paint logic is implemented in this function.

Parameters
painterthe QPainter obtained from the paint call on a QGraphicsItem.
targetthe rectangle to draw in, this will usually be the rectangle calculated for a given aspect ratio.

Implements Phonon::AbstractVideoGraphicsPainter.


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