OpenCPN Partial API docs
|
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 () |
Manage memory and disk cache for rendered bitmaps.
Definition at line 71 of file svg_utils.h.
void SVGBitmapCache::Add | ( | const wxString | key, |
const wxBitmap | bmp | ||
) |
Definition at line 249 of file svg_utils.cpp.
|
inline |
Definition at line 80 of file svg_utils.h.
wxBitmap SVGBitmapCache::Get | ( | const wxString | key | ) |
Definition at line 262 of file svg_utils.cpp.
|
inlinestatic |
Definition at line 73 of file svg_utils.h.
bool SVGBitmapCache::HasKey | ( | const wxString | key | ) |
Definition at line 286 of file svg_utils.cpp.
std::string SVGBitmapCache::MakeKey | ( | wxString | file_path, |
const int | width, | ||
const int | height | ||
) |
Definition at line 232 of file svg_utils.cpp.