From ded7644999b59a28f917f04584787ed0294f41c8 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Mon, 27 Jan 2014 07:53:26 +0000 Subject: [PATCH] Add some of the Draw* methods that have been available in wxPython. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@75718 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- interface/wx/grid.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/interface/wx/grid.h b/interface/wx/grid.h index 3b5a0615cc..77be6d5279 100644 --- a/interface/wx/grid.h +++ b/interface/wx/grid.h @@ -4459,6 +4459,28 @@ public: //@} + + virtual void DrawCellHighlight( wxDC& dc, const wxGridCellAttr *attr ); + + virtual void DrawRowLabels( wxDC& dc, const wxArrayInt& rows ); + virtual void DrawRowLabel( wxDC& dc, int row ); + + virtual void DrawColLabels( wxDC& dc, const wxArrayInt& cols ); + virtual void DrawColLabel( wxDC& dc, int col ); + + virtual void DrawCornerLabel(wxDC& dc); + + void DrawTextRectangle( wxDC& dc, const wxString& text, const wxRect& rect, + int horizontalAlignment = wxALIGN_LEFT, + int verticalAlignment = wxALIGN_TOP, + int textOrientation = wxHORIZONTAL ) const; + + void DrawTextRectangle( wxDC& dc, const wxArrayString& lines, const wxRect& rect, + int horizontalAlignment = wxALIGN_LEFT, + int verticalAlignment = wxALIGN_TOP, + int textOrientation = wxHORIZONTAL ) const; + + protected: /** Returns @true if this grid has support for cell attributes.