Implemented rescaling for "Remove device" button

This commit is contained in:
YuSanka 2019-12-13 13:23:55 +01:00 committed by David Kocik
parent 6de41c6147
commit 2df903640b
3 changed files with 44 additions and 29 deletions

View file

@ -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 };
};