Scroom 0.14-48-ga0fee447
Loading...
Searching...
No Matches
PostRenderer Class Referenceabstract

#include <viewinterface.hh>

Inheritance diagram for PostRenderer:
Inheritance graph
Collaboration diagram for PostRenderer:
Collaboration graph

Public Types

using Ptr = std::shared_ptr< PostRenderer >
 

Public Member Functions

virtual void render (std::shared_ptr< ViewInterface > const &vi, cairo_t *cr, Scroom::Utils::Rectangle< double > presentationArea, int zoom)=0
 

Additional Inherited Members

- Private Member Functions inherited from Interface
 Interface ()=default
 
 Interface (const Interface &)=delete
 
Interfaceoperator= (const Interface &)=delete
 
 Interface (Interface &&)=delete
 
Interfaceoperator= (Interface &&)=delete
 
virtual ~Interface ()=default
 

Detailed Description

Interface provided to something that wants to draw on top of the current presentation.

Member Typedef Documentation

◆ Ptr

using PostRenderer::Ptr = std::shared_ptr<PostRenderer>

Member Function Documentation

◆ render()

virtual void PostRenderer::render ( std::shared_ptr< ViewInterface > const &  vi,
cairo_t *  cr,
Scroom::Utils::Rectangle< double >  presentationArea,
int  zoom 
)
pure virtual

This function is called after the presentation finishes redrawing.

Parameters
viThe ViewInterface on whose behalf the request is made
crThe context to with, the origin of the context is translated to be the same as the origin of the presentation.
presentationAreathe area that is to be drawn. The given x and y coordinates should map on 0,0 of the given context cr.
zoomThe requested zoom level. One pixel should have size 2**zoom when drawn. zoom may be negative.

Implemented in MeasureHandler, and PipetteHandler.


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