21 #ifndef KICAD_GRID_BITMAP_TOGGLE_H 22 #define KICAD_GRID_BITMAP_TOGGLE_H 24 #include <wx/bitmap.h> 35 const wxBitmap& aUncheckedBitmap );
41 void Draw( wxGrid& aGrid, wxGridCellAttr& aAttr, wxDC& aDc,
const wxRect& aRect,
42 int aRow,
int aCol,
bool aIsSelected )
override;
44 wxSize
GetBestSize( wxGrid& aGrid, wxGridCellAttr& aAttr, wxDC& aDc,
45 int aRow,
int aCol)
override;
53 #endif // KICAD_GRID_BITMAP_TOGGLE_H void Draw(wxGrid &aGrid, wxGridCellAttr &aAttr, wxDC &aDc, const wxRect &aRect, int aRow, int aCol, bool aIsSelected) override
GRID_BITMAP_TOGGLE_RENDERER * Clone() const override
wxBitmap m_bitmapUnchecked
wxSize GetBestSize(wxGrid &aGrid, wxGridCellAttr &aAttr, wxDC &aDc, int aRow, int aCol) override
~GRID_BITMAP_TOGGLE_RENDERER()
GRID_BITMAP_TOGGLE_RENDERER(const wxBitmap &aCheckedBitmap, const wxBitmap &aUncheckedBitmap)
A toggle button renderer for a wxGrid, similar to BITMAP_TOGGLE.