diff options
author | B Stack <bgstack15@gmail.com> | 2020-06-19 16:18:18 -0400 |
---|---|---|
committer | B Stack <bgstack15@gmail.com> | 2020-06-19 16:18:18 -0400 |
commit | b2801fb887fe40875b3ec90619b011b45c1d2796 (patch) | |
tree | fbbe856cbc0ba5a5d3a831f3ec514563cc69ecb1 /wx+/grid.h | |
parent | Merge branch '10.24' into 'master' (diff) | |
download | FreeFileSync-b2801fb887fe40875b3ec90619b011b45c1d2796.tar.gz FreeFileSync-b2801fb887fe40875b3ec90619b011b45c1d2796.tar.bz2 FreeFileSync-b2801fb887fe40875b3ec90619b011b45c1d2796.zip |
add upstream 10.25
Diffstat (limited to 'wx+/grid.h')
-rw-r--r-- | wx+/grid.h | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -111,7 +111,7 @@ public: virtual void renderCell (wxDC& dc, const wxRect& rect, size_t row, ColumnType colType, bool enabled, bool selected, HoverArea rowHover); virtual int getBestSize (wxDC& dc, size_t row, ColumnType colType); //must correspond to renderCell()! virtual std::wstring getToolTip (size_t row, ColumnType colType) const { return std::wstring(); } - virtual HoverArea getRowMouseHover(size_t row, ColumnType colType, int cellRelativePosX, int cellWidth) { return HoverArea::NONE; } + virtual HoverArea getRowMouseHover (size_t row, ColumnType colType, int cellRelativePosX, int cellWidth) { return HoverArea::NONE; } //label area: virtual std::wstring getColumnLabel(ColumnType colType) const = 0; @@ -123,7 +123,8 @@ public: static wxColor getColorSelectionGradientTo(); //optional helper routines: - static wxSize drawCellText (wxDC& dc, const wxRect& rect, const std::wstring& text, int alignment = wxALIGN_LEFT | wxALIGN_CENTER_VERTICAL); //returns text extent + static void drawCellText(wxDC& dc, const wxRect& rect, const std::wstring& text, + int alignment = wxALIGN_LEFT | wxALIGN_CENTER_VERTICAL, const wxSize* textExtentHint = nullptr); //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); @@ -285,7 +286,7 @@ private: } private: - std::vector<char> selected_; //effectively a vector<bool> of size "number of rows" + std::vector<unsigned char> selected_; //effectively a vector<bool> of size "number of rows" }; struct VisibleColumn |