24#ifndef GRID_COLOR_SWATCH_HELPERS
25#define GRID_COLOR_SWATCH_HELPERS
27#include <wx/generic/gridctrl.h>
28#include <wx/generic/grideditors.h>
45 wxGridCellRenderer*
Clone()
const override;
46 wxSize
GetBestSize( wxGrid&
grid, wxGridCellAttr& attr, wxDC& dc,
int row,
int col )
override;
48 void Draw( wxGrid& aGrid, wxGridCellAttr& aAttr, wxDC& aDC,
const wxRect& aRect,
int aRow,
49 int aCol,
bool isSelected )
override;
73 wxGridCellEditor*
Clone()
const override;
74 void Create( wxWindow* aParent, wxWindowID aId, wxEvtHandler* aEventHandler )
override;
78 void BeginEdit(
int aRow,
int aCol, wxGrid* aGrid )
override;
79 bool EndEdit(
int ,
int ,
const wxGrid* ,
const wxString& , wxString *newval )
override;
80 void ApplyEdit(
int aRow,
int aCol, wxGrid* aGrid )
override;
81 void Reset()
override;
~GRID_CELL_COLOR_RENDERER() override
wxSize m_checkerboardSize
KIGFX::COLOR4D m_background
wxSize GetBestSize(wxGrid &grid, wxGridCellAttr &attr, wxDC &dc, int row, int col) override
KIGFX::COLOR4D m_checkerboardBg
wxGridCellRenderer * Clone() const override
void Draw(wxGrid &aGrid, wxGridCellAttr &aAttr, wxDC &aDC, const wxRect &aRect, int aRow, int aCol, bool isSelected) override
void ApplyEdit(int aRow, int aCol, wxGrid *aGrid) override
void BeginEdit(int aRow, int aCol, wxGrid *aGrid) override
void Create(wxWindow *aParent, wxWindowID aId, wxEvtHandler *aEventHandler) override
bool EndEdit(int, int, const wxGrid *, const wxString &, wxString *newval) override
wxGridCellEditor * Clone() const override
wxString GetValue() const override
wxDECLARE_NO_COPY_CLASS(GRID_CELL_COLOR_SELECTOR)
A color representation with 4 components: red, green, blue, alpha.
static const COLOR4D UNSPECIFIED
For legacy support; used as a value to indicate color hasn't been set yet.