LeechCraft Monocle  0.6.70-13729-g7046a9d2a7
Modular document viewer for LeechCraft
LC::Monocle::ISupportPainting Class Referenceabstract

Interface for documents supporting optimized painting. More...

#include "isupportpainting.h"

Public Member Functions

virtual ~ISupportPainting ()
 
virtual void PaintPage (QPainter *painter, int page, double xScale, double yScale)=0
 Paints a given page to the given painter. More...
 

Detailed Description

Interface for documents supporting optimized painting.

This interface should be implemented by IDocument objects that can paint better than putting the image returned by the IDocument::RenderPage() method to a QPainter.

See also
IDocument

Definition at line 46 of file isupportpainting.h.

Constructor & Destructor Documentation

◆ ~ISupportPainting()

virtual LC::Monocle::ISupportPainting::~ISupportPainting ( )
inlinevirtual

Definition at line 49 of file isupportpainting.h.

Member Function Documentation

◆ PaintPage()

virtual void LC::Monocle::ISupportPainting::PaintPage ( QPainter *  painter,
int  page,
double  xScale,
double  yScale 
)
pure virtual

Paints a given page to the given painter.

Parameters
[in]painterThe painter to paint on.
[in]pageThe page index to paint on.
[in]xScaleThe X-axis scale which should be used during painting.
[in]yScaleThe Y-axis scale which should be used during painting.

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