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

Cell renderer that shows the expanded result of text variables (e.g. More...

#include <fields_table_data_model.h>

Inheritance diagram for GRID_CELL_RESOLVED_TEXT_RENDERER:

Public Member Functions

 GRID_CELL_RESOLVED_TEXT_RENDERER ()
 
void Draw (wxGrid &aGrid, wxGridCellAttr &aAttr, wxDC &aDC, const wxRect &aRect, int aRow, int aCol, bool isSelected) override
 
wxSize GetBestSize (wxGrid &aGrid, wxGridCellAttr &aAttr, wxDC &aDC, int aRow, int aCol) override
 
wxGridCellRenderer * Clone () const override
 

Detailed Description

Cell renderer that shows the expanded result of text variables (e.g.

"${VALUE}" is displayed as "10K"). The actual cell still stores the raw variable so it can be edited directly.

Definition at line 337 of file fields_table_data_model.h.

Constructor & Destructor Documentation

◆ GRID_CELL_RESOLVED_TEXT_RENDERER()

GRID_CELL_RESOLVED_TEXT_RENDERER::GRID_CELL_RESOLVED_TEXT_RENDERER ( )

Definition at line 35 of file fields_table_data_model.cpp.

Referenced by Clone().

Member Function Documentation

◆ Clone()

wxGridCellRenderer * GRID_CELL_RESOLVED_TEXT_RENDERER::Clone ( ) const
override

Definition at line 70 of file fields_table_data_model.cpp.

References GRID_CELL_RESOLVED_TEXT_RENDERER().

◆ Draw()

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

Definition at line 41 of file fields_table_data_model.cpp.

References model.

◆ GetBestSize()

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

Definition at line 58 of file fields_table_data_model.cpp.

References model.


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