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

A plugin icon, scaled to about 2/3 of available space. More...

Inheritance diagram for PluginIconPanel:

Public Member Functions

 PluginIconPanel (wxWindow *parent, std::string plugin_name)
 
void OnPaint (wxPaintEvent &event)
 

Protected Member Functions

void LoadIcon (const char *plugin_name, wxBitmap &bitmap, int size=32)
 

Protected Attributes

wxBitmap m_bitmap
 
const std::string m_plugin_name
 

Detailed Description

A plugin icon, scaled to about 2/3 of available space.

Load icons from .../uidata/plugins, on the form plugin.svg or plugin.png. If neither exists, display a default icon.

Definition at line 132 of file update_mgr.cpp.

Constructor & Destructor Documentation

◆ PluginIconPanel()

PluginIconPanel::PluginIconPanel ( wxWindow *  parent,
std::string  plugin_name 
)
inline

Definition at line 134 of file update_mgr.cpp.

Member Function Documentation

◆ LoadIcon()

void PluginIconPanel::LoadIcon ( const char *  plugin_name,
wxBitmap &  bitmap,
int  size = 32 
)
inlineprotected

Definition at line 161 of file update_mgr.cpp.

◆ OnPaint()

void PluginIconPanel::OnPaint ( wxPaintEvent &  event)
inline

Definition at line 143 of file update_mgr.cpp.

Member Data Documentation

◆ m_bitmap

wxBitmap PluginIconPanel::m_bitmap
protected

Definition at line 158 of file update_mgr.cpp.

◆ m_plugin_name

const std::string PluginIconPanel::m_plugin_name
protected

Definition at line 159 of file update_mgr.cpp.


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