|
OpenCPN Partial API docs
|
General purpose GUI support. More...
#include <wx/button.h>#include <wx/font.h>#include <wx/html/htmlwin.h>#include <wx/msgdlg.h>#include <wx/textctrl.h>#include <wx/timer.h>#include <wx/window.h>#include "model/std_icon.h"Go to the source code of this file.
Classes | |
| class | CopyableText |
| Non-editable TextCtrl, used like wxStaticText but is copyable. More... | |
| class | OCPNMessageDialog |
| class | TimedMessageBox |
| class | TimedPopupWin |
| class | InfoButton |
| Clickable, small info icon which displays a help text Typical usage: More... | |
Functions | |
| wxFont * | GetOCPNScaledFont (wxString item, int default_size=0) |
| Retrieves a font from FontMgr, optionally scaled for physical readability. | |
| wxFont | GetOCPNGUIScaledFont (wxString item) |
| Retrieves a font optimized for touch and high-resolution interfaces. | |
| int | OCPNMessageBox (wxWindow *parent, const wxString &message, const wxString &caption="Message", int style=wxOK, int timout_sec=-1, int x=-1, int y=-1) |
| wxFont GetOCPNGUIScaledFont | ( | wxString | item | ) |
Retrieves a font optimized for touch and high-resolution interfaces.
Generates a font specifically tuned for responsive and touch-friendly interfaces, with more aggressive scaling than standard font methods.
| item | UI element identifier (e.g., "AISTargetAlert", "StatusBar") |
Definition at line 90 of file gui_lib.cpp.
| wxFont * GetOCPNScaledFont | ( | wxString | item, |
| int | default_size = 0 |
||
| ) |
Retrieves a font from FontMgr, optionally scaled for physical readability.
Returns a font configured for a specific UI context, scaling based on system settings and preserving readability across different displays.
| item | UI element identifier (e.g., "AISTargetAlert", "StatusBar") |
| default_size | Optional base font size in points. 0 uses platform default. |
Definition at line 61 of file gui_lib.cpp.
|
extern |
Definition at line 117 of file gui_lib.cpp.