KiCad PCB EDA Suite
Loading...
Searching...
No Matches
GRID_BITMAP_TOGGLE_RENDERER Class Reference

A toggle button renderer for a wxGrid, similar to BITMAP_TOGGLE. More...

#include <grid_bitmap_toggle.h>

Inheritance diagram for GRID_BITMAP_TOGGLE_RENDERER:

Public Member Functions

 GRID_BITMAP_TOGGLE_RENDERER (const wxBitmapBundle &aCheckedBitmap, const wxBitmapBundle &aUncheckedBitmap)
 
 ~GRID_BITMAP_TOGGLE_RENDERER ()
 
GRID_BITMAP_TOGGLE_RENDERERClone () 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
 

Detailed Description

A toggle button renderer for a wxGrid, similar to BITMAP_TOGGLE.

Definition at line 31 of file grid_bitmap_toggle.h.

Constructor & Destructor Documentation

◆ GRID_BITMAP_TOGGLE_RENDERER()

GRID_BITMAP_TOGGLE_RENDERER::GRID_BITMAP_TOGGLE_RENDERER ( const wxBitmapBundle &  aCheckedBitmap,
const wxBitmapBundle &  aUncheckedBitmap 
)

Definition at line 27 of file grid_bitmap_toggle.cpp.

◆ ~GRID_BITMAP_TOGGLE_RENDERER()

GRID_BITMAP_TOGGLE_RENDERER::~GRID_BITMAP_TOGGLE_RENDERER ( )
inline

Definition at line 37 of file grid_bitmap_toggle.h.

Member Function Documentation

◆ Clone()

GRID_BITMAP_TOGGLE_RENDERER * GRID_BITMAP_TOGGLE_RENDERER::Clone ( ) const
override

Definition at line 36 of file grid_bitmap_toggle.cpp.

References m_bitmapChecked, and m_bitmapUnchecked.

◆ Draw()

void GRID_BITMAP_TOGGLE_RENDERER::Draw ( wxGrid &  aGrid,
wxGridCellAttr &  aAttr,
wxDC &  aDc,
const wxRect &  aRect,
int  aRow,
int  aCol,
bool  aIsSelected 
)
override

Definition at line 44 of file grid_bitmap_toggle.cpp.

References m_bitmapChecked, and m_bitmapUnchecked.

◆ GetBestSize()

wxSize GRID_BITMAP_TOGGLE_RENDERER::GetBestSize ( wxGrid &  aGrid,
wxGridCellAttr &  aAttr,
wxDC &  aDc,
int  aRow,
int  aCol 
)
override

Definition at line 61 of file grid_bitmap_toggle.cpp.

References m_bitmapChecked.

Member Data Documentation

◆ m_bitmapChecked

wxBitmapBundle GRID_BITMAP_TOGGLE_RENDERER::m_bitmapChecked
private

Definition at line 48 of file grid_bitmap_toggle.h.

Referenced by Clone(), Draw(), and GetBestSize().

◆ m_bitmapUnchecked

wxBitmapBundle GRID_BITMAP_TOGGLE_RENDERER::m_bitmapUnchecked
private

Definition at line 50 of file grid_bitmap_toggle.h.

Referenced by Clone(), and Draw().


The documentation for this class was generated from the following files: