|
OpenCPN Partial API docs
|
Small monochrome SVG icon scaled to the height of a char. More...
#include <std_icon.h>
Public Member Functions | |
| StdIcon (const wxWindow *parent, const std::string &svg_file, EventVar &color_change_evt, bool touch) | |
| Create an icon. | |
| const wxBitmap & | GetBitmap () |
| Return bitmap, either day or inverted night variant. | |
| StdIcon (const wxWindow *parent, const std::string &svg_file, EventVar &color_change_evt, bool touch) | |
| Create an icon. | |
| const wxBitmap & | GetBitmap () |
| Return bitmap, either day or inverted night variant. | |
Small monochrome SVG icon scaled to the height of a char.
Aware of color map changes and adapts to night mode.
Definition at line 37 of file std_icon.cpp.
| StdIcon::StdIcon | ( | const wxWindow * | parent, |
| const std::string & | svg_file, | ||
| EventVar & | color_change_evt, | ||
| bool | touch | ||
| ) |
Create an icon.
| parent | Window used to compute size |
| svg_file | File to render |
| color_change_evt | Color map change event, governs day/night mode |
| touch | If true, ensure icon is "big enough" for touch screens |
Definition at line 92 of file std_icon.cpp.
| StdIcon::StdIcon | ( | const wxWindow * | parent, |
| const std::string & | svg_file, | ||
| EventVar & | color_change_evt, | ||
| bool | touch | ||
| ) |
Create an icon.
| parent | Window used to compute size |
| svg_file | File to render |
| color_change_evt | Color map change event, governs day/night mode |
| touch | If true, ensure icon is "big enough" for touch screens |
| const wxBitmap & StdIcon::GetBitmap | ( | ) |
Return bitmap, either day or inverted night variant.
Definition at line 104 of file std_icon.cpp.