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

#include <grid_button.h>

Inheritance diagram for GRID_BUTTON_RENDERER:

Public Member Functions

 GRID_BUTTON_RENDERER (const wxString &aLabel)
 
virtual ~GRID_BUTTON_RENDERER ()=default
 
GRID_BUTTON_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

wxButton m_button
 

Detailed Description

Definition at line 27 of file grid_button.h.

Constructor & Destructor Documentation

◆ GRID_BUTTON_RENDERER()

GRID_BUTTON_RENDERER::GRID_BUTTON_RENDERER ( const wxString &  aLabel)

Definition at line 25 of file grid_button.cpp.

◆ ~GRID_BUTTON_RENDERER()

virtual GRID_BUTTON_RENDERER::~GRID_BUTTON_RENDERER ( )
virtualdefault

Member Function Documentation

◆ Clone()

GRID_BUTTON_RENDERER * GRID_BUTTON_RENDERER::Clone ( ) const
override

Definition at line 32 of file grid_button.cpp.

References m_button.

◆ Draw()

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

Definition at line 39 of file grid_button.cpp.

◆ GetBestSize()

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

Definition at line 49 of file grid_button.cpp.

References m_button.

Member Data Documentation

◆ m_button

wxButton GRID_BUTTON_RENDERER::m_button
private

Definition at line 43 of file grid_button.h.

Referenced by Clone(), and GetBestSize().


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