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

#include <grid_button.h>

Inheritance diagram for GRID_BITMAP_BUTTON_RENDERER:

Public Member Functions

 GRID_BITMAP_BUTTON_RENDERER (const wxBitmapBundle &aBitmap)
 
virtual ~GRID_BITMAP_BUTTON_RENDERER ()=default
 
GRID_BITMAP_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

wxBitmapBundle m_bitmap
 

Detailed Description

Definition at line 48 of file grid_button.h.

Constructor & Destructor Documentation

◆ GRID_BITMAP_BUTTON_RENDERER()

GRID_BITMAP_BUTTON_RENDERER::GRID_BITMAP_BUTTON_RENDERER ( const wxBitmapBundle & aBitmap)

Definition at line 56 of file grid_button.cpp.

References m_bitmap.

Referenced by Clone(), and ~GRID_BITMAP_BUTTON_RENDERER().

◆ ~GRID_BITMAP_BUTTON_RENDERER()

virtual GRID_BITMAP_BUTTON_RENDERER::~GRID_BITMAP_BUTTON_RENDERER ( )
virtualdefault

Member Function Documentation

◆ Clone()

GRID_BITMAP_BUTTON_RENDERER * GRID_BITMAP_BUTTON_RENDERER::Clone ( ) const
override

Definition at line 64 of file grid_button.cpp.

References GRID_BITMAP_BUTTON_RENDERER(), and m_bitmap.

◆ Draw()

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

Definition at line 71 of file grid_button.cpp.

References BUTTON_PADDING(), and m_bitmap.

◆ GetBestSize()

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

Definition at line 87 of file grid_button.cpp.

References BUTTON_PADDING(), and m_bitmap.

Member Data Documentation

◆ m_bitmap

wxBitmapBundle GRID_BITMAP_BUTTON_RENDERER::m_bitmap
private

Definition at line 64 of file grid_button.h.

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


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