KiCad PCB EDA Suite
Loading...
Searching...
No Matches
GRIDCELL_AUTOWRAP_STRINGRENDERER Class Reference
Inheritance diagram for GRIDCELL_AUTOWRAP_STRINGRENDERER:

Public Member Functions

int GetHeight (wxDC &aDC, wxGrid *aGrid, int aRow, int aCol)
 
wxGridCellRenderer * Clone () const override
 

Private Member Functions

wxArrayString GetTextLines (wxGrid &grid, wxDC &dc, const wxGridCellAttr &attr, const wxRect &rect, int row, int col)
 
void BreakLine (wxDC &dc, const wxString &logicalLine, wxCoord maxWidth, wxArrayString &lines)
 
wxCoord BreakWord (wxDC &dc, const wxString &word, wxCoord maxWidth, wxArrayString &lines, wxString &line)
 

Detailed Description

Definition at line 58 of file dialog_edit_symbols_libid.cpp.

Member Function Documentation

◆ BreakLine()

void GRIDCELL_AUTOWRAP_STRINGRENDERER::BreakLine ( wxDC & dc,
const wxString & logicalLine,
wxCoord maxWidth,
wxArrayString & lines )
private

Definition at line 127 of file dialog_edit_symbols_libid.cpp.

References BreakWord().

Referenced by GetTextLines().

◆ BreakWord()

wxCoord GRIDCELL_AUTOWRAP_STRINGRENDERER::BreakWord ( wxDC & dc,
const wxString & word,
wxCoord maxWidth,
wxArrayString & lines,
wxString & line )
private

Definition at line 180 of file dialog_edit_symbols_libid.cpp.

References BreakWord().

Referenced by BreakLine(), and BreakWord().

◆ Clone()

wxGridCellRenderer * GRIDCELL_AUTOWRAP_STRINGRENDERER::Clone ( ) const
inlineoverride

Definition at line 63 of file dialog_edit_symbols_libid.cpp.

◆ GetHeight()

int GRIDCELL_AUTOWRAP_STRINGRENDERER::GetHeight ( wxDC & aDC,
wxGrid * aGrid,
int aRow,
int aCol )

Definition at line 232 of file dialog_edit_symbols_libid.cpp.

References GetTextLines(), and GRID_CELL_MARGIN.

◆ GetTextLines()

wxArrayString GRIDCELL_AUTOWRAP_STRINGRENDERER::GetTextLines ( wxGrid & grid,
wxDC & dc,
const wxGridCellAttr & attr,
const wxRect & rect,
int row,
int col )
private

Definition at line 92 of file dialog_edit_symbols_libid.cpp.

References BreakLine(), and grid.

Referenced by GetHeight().


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