Go to the documentation of this file.
12 #include <boost/shared_ptr.hpp>
53 using Ptr = boost::shared_ptr<LayerOperations>;
91 virtual void draw(cairo_t* cr,
198 using Ptr = boost::shared_ptr<SourcePresentation>;
219 virtual void fillTiles(
int startLine,
int lineCount,
int tileWidth,
int firstTile, std::vector<Tile::Ptr>& tiles) = 0;
226 virtual void done() = 0;
228 virtual std::string
getName() = 0;
239 using Ptr = boost::shared_ptr<TiledBitmapInterface>;
virtual void initializeCairo(cairo_t *cr)=0
#define UNUSED(x)
Definition: unused.hh:10
TiledBitmapInterface::Ptr createTiledBitmap(int bitmapWidth, int bitmapHeight, LayerSpec const &ls)
Definition: tiled-bitmap.cc:28
virtual void draw(cairo_t *cr, const ConstTile::Ptr &tile, Scroom::Utils::Rectangle< double > tileArea, Scroom::Utils::Rectangle< double > viewArea, int zoom, Scroom::Utils::Stuff cache)=0
@ TILE_UNLOADED
Definition: tiledbitmapinterface.hh:35
virtual Scroom::Utils::Stuff cacheZoom(const ConstTile::Ptr &tile, int zoom, Scroom::Utils::Stuff &cache)
Definition: tiledbitmapinterface.hh:150
virtual void setSource(SourcePresentation::Ptr sp)=0
virtual std::string getName()=0
boost::shared_ptr< ConstTile > Ptr
Definition: tile.hh:47
boost::shared_ptr< ViewInterface > Ptr
Definition: viewinterface.hh:193
boost::shared_ptr< SourcePresentation > Ptr
Definition: tiledbitmapinterface.hh:198
std::vector< LayerOperations::Ptr > LayerSpec
Definition: tiledbitmapinterface.hh:190
virtual void drawState(cairo_t *cr, TileState s, Scroom::Utils::Rectangle< double > viewArea)=0
Definition: tiledbitmaplayer.hh:242
@ TILE_LOADED
Definition: tiledbitmapinterface.hh:36
Definition: tiledbitmapinterface.hh:50
virtual void reduce(Tile::Ptr target, ConstTile::Ptr source, int x, int y)=0
TileState
Definition: tiledbitmapinterface.hh:32
@ TILE_OUT_OF_BOUNDS
Definition: tiledbitmapinterface.hh:37
virtual void fillTiles(int startLine, int lineCount, int tileWidth, int firstTile, std::vector< Tile::Ptr > &tiles)=0
virtual Scroom::Utils::Stuff cache(const ConstTile::Ptr &tile)
Definition: tiledbitmapinterface.hh:126
virtual void clearCaches(ViewInterface::Ptr vi)=0
virtual void redraw(ViewInterface::Ptr const &vi, cairo_t *cr, const Scroom::Utils::Rectangle< double > &presentationArea, int zoom)=0
boost::shared_ptr< Tile > Ptr
Definition: tile.hh:21
Definition: tiledbitmapinterface.hh:195
boost::shared_ptr< void > Stuff
Definition: stuff.hh:18
virtual boost::shared_ptr< Layer > getBottomLayer()=0
Definition: interface.hh:10
@ TILE_UNINITIALIZED
Definition: tiledbitmapinterface.hh:34
boost::shared_ptr< LayerOperations > Ptr
Definition: tiledbitmapinterface.hh:53
boost::shared_ptr< TiledBitmapInterface > Ptr
Definition: tiledbitmapinterface.hh:239
Definition: presentationinterface.hh:32
boost::shared_ptr< Viewable > Ptr
Definition: presentationinterface.hh:35
Definition: tiledbitmapinterface.hh:236