OpenCPN Partial API docs
Loading...
Searching...
No Matches
SVGBitmapCache Class Reference

Manage memory and disk cache for rendered bitmaps. More...

#include <svg_utils.h>

Public Member Functions

 SVGBitmapCache (SVGBitmapCache const &)=delete
 
void operator= (SVGBitmapCache const &)=delete
 
void Clear (bool disk=true)
 
std::string MakeKey (wxString file_path, const int width, const int height)
 
bool HasKey (const wxString key)
 
wxBitmap Get (const wxString key)
 
void Add (const wxString, const wxBitmap bmp)
 

Static Public Member Functions

static SVGBitmapCacheGetInstance ()
 

Detailed Description

Manage memory and disk cache for rendered bitmaps.

Definition at line 71 of file svg_utils.h.

Member Function Documentation

◆ Add()

void SVGBitmapCache::Add ( const wxString  key,
const wxBitmap  bmp 
)

Definition at line 249 of file svg_utils.cpp.

◆ Clear()

void SVGBitmapCache::Clear ( bool  disk = true)
inline

Definition at line 80 of file svg_utils.h.

◆ Get()

wxBitmap SVGBitmapCache::Get ( const wxString  key)

Definition at line 262 of file svg_utils.cpp.

◆ GetInstance()

static SVGBitmapCache & SVGBitmapCache::GetInstance ( )
inlinestatic

Definition at line 73 of file svg_utils.h.

◆ HasKey()

bool SVGBitmapCache::HasKey ( const wxString  key)

Definition at line 286 of file svg_utils.cpp.

◆ MakeKey()

std::string SVGBitmapCache::MakeKey ( wxString  file_path,
const int  width,
const int  height 
)

Definition at line 232 of file svg_utils.cpp.


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