OpenCPN Partial API docs
|
Public Member Functions | |
opencpn_plugin (void *pmgr) | |
virtual int | Init (void) |
virtual bool | DeInit (void) |
virtual int | GetAPIVersionMajor () |
virtual int | GetAPIVersionMinor () |
virtual int | GetPlugInVersionMajor () |
virtual int | GetPlugInVersionMinor () |
virtual wxBitmap * | GetPlugInBitmap () |
FIXME static wxBitmap* LoadSVG(const wxString filename, unsigned int width, unsigned int height) { if (!gFrame) return new wxBitmap(width, height); // We are headless. More... | |
virtual wxString | GetCommonName () |
virtual wxString | GetShortDescription () |
virtual wxString | GetLongDescription () |
virtual void | SetDefaults (void) |
virtual int | GetToolbarToolCount (void) |
virtual int | GetToolboxPanelCount (void) |
virtual void | SetupToolboxPanel (int page_sel, wxNotebook *pnotebook) |
virtual void | OnCloseToolboxPanel (int page_sel, int ok_apply_cancel) |
virtual void | ShowPreferencesDialog (wxWindow *parent) |
virtual bool | RenderOverlay (wxMemoryDC *pmdc, PlugIn_ViewPort *vp) |
virtual void | SetCursorLatLon (double lat, double lon) |
virtual void | SetCurrentViewPort (PlugIn_ViewPort &vp) |
virtual void | SetPositionFix (PlugIn_Position_Fix &pfix) |
virtual void | SetNMEASentence (wxString &sentence) |
virtual void | SetAISSentence (wxString &sentence) |
virtual void | ProcessParentResize (int x, int y) |
virtual void | SetColorScheme (PI_ColorScheme cs) |
virtual void | OnToolbarToolCallback (int id) |
virtual void | OnContextMenuItemCallback (int id) |
virtual void | UpdateAuiStatus (void) |
virtual wxArrayString | GetDynamicChartClassNameArray (void) |
Definition at line 389 of file ocpn_plugin.h.
|
virtual |
FIXME static wxBitmap* LoadSVG(const wxString filename, unsigned int width, unsigned int height) { if (!gFrame) return new wxBitmap(width, height); // We are headless.
#ifdef ANDROID return loadAndroidSVG(filename, width, height); #elif defined(ocpnUSE_SVG) wxSVGDocument svgDoc; if (svgDoc.Load(filename)) return new wxBitmap(svgDoc.Render(width, height, NULL, true, true)); else return new wxBitmap(width, height); #else return new wxBitmap(width, height); #endif }
wxBitmap* opencpn_plugin::GetPlugInBitmap() { auto bitmap = PluginLoader::getInstance()->GetPluginDefaultIcon(); return const_cast<wxBitmap*>(bitmap); }
Definition at line 78 of file ocpn_plugin.cpp.