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...

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 39 of file fields_data_model.cpp.

Constructor & Destructor Documentation

◆ GRID_CELL_RESOLVED_TEXT_RENDERER()

GRID_CELL_RESOLVED_TEXT_RENDERER::GRID_CELL_RESOLVED_TEXT_RENDERER ( )
inline

Definition at line 42 of file fields_data_model.cpp.

Referenced by Clone().

Member Function Documentation

◆ Clone()

wxGridCellRenderer * GRID_CELL_RESOLVED_TEXT_RENDERER::Clone ( ) const
inlineoverride

Definition at line 73 of file fields_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 )
inlineoverride

Definition at line 47 of file fields_data_model.cpp.

References model.

◆ GetBestSize()

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

Definition at line 63 of file fields_data_model.cpp.

References model.


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