OpenCPN Partial API docs
Loading...
Searching...
No Matches
StdIcon Class Reference

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.
 

Detailed Description

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.h.

Constructor & Destructor Documentation

◆ StdIcon()

StdIcon::StdIcon ( const wxWindow *  parent,
const std::string &  svg_file,
EventVar color_change_evt,
bool  touch 
)

Create an icon.

Parameters
parentWindow used to compute size
svg_fileFile to render
color_change_evtColor map change event, governs day/night mode
touchIf true, ensure icon is "big enough" for touch screens

Definition at line 47 of file std_icon.cpp.

Member Function Documentation

◆ GetBitmap()

const wxBitmap & StdIcon::GetBitmap ( )

Return bitmap, either day or inverted night variant.

Definition at line 59 of file std_icon.cpp.


The documentation for this class was generated from the following files: