A Sub Painter class is meant to be used in existing painter classes It does not and should not cary the same responsibility as a Painter class It works as a sort of utility class for functionality that makes sense to reuse Eg. More...
#include <onionskinsubpainter.h>
Public Member Functions | |
void | paint (QPainter &painter, const Layer *layer, const OnionSkinPainterOptions &options, int frameIndex, const std::function< void(OnionSkinPaintState, int)> &state) const |
A Sub Painter class is meant to be used in existing painter classes It does not and should not cary the same responsibility as a Painter class It works as a sort of utility class for functionality that makes sense to reuse Eg.
OnionSkinSubPainter is used by CanvasPainter and CameraPainter
Definition at line 31 of file onionskinsubpainter.h.
|
explicit |
Definition at line 24 of file onionskinsubpainter.cpp.
void OnionSkinSubPainter::paint | ( | QPainter & | painter, |
const Layer * | layer, | ||
const OnionSkinPainterOptions & | options, | ||
int | frameIndex, | ||
const std::function< void(OnionSkinPaintState, int)> & | state | ||
) | const |
Definition at line 28 of file onionskinsubpainter.cpp.