41                 const wxRect& cellRect,
 
   47    const wxCoord 
minSize = wxMin(cellRect.width, cellRect.height);
 
   54        contentSize.y = fittingSize;
 
   57    wxRect contentRect(contentSize);
 
   59    if ( hAlign & wxALIGN_CENTER_HORIZONTAL )
 
   61        contentRect = contentRect.CentreIn(cellRect, wxHORIZONTAL);
 
   63    else if ( hAlign & wxALIGN_RIGHT )
 
   65        contentRect.SetX(cellRect.x + cellRect.width
 
   73    if ( vAlign & wxALIGN_CENTER_VERTICAL )
 
   75        contentRect = contentRect.CentreIn(cellRect, wxVERTICAL);
 
   77    else if ( vAlign & wxALIGN_BOTTOM )
 
   79        contentRect.SetY(cellRect.y + cellRect.height
 
 
  102    wxGridCellRenderer::Draw(
grid, attr, dc, rect, row, col, isSelected);
 
  104    int hAlign = wxALIGN_LEFT;
 
  105    int vAlign = wxALIGN_CENTRE_VERTICAL;
 
  106    attr.GetNonDefaultAlignment(&hAlign, &vAlign);
 
  108    const wxRect checkBoxRect =
 
  110                         rect, hAlign, vAlign);
 
  113    if ( 
grid.GetTable()->CanGetValueAs(row, col, wxGRID_VALUE_BOOL) )
 
  115        value = 
grid.GetTable()->GetValueAsBool(row, col);
 
  119        wxString cellval( 
grid.GetTable()->GetValue(row, col) );
 
  120        value = wxGridCellBoolEditor::IsTrueValue(cellval);
 
  123    int flags = wxCONTROL_CELL;
 
  126        flags |= wxCONTROL_UNDETERMINED;
 
  130        flags |= wxCONTROL_CHECKED;
 
  132    wxRendererNative::Get().DrawCheckBox( &
grid, dc, checkBoxRect, flags );
 
 
void Draw(wxGrid &grid, wxGridCellAttr &attr, wxDC &dc, const wxRect &rect, int row, int col, bool isSelected) override