LeechCraft Monocle 0.6.70-17335-ge406ffdcaf
Modular document viewer for LeechCraft
Loading...
Searching...
No Matches
LC::Monocle::ISupportPainting Class Referenceabstract

Interface for documents supporting optimized painting. More...

#include "isupportpainting.h"

Public Member Functions

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

Protected Member Functions

virtual ~ISupportPainting ()=default
 

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 25 of file isupportpainting.h.

Constructor & Destructor Documentation

◆ ~ISupportPainting()

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

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: