summaryrefslogtreecommitdiff
path: root/wx+/grid.h
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2016-05-31 16:38:45 +0200
committerDaniel Wilhelm <daniel@wili.li>2016-05-31 16:38:45 +0200
commitbe08c6c09a3026da628daf2425516beda1557bb3 (patch)
tree062cc2f6a1e5ba5a2fdcb53549cc09c4ff5d062a /wx+/grid.h
parent8.1 (diff)
downloadFreeFileSync-be08c6c09a3026da628daf2425516beda1557bb3.tar.gz
FreeFileSync-be08c6c09a3026da628daf2425516beda1557bb3.tar.bz2
FreeFileSync-be08c6c09a3026da628daf2425516beda1557bb3.zip
8.2
Diffstat (limited to 'wx+/grid.h')
-rw-r--r--wx+/grid.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/wx+/grid.h b/wx+/grid.h
index aacd34bc..5fe337f4 100644
--- a/wx+/grid.h
+++ b/wx+/grid.h
@@ -90,8 +90,6 @@ using GridColumnResizeEventFunction = void (wxEvtHandler::*)(GridColumnResizeEve
//------------------------------------------------------------------------------------------------------------
class Grid;
-wxColor getColorSelectionGradientFrom();
-wxColor getColorSelectionGradientTo();
void clearArea(wxDC& dc, const wxRect& rect, const wxColor& col);
@@ -118,7 +116,7 @@ public:
static const int COLUMN_GAP_LEFT; //for left-aligned text
//optional helper routines:
- static void drawCellText (wxDC& dc, const wxRect& rect, const std::wstring& text, int alignment = wxALIGN_LEFT | wxALIGN_CENTER_VERTICAL);
+ static wxSize drawCellText (wxDC& dc, const wxRect& rect, const std::wstring& text, int alignment = wxALIGN_LEFT | wxALIGN_CENTER_VERTICAL); //returns text extent
static wxRect drawCellBorder (wxDC& dc, const wxRect& rect); //returns inner rectangle
static void drawCellBackground(wxDC& dc, const wxRect& rect, bool enabled, bool selected, const wxColor& backgroundColor);
@@ -217,6 +215,9 @@ public:
//############################################################################################################
+static wxColor getColorSelectionGradientFrom();
+static wxColor getColorSelectionGradientTo();
+
private:
void onPaintEvent(wxPaintEvent& event);
void onEraseBackGround(wxEraseEvent& event) {} //[!]
bgstack15