Move body of SetMinSize and SetMaxSize from header to cpp file for easier debugging. The methods are virtual anyway.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58515 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -458,8 +458,8 @@ public:
|
||||
// Call these to override what GetBestSize() returns. This
|
||||
// method is only virtual because it is overriden in wxTLW
|
||||
// as a different API for SetSizeHints().
|
||||
virtual void SetMinSize(const wxSize& minSize) { m_minWidth = minSize.x; m_minHeight = minSize.y; }
|
||||
virtual void SetMaxSize(const wxSize& maxSize) { m_maxWidth = maxSize.x; m_maxHeight = maxSize.y; }
|
||||
virtual void SetMinSize(const wxSize& minSize);
|
||||
virtual void SetMaxSize(const wxSize& maxSize);
|
||||
|
||||
// Like Set*Size, but for client, not window, size
|
||||
virtual void SetMinClientSize(const wxSize& size)
|
||||
|
@@ -721,6 +721,18 @@ wxSize wxWindowBase::GetEffectiveMinSize() const
|
||||
}
|
||||
|
||||
|
||||
void wxWindowBase::SetMinSize(const wxSize& minSize)
|
||||
{
|
||||
m_minWidth = minSize.x;
|
||||
m_minHeight = minSize.y;
|
||||
}
|
||||
|
||||
void wxWindowBase::SetMaxSize(const wxSize& maxSize)
|
||||
{
|
||||
m_maxWidth = maxSize.x;
|
||||
m_maxHeight = maxSize.y;
|
||||
}
|
||||
|
||||
void wxWindowBase::SetInitialSize(const wxSize& size)
|
||||
{
|
||||
// Set the min size to the size passed in. This will usually either be
|
||||
|
Reference in New Issue
Block a user