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 SVGBitmapCache & GetInstance ()

Detailed Description

Manage memory and disk cache for rendered bitmaps.

Definition at line 69 of file svg_utils.h.

Member Function Documentation

◆ Add()

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

Definition at line 243 of file svg_utils.cpp.

◆ Clear()

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

Definition at line 78 of file svg_utils.h.

◆ Get()

wxBitmap SVGBitmapCache::Get ( const wxString key)

Definition at line 256 of file svg_utils.cpp.

◆ GetInstance()

SVGBitmapCache & SVGBitmapCache::GetInstance ( )
inlinestatic

Definition at line 71 of file svg_utils.h.

◆ HasKey()

bool SVGBitmapCache::HasKey ( const wxString key)

Definition at line 280 of file svg_utils.cpp.

◆ MakeKey()

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

Definition at line 226 of file svg_utils.cpp.


The documentation for this class was generated from the following files:
  • /home/runner/work/main/main/opencpn/model/include/model/svg_utils.h
  • /home/runner/work/main/main/opencpn/model/src/svg_utils.cpp