OpenCPN Partial API docs
|
A button capable of loading an svg image. More...
#include <svg_button.h>
Protected Member Functions | |
SvgButton (wxWindow *parent) | |
void | LoadIcon (const char *svg) |
Load an svg icon available in memory. | |
void | LoadIcon (const fs::path &path) |
Load icon from svg file on disk. | |
A button capable of loading an svg image.
The image is scaled to roughly the size of a character, and the button is made to fit the image.
Internally uses wxBitmapBundle available from wxWidgets 3.2 if available, otherwise falling back to the wxSvg library.
Examples:
Definition at line 44 of file svg_button.h.
|
inlineprotected |
Definition at line 46 of file svg_button.h.
|
protected |
Load an svg icon available in memory.
svg | SVG icon smaller than 2048 chars. |
|
protected |
Load icon from svg file on disk.
path | Path to svg icon less than 2048 chars. |