63const wxString& textAt(
const std::vector<wxString>& aCells,
int aCol )
65 static const wxString
empty;
67 return aCol < static_cast<int>( aCells.size() ) ? aCells[aCol] :
empty;
95 wxCHECK_RET( aImage && aImage->
Type() ==
Type(), wxT(
"Cannot swap data with invalid table." ) );
111 wxCHECK( aOther && aOther->
Type() ==
Type(), );
167 std::vector<GENERATED_TABLE_COLUMN> all;
172 for(
size_t pos = 0; pos < total; ++pos )
174 const bool hiddenHere = hidden <
m_hidden.size()
175 && (
m_hidden[hidden].m_Position ==
static_cast<int>( pos )
179 all.push_back(
m_hidden[hidden++].m_Column );
193 for(
size_t pos = 0; pos < aColumns.size(); ++pos )
212 std::vector<int>
rows;
217 rows.push_back( row );
252 return std::ranges::any_of(
dataRows(),
268 std::vector<int> held(
rows );
269 std::vector<int> fit(
rows );
271 for(
int row = 0; row <
rows; ++row )
281 std::map<int, int> counts;
285 maxNeed = std::max( maxNeed, fit[row] );
293 int common = maxNeed;
296 for(
const auto& [height, count] : counts )
298 if( count >= commonCount )
308 for(
int row = 0; row <
rows; ++row )
310 const int height =
IsDataRow( row ) && held[row] == 0 ? common : held[row];
368 default: height = std::max( height, 2 * std::max( above, below ) );
break;
380 for(
int dist = 1; dist <
rows; ++dist )
382 for(
int row : { aRow - dist, aRow + dist } )
406 copyCellStyle( aCell, donor );
510 std::vector<GENERATED_TABLE_COLUMN> visible;
515 visible.push_back( col );
519 const int newCols =
static_cast<int>( visible.size() );
523 if( oldCols > 0 && newCols > 0 && oldCols ==
static_cast<int>(
m_columns.size() ) && !
m_cells.empty() )
529 remap.
m_Cells.assign(
static_cast<size_t>( remap.
m_Rows ) * newCols,
nullptr );
536 for(
size_t ii = 0; ii <
m_cells.size(); ++ii )
552 for(
size_t pos = 0; pos < aColumns.size(); ++pos )
554 if( aColumns[pos].m_Visible )
567 for(
int col = 0; col < aRemap.
m_NewCols; ++col )
571 for(
int ii = 0; ii < aRemap.
m_OldCols && from < 0; ++ii )
573 if(
m_columns[ii].m_Id == aShown[col].m_Id )
580 for(
int row = 0; row < aRemap.
m_Rows; ++row )
582 const size_t source =
static_cast<size_t>( row ) * aRemap.
m_OldCols + from;
583 const size_t idx =
static_cast<size_t>( row ) * aRemap.
m_NewCols + col;
608 std::vector<SLOT> slots;
609 slots.reserve(
m_cells.size() );
614 { cell->GetStart(), cell->GetEnd(), cell->GetPosition(), cell->GetTextAngle(), cell->IsMirrored() } );
618 for(
int row = 0; row < aRemap.
m_Rows; ++row )
620 for(
int col = 0; col < aRemap.
m_NewCols; ++col )
622 const size_t idx =
static_cast<size_t>( row ) * aRemap.
m_NewCols + col;
623 const SLOT& slot = slots[
static_cast<size_t>( row ) * aRemap.
m_OldCols
624 + std::min( col, aRemap.
m_OldCols - 1 )];
646 cell->
SetEnd( slot.m_End );
656 for(
size_t idx = 0; idx <
m_cells.size(); ++idx )
661 const int row =
static_cast<int>( idx ) / cols;
662 const int col =
static_cast<int>( idx ) % cols;
665 for(
int dist = 1; dist < cols && !donor; ++dist )
667 for(
int peer : { col - dist, col + dist } )
669 if( peer >= 0 && peer < cols
679 copyCellStyle(
m_cells[idx], donor );
690 if( oldCols <= 0 || aCols <= 0 ||
m_cells.empty() )
693 const int oldRows =
static_cast<int>(
m_cells.size() ) / oldCols;
694 const int firstDataRow = 1;
696 std::map<std::string, int> oldRowByKey;
697 int oldFirstData = oldRows;
698 int oldLastData = -1;
702 const bool positionalData =
m_rowKeys.empty();
706 oldFirstData = firstDataRow;
707 oldLastData = firstDataRow - 1;
709 for(
int row = firstDataRow; row < oldRows; ++row )
717 for(
const auto& [oldRow, key] :
m_rowKeys )
719 if( oldRow < 0 || oldRow >= oldRows )
722 oldRowByKey[key] = oldRow;
723 oldFirstData = std::min( oldFirstData, oldRow );
724 oldLastData = std::max( oldLastData, oldRow );
727 if( oldRowByKey.empty() )
731 int newDataCount = 0;
733 for(
const std::string& key : aNewRowKeys )
739 std::vector<int> sourceRow( aRows, -1 );
743 for(
int ii = 0; ii < firstDataRow; ++ii )
745 const int oldIdx = oldFirstData - ( firstDataRow - ii );
748 sourceRow[ii] = oldIdx;
753 const int count = std::min( newDataCount, oldLastData - oldFirstData + 1 );
755 for(
int ii = 0; ii < count; ++ii )
756 sourceRow[firstDataRow + ii] = oldFirstData + ii;
760 for(
int ii = firstDataRow; ii < aRows; ++ii )
762 if( aNewRowKeys[ii].
empty() )
765 const auto it = oldRowByKey.find( aNewRowKeys[ii] );
767 if( it != oldRowByKey.end() )
768 sourceRow[ii] = it->second;
772 const int trailingNewStart = firstDataRow + newDataCount;
774 for(
int ii = trailingNewStart; ii < aRows; ++ii )
776 const int oldIdx = oldLastData + 1 + ( ii - trailingNewStart );
778 if( oldIdx < oldRows )
779 sourceRow[ii] = oldIdx;
782 std::vector<PCB_TABLECELL*> newCells(
static_cast<size_t>( aRows ) * aCols,
nullptr );
783 std::vector<bool> carried(
m_cells.size(),
false );
784 std::map<int, int> newRowHeights;
786 for(
int ii = 0; ii < aRows; ++ii )
788 if( sourceRow[ii] < 0 )
793 for(
int col = 0; col < std::min( oldCols, aCols ); ++col )
795 const size_t from =
static_cast<size_t>( sourceRow[ii] ) * oldCols + col;
797 newCells[
static_cast<size_t>( ii ) * aCols + col] =
m_cells[from];
798 carried[from] =
true;
801 const auto heightIt =
m_rowHeights.find( sourceRow[ii] );
804 newRowHeights[ii] = heightIt->second;
807 for(
size_t ii = 0; ii <
m_cells.size(); ++ii )
822 m_cells = std::move( newCells );
839 hidden.m_Position = total - 1 - hidden.m_Position;
852 for(
int col = 0; col < cols / 2; ++col )
856 const wxString
text =
left->GetText();
866 const std::vector<KICAD_T>& aScanTypes )
870 bool wantTable =
false;
871 bool wantCells =
false;
873 for(
KICAD_T scanType : aScanTypes )
900 aList.emplace_back(
_(
"Rows" ), wxString::Format( wxT(
"%d" ),
GetRowCount() ) );
907 const std::unique_ptr<GENERATED_TABLE_CONTENT> content =
generate( aBoard,
nullptr );
909 const int cols =
static_cast<int>(
m_columns.size() );
910 const int dataRows =
static_cast<int>( content->m_Rows.size() );
911 const int rows = 1 +
dataRows +
static_cast<int>( content->m_Trailer.size() );
917 [&](
int aRow,
int aCol,
const wxString& aText )
921 return !cell || cell->
GetText() != aText;
924 for(
int col = 0; col < cols; ++col )
926 if( differs( 0, col,
m_columns[col].m_Heading ) )
930 for(
int ii = 0; ii <
dataRows; ++ii )
933 const auto keyIt =
m_rowKeys.find( 1 + ii );
938 for(
int col = 0; col < cols; ++col )
940 if( differs( 1 + ii, col, textAt( row.
m_Cells, col ) ) )
945 for(
size_t ii = 0; ii < content->m_Trailer.size(); ++ii )
947 for(
int col = 0; col < cols; ++col )
949 if( differs( 1 +
dataRows +
static_cast<int>( ii ), col, textAt( content->m_Trailer[ii], col ) ) )
960 std::unique_ptr<GENERATED_TABLE_CONTENT> content =
generate( aBoard, aRefresh );
962 const int cols =
static_cast<int>(
m_columns.size() );
963 const int dataRows =
static_cast<int>( content->m_Rows.size() );
966 const int rows = 1 +
dataRows +
static_cast<int>( content->m_Trailer.size() );
972 std::vector<std::string> newRowKeys(
rows );
976 for(
int ii = 0; ii <
dataRows; ++ii )
977 newRowKeys[1 + ii] = content->m_Rows[ii].m_Key;
980 std::set<KIID> existing;
983 existing.insert( cell->m_Uuid );
994 for(
int ii = 0; ii <
rows; ++ii )
996 if( !newRowKeys[ii].
empty() )
1000 const auto setCell =
1001 [&](
int aRow,
int aCol,
const wxString& aText )
1008 if( !existing.count( cell->
m_Uuid ) )
1018 for(
int col = 0; col < cols; ++col )
1019 setCell( 0, col,
m_columns[col].m_Heading );
1021 for(
int ii = 0; ii <
dataRows; ++ii )
1023 for(
int col = 0; col < cols; ++col )
1024 setCell( 1 + ii, col, textAt( content->m_Rows[ii].m_Cells, col ) );
1027 for(
size_t ii = 0; ii < content->m_Trailer.size(); ++ii )
1029 for(
int col = 0; col < cols; ++col )
1030 setCell( 1 +
dataRows +
static_cast<int>( ii ), col, textAt( content->m_Trailer[ii], col ) );
1035 bool prewidened =
false;
1037 for(
int col = 0; col < cols; ++col )
1041 for(
int row = 0; row <
rows; ++row )
1071 bool widened =
false;
1073 for(
int col = 0; col < cols; ++col )
1099 if( unitsEnum.
Choices().GetCount() == 0 )
1114 const wxString generatorProps =
_(
"Table Generator" );
1143 const wxString tableProps =
_(
"Table Properties" );
1163 const wxString fontProps =
_HKI(
"Font" );
constexpr int ARC_LOW_DEF
BOARD_ITEM(BOARD_ITEM *aParent, KICAD_T idtype, PCB_LAYER_ID aLayer=F_Cu)
void SwapItemData(BOARD_ITEM *aImage)
Swap data between aItem and aImage.
void SetLocked(bool aLocked) override
virtual bool IsKnockout() const
bool IsLocked() const override
virtual PCB_LAYER_ID GetLayer() const
Return the primary layer this item is on.
virtual void SetIsKnockout(bool aKnockout)
const KIFONT::METRICS & GetFontMetrics() const
wxString GetLayerName() const
Return the name of the PCB layer on which the item resides.
Information pertinent to a Pcbnew printed circuit board.
constexpr coord_type GetTop() const
constexpr coord_type GetBottom() const
The base class for create windows for drawing purpose.
KICAD_T Type() const
Returns the type of object.
void SetCustomProperties(const std::map< wxString, wxString > &aProps)
virtual wxString GetFriendlyName() const
virtual EDA_ITEM * Clone() const
Create a duplicate of this item with linked list members set to NULL.
virtual void SetParent(EDA_ITEM *aParent)
const std::map< wxString, wxString > & GetCustomProperties() const
Custom user-defined string key/value properties attached to this item.
void SetFontProp(const wxString &aFontName)
virtual const wxString & GetText() const
Return the string associated with the text object.
void SetAttributes(const EDA_TEXT &aSrc, bool aSetPosition=true)
Set the text attributes from another instance.
void SetMirrored(bool isMirrored)
wxString GetFontProp() const
virtual EDA_ANGLE GetDrawRotation() const
virtual KIFONT::FONT * GetDrawFont(const RENDER_SETTINGS *aSettings) const
int GetEffectiveTextPenWidth(int aDefaultPenWidth=0) const
The EffectiveTextPenWidth uses the text thickness if > 1 or aDefaultPenWidth.
GR_TEXT_V_ALIGN_T GetVertJustify() const
int GetInterline(const RENDER_SETTINGS *aSettings) const
Return the distance between two lines of text.
virtual void SetText(const wxString &aText)
void SetHorizJustify(GR_TEXT_H_ALIGN_T aType)
ENUM_MAP & Map(T aValue, const wxString &aName)
static ENUM_MAP< T > & Instance()
One pass of rebuilding tables.
Class that other classes need to inherit from, in order to be inspectable.
VECTOR2I StringBoundaryLimits(const wxString &aText, const VECTOR2I &aSize, int aThickness, bool aBold, bool aItalic, const METRICS &aFontMetrics) const
Compute the boundary limits of aText (the bounding box of all shapes).
A table whose cell text is derived from the board and rebuilt whenever it goes stale.
void styleCreatedCells(const std::vector< CELL_ORIGIN > &aOrigin)
Style cells placeCells created from another cell in their row.
void SetFontNameProp(const wxString &aFontName)
void forEachCell(const std::function< void(PCB_TABLECELL *)> &aFunc)
Visit every shown cell.
int GetRowHeightProp() const
The first data row's height, with RowHeightsDiffer saying whether it speaks for every data row.
std::vector< HIDDEN_COLUMN > m_hidden
By position.
void GetMsgPanelInfo(EDA_DRAW_FRAME *aFrame, std::vector< MSG_PANEL_ITEM > &aList) override
Populate aList of MSG_PANEL_ITEM objects with it's internal state for display purposes.
void migrateRows(int aRows, int aCols, const std::vector< std::string > &aNewRowKeys)
Move each row's cells to the row that reports the same thing.
void SetFontSizeProp(int aSize)
void placeCells(COLUMN_REMAP &aRemap)
Put every cell in the geometry its slot had, so the table stays where it was, creating those nothing ...
std::vector< GENERATED_TABLE_COLUMN > m_columns
const PCB_TABLECELL * nearestDataCell(int aRow, int aCol, const std::set< KIID > &aStyled) const
The nearest data cell in aCol among aStyled, or null when the column has none.
virtual void ApplySettings(const PCB_GENERATED_TABLE &aOther)
Take aOther's settings and placement but keep this table's cells, so formatting applied to them survi...
void setAutosizedRowHeights(const std::vector< int > &aNeeded) override
Row heights are the user's, carried by key through migrateRows.
bool FontSizesDiffer() const
std::vector< GENERATED_TABLE_COLUMN > AllColumns() const
Every column the table has been given, in order, with hidden ones marked by m_Visible.
virtual void onRebuilt(const BOARD &aBoard, const GENERATED_TABLE_CONTENT &aContent)
Called once the cells are laid out, with the content they were built from.
int metricRowHeight(int aRow) const
The height aRow needs by its cells' line count, line spacing, pen width and margins.
GENERATED_TABLE_UNITS m_units
const PCB_TABLECELL * firstCell() const
The first cell forEachCell visits, which the font getters speak for, or null.
void RestoreColumns(const std::vector< GENERATED_TABLE_COLUMN > &aColumns)
Replace the columns without touching any cell, for a loader whose cells already match the visible one...
void CopyFrom(const BOARD_ITEM *aOther) override
Copy everything a table of this kind holds, including what a subclass adds.
void RebuildCells(const BOARD &aBoard, GENERATED_TABLE_REFRESH *aRefresh=nullptr)
Regenerate the cells from the board.
void styleFromColumn(PCB_TABLECELL *aCell, int aRow, int aCol, const std::set< KIID > &aStyled)
Give a new cell the text formatting of the nearest data cell in its column among aStyled,...
virtual std::unique_ptr< GENERATED_TABLE_CONTENT > generate(const BOARD &aBoard, GENERATED_TABLE_REFRESH *aRefresh) const =0
The rows this table reports.
void moveShownCells(const std::vector< GENERATED_TABLE_COLUMN > &aShown, COLUMN_REMAP &aRemap) const
Carry each shown column's cells and width to its new position.
virtual bool IsDataRow(int aRow) const
True for a row that reports on the board, false for the heading and trailer rows.
virtual bool IsStale(const BOARD &aBoard) const
True when the cells no longer say what the board says.
std::vector< int > dataRows() const
The rows below the heading that IsDataRow accepts, in order.
void SetPrecision(int aPrecision)
Clamped.
virtual void onColumnsReversed()
Called once the columns have been reversed, for any column index a subclass keeps.
virtual void styleNewCell(PCB_TABLECELL *aCell, bool aIsHeading)
Called for each cell a rebuild creates, before its text is set.
double Similarity(const BOARD_ITEM &aOther) const override
Return a measure of how likely the other object is to represent the same object.
bool generatedEquals(const PCB_GENERATED_TABLE &aOther) const
Equality of the members this class owns and of the underlying PCB_TABLE.
void swapData(BOARD_ITEM *aImage) override
wxString GetFontNameProp() const
The first cell's font, with FontNamesDiffer saying whether it speaks for every shown cell.
void SetRowHeightProp(int aHeight)
void SetColumns(std::vector< GENERATED_TABLE_COLUMN > aColumns)
Replace the columns of a built table, moving each column's cells to where its id now sits so their fo...
INSPECT_RESULT Visit(INSPECTOR aInspector, void *aTestData, const std::vector< KICAD_T > &aScanTypes) override
May be re-implemented for each derived class in order to handle all the types given by its member dat...
PCB_GENERATED_TABLE(BOARD_ITEM *aParent, KICAD_T aType, int aLineWidth)
void SetRowHeightToFit(int aRow, int aHeight)
Set one row's height, no shorter than its text.
GENERATED_TABLE_UNITS GetUnits() const
@ MOVED
A shown column's cell, carried to its new column.
@ CREATED
New, including a cell in a column shown again.
@ EMPTY
Nothing filled the slot yet.
bool RowHeightsDiffer() const
bool anyCell(const std::function< bool(const PCB_TABLECELL *)> &aTest) const
True when aTest holds for any cell forEachCell would visit, stopping at the first.
void Flip(const VECTOR2I &aCentre, FLIP_DIRECTION aFlipDirection) override
PCB_TABLE::Flip reverses the columns in either direction, as it does for a plain table's text,...
virtual void onRowsMigrated()
Called once a rebuild has moved the rows to where the new content puts them, before anything asks whi...
int GetFontSizeProp() const
The first cell's text height, with FontSizesDiffer saying whether every shown cell has that size,...
void SetUnits(GENERATED_TABLE_UNITS aUnits)
int minRowHeight(int aRow) const
The smallest height aRow may take with its text still inside it.
bool FontNamesDiffer() const
std::map< int, std::string > m_rowKeys
void SetEnd(const VECTOR2I &aEnd) override
void SetLayer(PCB_LAYER_ID aLayer) override
Set the layer this item is on.
void SetStart(const VECTOR2I &aStart) override
VECTOR2I GetPosition() const override
wxString GetShownText(RESOLUTION_CONTEXT aContext, int aDepth=0) const override
Return the string actually shown after processing of the base text.
void SetFontSize(int aSize)
bool HasSquareFontSize() const
wxString GetUnwrappedShownText(RESOLUTION_CONTEXT aContext, int aDepth=0) const
GetShownText() before it is line-broken to the cell's width, i.e.
int GetFontSize() const
The text height, which speaks for the width too only when HasSquareFontSize.
static wxPGChoices FontChoices(INSPECTABLE *aItem)
The font names EDA_TEXT's Font property offers, for the Font Name a generated table and its cells off...
std::vector< PCB_TABLECELL * > m_cells
void SetColWidth(int aCol, int aWidth)
void Move(const VECTOR2I &aMoveVector) override
Move this object.
bool StrokeHeaderSeparator() const
bool StrokeColumns() const
void SetStrokeHeaderSeparator(bool aDoStroke)
void ResizeCells(int aRows, int aCols)
Grow or shrink to aRows x aCols, keeping the cells that already exist.
void Flip(const VECTOR2I &aCentre, FLIP_DIRECTION aFlipDirection) override
Flip this object, i.e.
bool StrokeExternal() const
void SetLayer(PCB_LAYER_ID aLayer) override
Set the layer this item is on.
void SetStrokeExternal(bool aDoStroke)
PCB_TABLECELL * GetCell(int aRow, int aCol) const
std::vector< PCB_TABLECELL * > GetCells() const
bool operator==(const PCB_TABLE &aOther) const
void SetStrokeColumns(bool aDoStroke)
const STROKE_PARAMS & GetSeparatorsStroke() const
std::map< int, int > m_colWidths
virtual void swapData(BOARD_ITEM *aImage) override
void Normalize() override
Perform any normalization required after a user rotate and/or flip.
const STROKE_PARAMS & GetBorderStroke() const
void SetStrokeRows(bool aDoStroke)
double Similarity(const BOARD_ITEM &aOther) const override
Return a measure of how likely the other object is to represent the same object.
void SetColCount(int aCount)
int GetColWidth(int aCol) const
VECTOR2I GetPosition() const override
PCB_TABLE(BOARD_ITEM *aParent, int aLineWidth)
void SetSeparatorsStroke(const STROKE_PARAMS &aParams)
void SetRowHeight(int aRow, int aHeight)
void SetBorderStroke(const STROKE_PARAMS &aParams)
int GetRowHeight(int aRow) const
std::map< int, int > m_rowHeights
int GetMarginBottom() const
void TransformTextToPolySet(SHAPE_POLY_SET &aBuffer, int aClearance, int aMaxError, ERROR_LOC aErrorLoc) const
Convert the text to a polygonSet describing the actual character strokes (one per segment).
VECTOR2I GetTextSize() const override
VECTOR2I GetDrawPos() const override
void SetMarginTop(int aTop)
int GetMarginLeft() const
void SetMarginLeft(int aLeft)
void SetMarginBottom(int aBottom)
int GetMarginRight() const
void SetTextAngle(const EDA_ANGLE &aAngle) override
void SetMarginRight(int aRight)
void Move(const VECTOR2I &aMoveVector) override
Move this object.
PROPERTY_BASE & SetChoicesFunc(std::function< wxPGChoices(INSPECTABLE *)> aFunc)
PROPERTY_BASE & SetIndeterminateFunc(std::function< bool(INSPECTABLE *)> aFunc)
Set a callback function to determine whether an object's value for this property is mixed.
PROPERTY_BASE & SetIsCopyable(bool aIsCopyable=true)
PROPERTY_BASE & SetIsHiddenFromRulesEditor(bool aHide=true)
void InheritsAfter(TYPE_ID aDerived, TYPE_ID aBase)
Declare an inheritance relationship between types.
void Mask(TYPE_ID aDerived, TYPE_ID aBase, const wxString &aName)
Sets a base class property as masked in a derived class.
static PROPERTY_MANAGER & Instance()
PROPERTY_BASE & AddProperty(PROPERTY_BASE *aProperty, const wxString &aGroup=wxEmptyString)
Register a property.
void AddTypeCast(TYPE_CAST_BASE *aCast)
Register a type converter.
Represent a set of closed polygons.
void Rotate(const EDA_ANGLE &aAngle, const VECTOR2I &aCenter={ 0, 0 }) override
Rotate all vertices by a given angle.
bool IsEmpty() const
Return true if the set is empty (no polygons at all)
const BOX2I BBox(int aClearance=0) const override
Compute a bounding box of the shape, with a margin of aClearance a collision.
static bool empty(const wxTextEntryBase *aCtrl)
const INSPECTOR_FUNC & INSPECTOR
std::function passed to nested users by ref, avoids copying std::function.
Some functions to handle hotkeys in KiCad.
Message panel definition file.
static struct PCB_GENERATED_TABLE_DESC _PCB_GENERATED_TABLE_DESC
#define TYPE_HASH(x)
Macro to generate unique identifier for a type.
#define ENUM_TO_WXANY(type)
@ PT_SIZE
Size expressed in distance units (mm/inch)
#define REGISTER_TYPE(x)
Helper macro to map type hashes to names.
A column as a generated table actually carries it: what a row's cell in that column holds and how it ...
One data row of a generated table, and the identity its formatting follows across rebuilds.
std::vector< wxString > m_Cells
SetColumns' work in progress, laying the old cells out for the new columns.
std::vector< bool > m_Carried
Old cells that went somewhere, by old index.
std::vector< CELL_ORIGIN > m_Origin
Where each of m_Cells came from.
std::map< int, int > m_ColWidths
By new column.
std::vector< PCB_TABLECELL * > m_Cells
The new layout, row by row.
A hidden column and its place among all columns.
GENERATED_TABLE_COLUMN m_Column
int m_Position
In AllColumns()
PCB_GENERATED_TABLE_DESC()
std::vector< DATABASE_CONNECTION::ROW > rows
static const long long MM
GR_TEXT_H_ALIGN_T
This is API surface mapped to common.types.HorizontalAlignment.
KICAD_T
The set of class identification values stored in EDA_ITEM::m_structType.
@ PCB_TABLECELL_T
class PCB_TABLECELL, PCB_TEXTBOX for use in tables
@ PCB_TABLE_T
class PCB_TABLE, table of PCB_TABLECELLs
constexpr bool IsGeneratedTableType(const KICAD_T aType)
A PCB_TABLE subclass whose cells are generated from the board rather than typed by the user.
VECTOR2< int32_t > VECTOR2I