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 57 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 124 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 177 of file dialog_edit_symbols_libid.cpp.

References BreakWord().

Referenced by BreakLine(), and BreakWord().

◆ Clone()

wxGridCellRenderer * GRIDCELL_AUTOWRAP_STRINGRENDERER::Clone ( ) const
inlineoverride

◆ GetHeight()

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

◆ GetTextLines()

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

Definition at line 89 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: