No changes, just refactor wxGrid::DrawAllGridLines().
Extract the actual drawing of the lines into a new DoDrawGridLines() method. This will be used by the upcoming commits for drawing grid lines for a part of the grid only, see #14294. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71575 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2133,6 +2133,16 @@ private:
|
||||
// redraw the grid lines, should be called after changing their attributes
|
||||
void RedrawGridLines();
|
||||
|
||||
// draw all lines from top to bottom row and left to right column in the
|
||||
// rectangle determined by (top, left)-(bottom, right) -- but notice that
|
||||
// the caller must have set up the clipping correctly, this rectangle is
|
||||
// only used here for optimization
|
||||
void DoDrawGridLines(wxDC& dc,
|
||||
int top, int left,
|
||||
int bottom, int right,
|
||||
int topRow, int leftCol,
|
||||
int bottomRight, int rightCol);
|
||||
|
||||
// common part of Clip{Horz,Vert}GridLines
|
||||
void DoClipGridLines(bool& var, bool clip);
|
||||
|
||||
|
Reference in New Issue
Block a user