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

#include <grid_icon_text_helpers.h>

Inheritance diagram for GRID_CELL_STATUS_ICON_RENDERER:

Public Member Functions

 GRID_CELL_STATUS_ICON_RENDERER (int aStatus)
 
void Draw (wxGrid &aGrid, wxGridCellAttr &aAttr, wxDC &aDC, const wxRect &aRect, int aRow, int aCol, bool isSelected) override
 
wxSize GetBestSize (wxGrid &grid, wxGridCellAttr &attr, wxDC &dc, int row, int col) override
 
wxGridCellRenderer * Clone () const override
 

Private Attributes

int m_status
 
wxBitmap m_bitmap
 

Detailed Description

Definition at line 91 of file grid_icon_text_helpers.h.

Constructor & Destructor Documentation

◆ GRID_CELL_STATUS_ICON_RENDERER()

GRID_CELL_STATUS_ICON_RENDERER::GRID_CELL_STATUS_ICON_RENDERER ( int  aStatus)

Definition at line 200 of file grid_icon_text_helpers.cpp.

References m_bitmap, and m_status.

Member Function Documentation

◆ Clone()

wxGridCellRenderer * GRID_CELL_STATUS_ICON_RENDERER::Clone ( ) const
override

Definition at line 245 of file grid_icon_text_helpers.cpp.

References m_status.

◆ Draw()

void GRID_CELL_STATUS_ICON_RENDERER::Draw ( wxGrid &  aGrid,
wxGridCellAttr &  aAttr,
wxDC &  aDC,
const wxRect &  aRect,
int  aRow,
int  aCol,
bool  isSelected 
)
override

Definition at line 217 of file grid_icon_text_helpers.cpp.

References m_bitmap, and m_status.

◆ GetBestSize()

wxSize GRID_CELL_STATUS_ICON_RENDERER::GetBestSize ( wxGrid &  grid,
wxGridCellAttr &  attr,
wxDC &  dc,
int  row,
int  col 
)
override

Definition at line 238 of file grid_icon_text_helpers.cpp.

References m_bitmap.

Member Data Documentation

◆ m_bitmap

wxBitmap GRID_CELL_STATUS_ICON_RENDERER::m_bitmap
private

Definition at line 103 of file grid_icon_text_helpers.h.

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

◆ m_status

int GRID_CELL_STATUS_ICON_RENDERER::m_status
private

Definition at line 102 of file grid_icon_text_helpers.h.

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


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