|
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 69 of file svg_utils.h.
| void SVGBitmapCache::Add | ( | const wxString | key, |
| const wxBitmap | bmp | ||
| ) |
Definition at line 243 of file svg_utils.cpp.
|
inline |
Definition at line 78 of file svg_utils.h.
| wxBitmap SVGBitmapCache::Get | ( | const wxString | key | ) |
Definition at line 256 of file svg_utils.cpp.
|
inlinestatic |
Definition at line 71 of file svg_utils.h.
| bool SVGBitmapCache::HasKey | ( | const wxString | key | ) |
Definition at line 280 of file svg_utils.cpp.
| std::string SVGBitmapCache::MakeKey | ( | wxString | file_path, |
| const int | width, | ||
| const int | height | ||
| ) |
Definition at line 226 of file svg_utils.cpp.