Loading include/base_struct.h +20 −12 Original line number Original line Diff line number Diff line Loading @@ -615,6 +615,9 @@ public: public: public: EDA_Rect() { }; EDA_Rect() { }; EDA_Rect( const wxPoint& aPos, const wxSize& aSize ) : m_Pos( aPos ), m_Size( aSize ) {} wxPoint Centre() wxPoint Centre() { { Loading Loading @@ -651,6 +654,11 @@ public: m_Size.x = pos.x - m_Pos.x; m_Size.y = pos.y - m_Pos.y; m_Size.x = pos.x - m_Pos.x; m_Size.y = pos.y - m_Pos.y; } } /** * Function operator(wxRect) * overloads the cast operator to return a wxRect */ operator wxRect() const { return wxRect( m_Pos, m_Size ); } EDA_Rect& Inflate( wxCoord dx, wxCoord dy ); EDA_Rect& Inflate( wxCoord dx, wxCoord dy ); }; }; Loading Loading
include/base_struct.h +20 −12 Original line number Original line Diff line number Diff line Loading @@ -615,6 +615,9 @@ public: public: public: EDA_Rect() { }; EDA_Rect() { }; EDA_Rect( const wxPoint& aPos, const wxSize& aSize ) : m_Pos( aPos ), m_Size( aSize ) {} wxPoint Centre() wxPoint Centre() { { Loading Loading @@ -651,6 +654,11 @@ public: m_Size.x = pos.x - m_Pos.x; m_Size.y = pos.y - m_Pos.y; m_Size.x = pos.x - m_Pos.x; m_Size.y = pos.y - m_Pos.y; } } /** * Function operator(wxRect) * overloads the cast operator to return a wxRect */ operator wxRect() const { return wxRect( m_Pos, m_Size ); } EDA_Rect& Inflate( wxCoord dx, wxCoord dy ); EDA_Rect& Inflate( wxCoord dx, wxCoord dy ); }; }; Loading