21#ifndef KICAD_GRID_BITMAP_TOGGLE_H
22#define KICAD_GRID_BITMAP_TOGGLE_H
24#include <wx/bmpbndl.h>
35 const wxBitmapBundle& 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;
A toggle button renderer for a wxGrid, similar to BITMAP_TOGGLE.
wxBitmapBundle m_bitmapUnchecked
~GRID_BITMAP_TOGGLE_RENDERER()
void Draw(wxGrid &aGrid, wxGridCellAttr &aAttr, wxDC &aDc, const wxRect &aRect, int aRow, int aCol, bool aIsSelected) override
wxBitmapBundle m_bitmapChecked
wxSize GetBestSize(wxGrid &aGrid, wxGridCellAttr &aAttr, wxDC &aDc, int aRow, int aCol) override
GRID_BITMAP_TOGGLE_RENDERER * Clone() const override