diff options
author | bubnikv <bubnikv@gmail.com> | 2019-02-20 18:20:30 +0300 |
---|---|---|
committer | bubnikv <bubnikv@gmail.com> | 2019-02-20 18:20:30 +0300 |
commit | c55629259afb0180f20f7b08f916df1eb8a28dfd (patch) | |
tree | 8ae011c1c02d1e6676193f35844cd2a5bf67037d /src/slic3r/GUI/GUI_App.hpp | |
parent | 3901ac47d1d3c09d8add5f63f4688c44be2111fc (diff) | |
parent | 8a31f9d658f3ded6afb45183d026ae32517540d1 (diff) |
Merge remote-tracking branch 'origin/ys_hdpi'
Diffstat (limited to 'src/slic3r/GUI/GUI_App.hpp')
-rw-r--r-- | src/slic3r/GUI/GUI_App.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/slic3r/GUI/GUI_App.hpp b/src/slic3r/GUI/GUI_App.hpp index 5fc691e8a..4c23e3eb7 100644 --- a/src/slic3r/GUI/GUI_App.hpp +++ b/src/slic3r/GUI/GUI_App.hpp @@ -81,6 +81,9 @@ class GUI_App : public wxApp wxFont m_small_font; wxFont m_bold_font; + size_t m_em_unit; // width of a "m"-symbol in pixels for current system font + // Note: for 100% Scale m_em_unit = 10 -> it's a good enough coefficient for a size setting of controls + wxLocale* m_wxLocale{ nullptr }; #if ENABLE_IMGUI @@ -108,6 +111,8 @@ public: const wxFont& small_font() { return m_small_font; } const wxFont& bold_font() { return m_bold_font; } + size_t em_unit() const { return m_em_unit; } + void set_em_unit(const size_t em_unit) { m_em_unit = em_unit; } void recreate_GUI(); void system_info(); |