Make wxRect2D::Get{Position,Size}() const.
Accessors should be const. Closes #14555. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72289 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -526,9 +526,9 @@ public:
|
|||||||
*/
|
*/
|
||||||
// single attribute accessors
|
// single attribute accessors
|
||||||
|
|
||||||
inline wxPoint2DDouble GetPosition()
|
wxPoint2DDouble GetPosition() const
|
||||||
{ return wxPoint2DDouble(m_x, m_y); }
|
{ return wxPoint2DDouble(m_x, m_y); }
|
||||||
inline wxSize GetSize()
|
wxSize GetSize() const
|
||||||
{ return wxSize((int) m_width, (int) m_height); }
|
{ return wxSize((int) m_width, (int) m_height); }
|
||||||
|
|
||||||
// for the edge and corner accessors there are two setters counterparts, the Set.. functions keep the other corners at their
|
// for the edge and corner accessors there are two setters counterparts, the Set.. functions keep the other corners at their
|
||||||
@@ -655,8 +655,8 @@ public:
|
|||||||
|
|
||||||
// single attribute accessors
|
// single attribute accessors
|
||||||
|
|
||||||
inline wxPoint2DInt GetPosition() { return wxPoint2DInt(m_x, m_y); }
|
wxPoint2DInt GetPosition() const { return wxPoint2DInt(m_x, m_y); }
|
||||||
inline wxSize GetSize() { return wxSize(m_width, m_height); }
|
wxSize GetSize() const { return wxSize(m_width, m_height); }
|
||||||
|
|
||||||
// for the edge and corner accessors there are two setters counterparts, the Set.. functions keep the other corners at their
|
// for the edge and corner accessors there are two setters counterparts, the Set.. functions keep the other corners at their
|
||||||
// position whenever sensible, the Move.. functions keep the size of the rect and move the other corners appropriately
|
// position whenever sensible, the Move.. functions keep the size of the rect and move the other corners appropriately
|
||||||
|
@@ -147,8 +147,8 @@ public:
|
|||||||
|
|
||||||
// single attribute accessors
|
// single attribute accessors
|
||||||
|
|
||||||
wxPoint2DDouble GetPosition();
|
wxPoint2DDouble GetPosition() const;
|
||||||
wxSize GetSize();
|
wxSize GetSize() const;
|
||||||
|
|
||||||
// for the edge and corner accessors there are two setters counterparts, the Set.. functions keep the other corners at their
|
// for the edge and corner accessors there are two setters counterparts, the Set.. functions keep the other corners at their
|
||||||
// position whenever sensible, the Move.. functions keep the size of the rect and move the other corners appropriately
|
// position whenever sensible, the Move.. functions keep the size of the rect and move the other corners appropriately
|
||||||
@@ -238,8 +238,8 @@ public:
|
|||||||
|
|
||||||
// single attribute accessors
|
// single attribute accessors
|
||||||
|
|
||||||
wxPoint2DInt GetPosition();
|
wxPoint2DInt GetPosition() const;
|
||||||
wxSize GetSize();
|
wxSize GetSize() const;
|
||||||
|
|
||||||
// for the edge and corner accessors there are two setters counterparts, the Set.. functions keep the other corners at their
|
// for the edge and corner accessors there are two setters counterparts, the Set.. functions keep the other corners at their
|
||||||
// position whenever sensible, the Move.. functions keep the size of the rect and move the other corners appropriately
|
// position whenever sensible, the Move.. functions keep the size of the rect and move the other corners appropriately
|
||||||
|
Reference in New Issue
Block a user