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
-
painter | the QPainter obtained from the paint call on a QGraphicsItem. |
target | the 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:
- /home/me/src/git/p/phonon/phonon/graphicsview/qpainterpainter.h
- /home/me/src/git/p/phonon/phonon/graphicsview/qpainterpainter.cpp