Use wxDC rather than wxClientDC for parameter type
This commit is contained in:
parent
3b54720b3a
commit
fca4ef0458
@ -17,8 +17,6 @@
|
||||
|
||||
#include "wx/propgrid/property.h"
|
||||
|
||||
class WXDLLIMPEXP_FWD_CORE wxClientDC;
|
||||
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
// A return value from wxPropertyGrid::HitTest(),
|
||||
@ -471,12 +469,12 @@ public:
|
||||
// Returns minimal width for given column so that all images and texts
|
||||
// will fit entirely.
|
||||
// Used by SetSplitterLeft() and DoFitColumns().
|
||||
int GetColumnFitWidth(wxClientDC& dc,
|
||||
int GetColumnFitWidth(const wxDC& dc,
|
||||
wxPGProperty* pwc,
|
||||
unsigned int col,
|
||||
bool subProps) const;
|
||||
|
||||
int GetColumnFullWidth(wxClientDC &dc, wxPGProperty *p, unsigned int col);
|
||||
int GetColumnFullWidth(const wxDC& dc, wxPGProperty* p, unsigned int col);
|
||||
|
||||
// Returns information about arbitrary position in the grid.
|
||||
// pt - Logical coordinates in the virtual grid space. Use
|
||||
|
@ -718,7 +718,7 @@ wxPropertyGridPageState::HitTest( const wxPoint&pt ) const
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
// Used by SetSplitterLeft() and DotFitColumns()
|
||||
int wxPropertyGridPageState::GetColumnFitWidth(wxClientDC& dc,
|
||||
int wxPropertyGridPageState::GetColumnFitWidth(const wxDC& dc,
|
||||
wxPGProperty* pwc,
|
||||
unsigned int col,
|
||||
bool subProps) const
|
||||
@ -762,7 +762,7 @@ int wxPropertyGridPageState::GetColumnFitWidth(wxClientDC& dc,
|
||||
return maxW;
|
||||
}
|
||||
|
||||
int wxPropertyGridPageState::GetColumnFullWidth( wxClientDC &dc, wxPGProperty *p, unsigned int col )
|
||||
int wxPropertyGridPageState::GetColumnFullWidth(const wxDC& dc, wxPGProperty* p, unsigned int col)
|
||||
{
|
||||
if ( p->IsCategory() )
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user