Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/supermerill/SuperSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbubnikv <bubnikv@gmail.com>2019-02-20 18:20:30 +0300
committerbubnikv <bubnikv@gmail.com>2019-02-20 18:20:30 +0300
commitc55629259afb0180f20f7b08f916df1eb8a28dfd (patch)
tree8ae011c1c02d1e6676193f35844cd2a5bf67037d /src/slic3r/GUI/GUI_App.hpp
parent3901ac47d1d3c09d8add5f63f4688c44be2111fc (diff)
parent8a31f9d658f3ded6afb45183d026ae32517540d1 (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.hpp5
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();