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:
authorYuSanka <yusanka@gmail.com>2019-12-13 15:23:55 +0300
committerDavid Kocik <kocikdav@gmail.com>2019-12-13 17:13:55 +0300
commit2df903640bc4c5e9906aef0bf7a6b9beb3acc169 (patch)
treeaa6baa46f94d074ff615d96f86c27ddff4e1093b /src/slic3r/GUI/wxExtensions.hpp
parent6de41c6147ec921f0b06e1769d70e94898b31a2a (diff)
Implemented rescaling for "Remove device" button
Diffstat (limited to 'src/slic3r/GUI/wxExtensions.hpp')
-rw-r--r--src/slic3r/GUI/wxExtensions.hpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/slic3r/GUI/wxExtensions.hpp b/src/slic3r/GUI/wxExtensions.hpp
index 7841b62fe..951f7ea8f 100644
--- a/src/slic3r/GUI/wxExtensions.hpp
+++ b/src/slic3r/GUI/wxExtensions.hpp
@@ -729,6 +729,9 @@ public:
wxBitmap& bmp() { return m_bmp; }
const std::string& name() const{ return m_icon_name; }
+ int px_cnt()const {return m_px_cnt;}
+ bool is_horizontal()const {return m_is_horizontal;}
+
private:
wxWindow* m_parent{ nullptr };
wxBitmap m_bmp = wxBitmap();
@@ -1116,6 +1119,10 @@ private:
std::string m_disabled_icon_name = "";
int m_width {-1}; // should be multiplied to em_unit
int m_height{-1}; // should be multiplied to em_unit
+
+ // bitmap dimensions
+ int m_px_cnt{ 16 };
+ bool m_is_horizontal{ false };
};