Make ConvertPixelsToDialog() and ConvertDialogToPixels() const.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63193 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -886,16 +886,16 @@ public:
|
||||
// dialog units translations
|
||||
// -------------------------
|
||||
|
||||
wxPoint ConvertPixelsToDialog( const wxPoint& pt );
|
||||
wxPoint ConvertDialogToPixels( const wxPoint& pt );
|
||||
wxSize ConvertPixelsToDialog( const wxSize& sz )
|
||||
wxPoint ConvertPixelsToDialog( const wxPoint& pt ) const;
|
||||
wxPoint ConvertDialogToPixels( const wxPoint& pt ) const;
|
||||
wxSize ConvertPixelsToDialog( const wxSize& sz ) const
|
||||
{
|
||||
wxPoint pt(ConvertPixelsToDialog(wxPoint(sz.x, sz.y)));
|
||||
|
||||
return wxSize(pt.x, pt.y);
|
||||
}
|
||||
|
||||
wxSize ConvertDialogToPixels( const wxSize& sz )
|
||||
wxSize ConvertDialogToPixels( const wxSize& sz ) const
|
||||
{
|
||||
wxPoint pt(ConvertDialogToPixels(wxPoint(sz.x, sz.y)));
|
||||
|
||||
|
@@ -1354,12 +1354,12 @@ public:
|
||||
|
||||
@see ConvertPixelsToDialog()
|
||||
*/
|
||||
wxPoint ConvertDialogToPixels(const wxPoint& pt);
|
||||
wxPoint ConvertDialogToPixels(const wxPoint& pt) const;
|
||||
|
||||
/**
|
||||
@overload
|
||||
*/
|
||||
wxSize ConvertDialogToPixels(const wxSize& sz);
|
||||
wxSize ConvertDialogToPixels(const wxSize& sz) const;
|
||||
|
||||
/**
|
||||
Converts a point or size from pixels to dialog units.
|
||||
@@ -1374,12 +1374,12 @@ public:
|
||||
|
||||
@see ConvertDialogToPixels()
|
||||
*/
|
||||
wxPoint ConvertPixelsToDialog(const wxPoint& pt);
|
||||
wxPoint ConvertPixelsToDialog(const wxPoint& pt) const;
|
||||
|
||||
/**
|
||||
@overload
|
||||
*/
|
||||
wxSize ConvertPixelsToDialog(const wxSize& sz);
|
||||
wxSize ConvertPixelsToDialog(const wxSize& sz) const;
|
||||
|
||||
/**
|
||||
Converts from screen to client window coordinates.
|
||||
|
@@ -2461,7 +2461,7 @@ void wxWindowBase::DoUpdateWindowUI(wxUpdateUIEvent& event)
|
||||
// dialog units translations
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
wxPoint wxWindowBase::ConvertPixelsToDialog(const wxPoint& pt)
|
||||
wxPoint wxWindowBase::ConvertPixelsToDialog(const wxPoint& pt) const
|
||||
{
|
||||
wxPoint pt2 = wxDefaultPosition;
|
||||
if (pt.x != wxDefaultCoord)
|
||||
@@ -2472,7 +2472,7 @@ wxPoint wxWindowBase::ConvertPixelsToDialog(const wxPoint& pt)
|
||||
return pt2;
|
||||
}
|
||||
|
||||
wxPoint wxWindowBase::ConvertDialogToPixels(const wxPoint& pt)
|
||||
wxPoint wxWindowBase::ConvertDialogToPixels(const wxPoint& pt) const
|
||||
{
|
||||
wxPoint pt2 = wxDefaultPosition;
|
||||
if (pt.x != wxDefaultCoord)
|
||||
|
Reference in New Issue
Block a user