OpenCPN Partial API docs
Loading...
Searching...
No Matches
BasePlatform Class Reference
Inheritance diagram for BasePlatform:
AbstractPlatform OCPNPlatform

Public Member Functions

bool InitializeLogFile () override
wxSize getDisplaySize () override
double GetDisplaySizeMM () override
double GetDisplayDPmm () override
int GetSvgStdIconSize (const wxWindow *w, bool touch) override
 Return icon size roughly corresponding to height of a char in w, tweaked to be "big enough" for touch screens if touch is true.
Public Member Functions inherited from AbstractPlatform
wxString & GetPrivateDataDir ()
 Return dir path for opencpn.log, etc., respecting -c cli option.
wxString & DefaultPrivateDataDir ()
 Return dir path for opencpn.log, etc., does not respect -c option.
wxString * GetPluginDirPtr ()
wxString * GetSharedDataDirPtr ()
wxString * GetPrivateDataDirPtr ()
 Legacy compatibility syntactic sugar for GetPrivateDataDir().
wxString & GetPluginDir ()
 The original in-tree plugin directory, sometimes not user-writable.
wxString GetSupplementalLicenseString ()
 Android license details, otherwise "".
wxStandardPaths & GetStdPaths ()
wxString GetWinPluginBaseDir ()
 Base directory for user writable windows plugins, reflects winPluginDir option, defaults to LOCALAPPDATA%/opencpn.
wxString & GetSharedDataDir ()
wxString & GetExePath ()
wxString & GetHomeDir ()
wxString GetWritableDocumentsDir ()
wxString GetPluginDataPath ()
 Return ';'-separated list of base directories for plugin data.
wxString & GetConfigFileName ()
wxString & GetLogFileName ()
bool isFlatpacked ()
bool isPlatformCapable (int flag)
OCPN_OSDetail * GetOSDetail ()
void CloseLogFile (void)
wxString & GetLargeLogMessage (void)
FILE * GetLogFilePtr ()
wxString NormalizePath (const wxString &full_path)
virtual unsigned int GetSelectRadiusPix ()
double GetDisplayDIPMult (wxWindow *win)
 Get the display scaling factor for DPI-aware rendering.

Additional Inherited Members

Static Public Member Functions inherited from AbstractPlatform
static void ShowBusySpinner ()
static void HideBusySpinner ()
Protected Member Functions inherited from AbstractPlatform
bool DetectOSDetail (OCPN_OSDetail *detail)
Protected Attributes inherited from AbstractPlatform
wxString m_default_private_datadir
wxString m_PrivateDataDir
wxString m_PluginsDir
bool m_isFlatpacked
wxString m_homeDir
wxString m_exePath
wxString m_SData_Dir
wxString m_config_file_name
wxString m_pluginDataPath
wxString mlog_file
OCPN_OSDetail * m_osDetail
FILE * flog
wxLog * m_old_logger
wxString large_log_message
std::vector< int > m_displaySizeMMOverride
int m_monitorWidth
int m_monitorHeight
bool m_bdisableWindowsDisplayEnum
Static Protected Attributes inherited from AbstractPlatform
static bool m_isBusy = false

Detailed Description

Definition at line 198 of file base_platform.h.

Constructor & Destructor Documentation

◆ BasePlatform()

BasePlatform::BasePlatform ( )

Definition at line 157 of file base_platform.cpp.

◆ ~BasePlatform()

BasePlatform::~BasePlatform ( )

Definition at line 170 of file base_platform.cpp.

Member Function Documentation

◆ GetDisplayDPmm()

double BasePlatform::GetDisplayDPmm ( )
overridevirtual

Reimplemented from AbstractPlatform.

Definition at line 837 of file base_platform.cpp.

◆ getDisplaySize()

wxSize BasePlatform::getDisplaySize ( )
overridevirtual

Reimplemented from AbstractPlatform.

Reimplemented in OCPNPlatform.

Definition at line 815 of file base_platform.cpp.

◆ GetDisplaySizeMM()

double BasePlatform::GetDisplaySizeMM ( )
overridevirtual

Reimplemented from AbstractPlatform.

Reimplemented in OCPNPlatform.

Definition at line 819 of file base_platform.cpp.

◆ GetSvgStdIconSize()

int BasePlatform::GetSvgStdIconSize ( const wxWindow * w,
bool touch )
overridevirtual

Return icon size roughly corresponding to height of a char in w, tweaked to be "big enough" for touch screens if touch is true.

Implements AbstractPlatform.

Definition at line 987 of file base_platform.cpp.

◆ InitializeLogFile()

bool BasePlatform::InitializeLogFile ( void )
overridevirtual

Implements AbstractPlatform.

Definition at line 654 of file base_platform.cpp.


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