virtual void DrawRombShades( wxPoint& p1, wxPoint& p2, wxPoint& p3, wxPoint& p4, wxDC& dc );
// Implements 'hard-coded metafile' for Netscape Navigator look.
- virtual void DrawOrtoRomb( wxRect& inRect, wxDC& dc, wxBrush& bkBrush );
+ virtual void DrawOrtoRomb( wxRect& inRect, wxDC& dc, const wxBrush& bkBrush );
// Implements 'hard-coded metafile' for Netscape Navigator look.
- virtual void DrawRomb( wxRect& inRect, wxDC& dc, wxBrush& bkBrush );
+ virtual void DrawRomb( wxRect& inRect, wxDC& dc, const wxBrush& bkBrush );
// Implements 'hard-coded metafile' for Netscape Navigator look.
- virtual void Draw3DRect( wxRect& inRect, wxDC& dc, wxBrush& bkBrush );
+ virtual void Draw3DRect( wxRect& inRect, wxDC& dc, const wxBrush& bkBrush );
// Implements 'hard-coded metafile' for Netscape Navigator look.
virtual void DrawRectShade( wxRect& inRect, wxDC& dc,
- int level, wxPen& upperPen, wxPen& lowerPen );
+ int level, const wxPen& upperPen, const wxPen& lowerPen );
// Helper for drag and drop.
virtual void GetRowHintRect( cbRowInfo* pRow, wxRect& rect );
bool SetColumnWidth(int column, int colSize = 5, bool expandable = false);
bool SetRowHeight(int row, int rowSize = 5, bool expandable = false);
bool EnableGridLines(wxWindow *win);
- bool SetGridPen(wxPen *pen);
+ bool SetGridPen(const wxPen *pen);
void OnPaint(wxDC& dc);
private:
dc.DrawLine( p4.x, p4.y, p1.x, p1.y );
}
-void cbRowDragPlugin::DrawOrtoRomb( wxRect& inRect, wxDC& dc, wxBrush& bkBrush )
+void cbRowDragPlugin::DrawOrtoRomb( wxRect& inRect, wxDC& dc, const wxBrush& bkBrush )
{
dc.SetBrush( bkBrush );
dc.SetPen( mpLayout->mBlackPen );
dc.SetBrush( wxNullBrush );
}
-void cbRowDragPlugin::DrawRomb( wxRect& inRect, wxDC& dc, wxBrush& bkBrush )
+void cbRowDragPlugin::DrawRomb( wxRect& inRect, wxDC& dc, const wxBrush& bkBrush )
{
wxPoint points[4];
}
void cbRowDragPlugin::DrawRectShade( wxRect& inRect, wxDC& dc,
- int level, wxPen& upperPen, wxPen& lowerPen )
+ int level, const wxPen& upperPen, const wxPen& lowerPen )
{
// upper shade
dc.SetPen( upperPen );
dc.SetBrush( wxNullBrush );
}
-void cbRowDragPlugin::Draw3DRect( wxRect& inRect, wxDC& dc, wxBrush& bkBrush )
+void cbRowDragPlugin::Draw3DRect( wxRect& inRect, wxDC& dc, const wxBrush& bkBrush )
{
dc.SetPen( mpLayout->mNullPen );
dc.SetBrush( bkBrush );
return true;
}
//---------------------------------------------------------------------------
-bool wxMultiCellSizer::SetGridPen(wxPen *pen)
+bool wxMultiCellSizer::SetGridPen(const wxPen *pen)
{
m_pen = pen;
return true;