KiCad PCB EDA Suite
|
A toggle button renderer for a wxGrid, similar to BITMAP_TOGGLE. More...
#include <grid_bitmap_toggle.h>
Public Member Functions | |
GRID_BITMAP_TOGGLE_RENDERER (const wxBitmapBundle &aCheckedBitmap, const wxBitmapBundle &aUncheckedBitmap) | |
~GRID_BITMAP_TOGGLE_RENDERER () | |
GRID_BITMAP_TOGGLE_RENDERER * | Clone () const override |
void | Draw (wxGrid &aGrid, wxGridCellAttr &aAttr, wxDC &aDc, const wxRect &aRect, int aRow, int aCol, bool aIsSelected) override |
wxSize | GetBestSize (wxGrid &aGrid, wxGridCellAttr &aAttr, wxDC &aDc, int aRow, int aCol) override |
Private Attributes | |
wxBitmapBundle | m_bitmapChecked |
wxBitmapBundle | m_bitmapUnchecked |
A toggle button renderer for a wxGrid, similar to BITMAP_TOGGLE.
Definition at line 31 of file grid_bitmap_toggle.h.
GRID_BITMAP_TOGGLE_RENDERER::GRID_BITMAP_TOGGLE_RENDERER | ( | const wxBitmapBundle & | aCheckedBitmap, |
const wxBitmapBundle & | aUncheckedBitmap | ||
) |
Definition at line 27 of file grid_bitmap_toggle.cpp.
|
inline |
Definition at line 37 of file grid_bitmap_toggle.h.
|
override |
Definition at line 36 of file grid_bitmap_toggle.cpp.
References m_bitmapChecked, and m_bitmapUnchecked.
|
override |
Definition at line 44 of file grid_bitmap_toggle.cpp.
References m_bitmapChecked, and m_bitmapUnchecked.
|
override |
Definition at line 61 of file grid_bitmap_toggle.cpp.
References m_bitmapChecked.
|
private |
Definition at line 48 of file grid_bitmap_toggle.h.
Referenced by Clone(), Draw(), and GetBestSize().
|
private |
Definition at line 50 of file grid_bitmap_toggle.h.