KiCad PCB EDA Suite
Loading...
Searching...
No Matches
pcb_table.h
Go to the documentation of this file.
1/*
2 * This program source code file is part of KiCad, a free EDA CAD application.
3 *
4 * Copyright The KiCad Developers, see AUTHORS.txt for contributors.
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version 2
9 * of the License, or (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <https://www.gnu.org/licenses/>.
18 */
19
20#ifndef PCB_TABLE_H
21#define PCB_TABLE_H
22
23
24#include <pcb_tablecell.h>
25#include <board_item.h>
27#include <algorithm>
28
29namespace KIGFX
30{
31class RENDER_SETTINGS;
32};
33
34
36{
37public:
38 PCB_TABLE( BOARD_ITEM* aParent, int aLineWidth );
39
40 PCB_TABLE( BOARD_ITEM* aParent );
41
42 PCB_TABLE( const PCB_TABLE& aTable );
43
44 ~PCB_TABLE();
45
46 // If implemented, would need to copy m_cells list.
47 PCB_TABLE& operator=( const PCB_TABLE& ) = delete;
48
49 static inline bool ClassOf( const EDA_ITEM* aItem )
50 {
51 return aItem && PCB_TABLE_T == aItem->Type();
52 }
53
54 virtual wxString GetClass() const override
55 {
56 return wxT( "PCB_TABLE" );
57 }
58
62 bool IsGenerated() const { return IsGeneratedTableType( Type() ); }
63
64 void SetStrokeExternal( bool aDoStroke ) { m_strokeExternal = aDoStroke; }
65 bool StrokeExternal() const { return m_strokeExternal; }
66
67 void SetStrokeHeaderSeparator( bool aDoStroke ) { m_StrokeHeaderSeparator = aDoStroke; }
69
70 void SetBorderStroke( const STROKE_PARAMS& aParams ) { m_borderStroke = aParams; }
71 const STROKE_PARAMS& GetBorderStroke() const { return m_borderStroke; }
72
73 void SetBorderWidth( int aWidth ) { m_borderStroke.SetWidth( aWidth ); }
74 int GetBorderWidth() const { return m_borderStroke.GetWidth(); }
75
76 void SetBorderStyle( const LINE_STYLE aStyle ) { m_borderStroke.SetLineStyle( aStyle ); }
78 {
79 if( m_borderStroke.GetLineStyle() == LINE_STYLE::DEFAULT )
80 return LINE_STYLE::SOLID;
81 else
82 return m_borderStroke.GetLineStyle();
83 }
84
85 void SetBorderColor( const COLOR4D& aColor ) { m_borderStroke.SetColor( aColor ); }
86 COLOR4D GetBorderColor() const { return m_borderStroke.GetColor(); }
87
88 void SetSeparatorsStroke( const STROKE_PARAMS& aParams ) { m_separatorsStroke = aParams; }
90
91 void SetSeparatorsWidth( int aWidth ) { m_separatorsStroke.SetWidth( aWidth ); }
92 int GetSeparatorsWidth() const { return m_separatorsStroke.GetWidth(); }
93
94 void SetSeparatorsStyle( const LINE_STYLE aStyle ) { m_separatorsStroke.SetLineStyle( aStyle ); }
96 {
97 if( m_separatorsStroke.GetLineStyle() == LINE_STYLE::DEFAULT )
98 return LINE_STYLE::SOLID;
99 else
100 return m_separatorsStroke.GetLineStyle();
101 }
102
103 void SetSeparatorsColor( const COLOR4D& aColor ) { m_separatorsStroke.SetColor( aColor ); }
104 COLOR4D GetSeparatorsColor() const { return m_separatorsStroke.GetColor(); }
105
106 void SetStrokeColumns( bool aDoStroke ) { m_strokeColumns = aDoStroke; }
107 bool StrokeColumns() const { return m_strokeColumns; }
108
109 void SetStrokeRows( bool aDoStroke ) { m_strokeRows = aDoStroke; }
110 bool StrokeRows() const { return m_strokeRows; }
111
112 void RunOnChildren( const std::function<void( BOARD_ITEM* )>& aFunction, RECURSE_MODE aMode ) const override;
113
114 void SetLayer( PCB_LAYER_ID aLayer ) override;
115 void SetPosition( const VECTOR2I& aPos ) override;
116 VECTOR2I GetPosition() const override;
117 VECTOR2I GetEnd() const;
118
119 // For property manager:
120 void SetPositionX( int x ) { SetPosition( VECTOR2I( x, GetPosition().y ) ); }
121 void SetPositionY( int y ) { SetPosition( VECTOR2I( GetPosition().x, y ) ); }
122 int GetPositionX() const { return GetPosition().x; }
123 int GetPositionY() const { return GetPosition().y; }
124
125 void SetColCount( int aCount ) { m_colCount = aCount; }
126 int GetColCount() const { return m_colCount; }
127
128 int GetRowCount() const
129 {
130 // Guarded because a hand-edited or third-party file can present a table with no
131 // columns, and dividing by it crashes the writer rather than failing the load
132 return m_colCount > 0 ? (int) m_cells.size() / m_colCount : 0;
133 }
134
135 void SetColWidth( int aCol, int aWidth ) { m_colWidths[aCol] = aWidth; }
136
137 int GetColWidth( int aCol ) const
138 {
139 if( m_colWidths.count( aCol ) )
140 return m_colWidths.at( aCol );
141
142 return 0;
143 }
144
145 void SetRowHeight( int aRow, int aHeight ) { m_rowHeights[aRow] = aHeight; }
146
147 int GetRowHeight( int aRow ) const
148 {
149 if( m_rowHeights.count( aRow ) )
150 return m_rowHeights.at( aRow );
151
152 return 0;
153 }
154
155 PCB_TABLECELL* GetCell( int aRow, int aCol ) const
156 {
157 int idx = aRow * m_colCount + aCol;
158
159 if( idx < (int) m_cells.size() )
160 return m_cells[ idx ];
161 else
162 return nullptr;
163 }
164
165 std::vector<PCB_TABLECELL*> GetCells() const
166 {
167 return m_cells;
168 }
169
170 void AddCell( PCB_TABLECELL* aCell )
171 {
172 m_cells.push_back( aCell );
173 aCell->SetLayer( GetLayer() );
174 aCell->SetParent( this );
175 }
176
177 void InsertCell( int aIdx, PCB_TABLECELL* aCell )
178 {
179 m_cells.insert( m_cells.begin() + aIdx, aCell );
180 aCell->SetLayer( GetLayer() );
181 aCell->SetParent( this );
182 }
183
190 void ResizeCells( int aRows, int aCols );
191
193 {
194 for( PCB_TABLECELL* cell : m_cells )
195 delete cell;
196
197 m_cells.clear();
198 }
199
201 {
202 std::erase_if( m_cells,
203 []( PCB_TABLECELL* cell )
204 {
205 if( cell->GetFlags() & STRUCT_DELETED )
206 {
207 delete cell;
208 return true;
209 }
210 return false;
211 } );
212 }
213
215 bool aSkipConnectivity = false ) override
216 {
217 wxFAIL_MSG( wxT( "Use AddCell()/InsertCell() instead." ) );
218 }
219
220 void Remove( BOARD_ITEM* aItem, REMOVE_MODE aMode = REMOVE_MODE::NORMAL ) override
221 {
222 wxFAIL_MSG( wxT( "Use DeleteMarkedCells() instead." ) );
223 }
224
225 void Normalize() override;
226
227 void Autosize();
228
229 void Move( const VECTOR2I& aMoveVector ) override;
230
231 void Rotate( const VECTOR2I& aRotCentre, const EDA_ANGLE& aAngle ) override;
232
233 void Flip( const VECTOR2I& aCentre, FLIP_DIRECTION aFlipDirection ) override;
234
235 void Mirror( const VECTOR2I& aCentre, FLIP_DIRECTION aFlipDirection ) override;
236
237 void OnFootprintTransformed() override;
238
239 void OnFootprintRescaled( double aRatioX, double aRatioY, double aLinearFactor, const VECTOR2I& aAnchor,
240 const EDA_ANGLE& aParentRotate ) override;
241
242 const BOX2I GetBoundingBox() const override;
243
244 double ViewGetLOD( int aLayer, const KIGFX::VIEW* aView ) const override;
245
246 void DrawBorders( const std::function<void( const VECTOR2I& aPt1, const VECTOR2I& aPt2,
247 const STROKE_PARAMS& aStroke )>& aCallback ) const;
248
249 // @copydoc BOARD_ITEM::GetEffectiveShape
250 std::shared_ptr<SHAPE> GetEffectiveShape( PCB_LAYER_ID aLayer = UNDEFINED_LAYER,
252 DRC_CONSTRAINT_T aUsage = NULL_CONSTRAINT ) const override;
253
254 void TransformShapeToPolygon( SHAPE_POLY_SET& aBuffer, PCB_LAYER_ID aLayer, int aClearance,
255 int aMaxError, ERROR_LOC aErrorLoc,
256 bool aIgnoreLineWidth = false ) const override;
257
270 int aClearance, int aError, ERROR_LOC aErrorLoc,
271 KIGFX::RENDER_SETTINGS* aRenderSettings = nullptr ) const override;
272
276 void TransformGraphicItemsToPolySet( SHAPE_POLY_SET& aBuffer, int aMaxError, ERROR_LOC aErrorLoc,
277 KIGFX::RENDER_SETTINGS* aRenderSettings ) const;
278
279 INSPECT_RESULT Visit( INSPECTOR inspector, void* testData,
280 const std::vector<KICAD_T>& aScanTypes ) override;
281
282 bool Matches( const EDA_SEARCH_DATA& aSearchData, void* aAuxData ) const override
283 {
284 // Symbols are searchable via the child field and pin item text.
285 return false;
286 }
287
288 wxString GetItemDescription( UNITS_PROVIDER* aUnitsProvider, bool aFull ) const override;
289
290 BITMAPS GetMenuImage() const override;
291
292 bool HitTest( const VECTOR2I& aPosition, int aAccuracy = 0 ) const override;
293
294 bool HitTest( const BOX2I& aRect, bool aContained, int aAccuracy = 0 ) const override;
295
296 bool HitTest( const SHAPE_LINE_CHAIN& aPoly, bool aContained ) const override;
297
298 EDA_ITEM* Clone() const override
299 {
300 return new PCB_TABLE( *this );
301 }
302
303 BOARD_ITEM* Duplicate( bool addToParentGroup, BOARD_COMMIT* aCommit = nullptr ) const override;
304
305 void CopyFrom( const BOARD_ITEM* aOther ) override;
306
307 void Serialize( google::protobuf::Any &aContainer ) const override;
308 bool Deserialize( const google::protobuf::Any &aContainer ) override;
309
310 void GetMsgPanelInfo( EDA_DRAW_FRAME* aFrame, std::vector<MSG_PANEL_ITEM>& aList ) override;
311
312 double Similarity( const BOARD_ITEM& aOther ) const override;
313
314 bool operator==( const PCB_TABLE& aOther ) const;
315 bool operator==( const BOARD_ITEM& aBoardItem ) const override;
316
317 static int Compare( const PCB_TABLE* aTable, const PCB_TABLE* aOther );
318
319#if defined(DEBUG)
320 void Show( int nestLevel, std::ostream& os ) const override { ShowDummy( os ); }
321#endif
322
323protected:
327 PCB_TABLE( BOARD_ITEM* aParent, KICAD_T aType, int aLineWidth );
328
329 virtual void swapData( BOARD_ITEM* aImage ) override;
330
337
339 std::map<int, int> m_colWidths;
340 std::map<int, int> m_rowHeights;
341 std::vector<PCB_TABLECELL*> m_cells;
342};
343
344
348inline bool IsGeneratedTableCell( const EDA_ITEM* aItem )
349{
350 if( !aItem || aItem->Type() != PCB_TABLECELL_T )
351 return false;
352
353 const PCB_TABLE* table = dynamic_cast<const PCB_TABLE*>( aItem->GetParent() );
354
355 return table && table->IsGenerated();
356}
357
358
359#endif /* PCB_TABLE_H */
ERROR_LOC
When approximating an arc or circle, should the error be placed on the outside or inside of the curve...
BITMAPS
A list of all bitmap identifiers.
BOX2< VECTOR2I > BOX2I
Definition box2.h:914
BOARD_ITEM_CONTAINER(BOARD_ITEM *aParent, KICAD_T aType)
A base class for any item which can be embedded within the BOARD container class, and therefore insta...
Definition board_item.h:84
BOARD_ITEM(BOARD_ITEM *aParent, KICAD_T idtype, PCB_LAYER_ID aLayer=F_Cu)
Definition board_item.h:86
virtual PCB_LAYER_ID GetLayer() const
Return the primary layer this item is on.
The base class for create windows for drawing purpose.
A base class for most all the KiCad significant classes used in schematics and boards.
Definition eda_item.h:98
KICAD_T Type() const
Returns the type of object.
Definition eda_item.h:110
EDA_ITEM * GetParent() const
Definition eda_item.h:112
virtual void SetParent(EDA_ITEM *aParent)
Definition eda_item.cpp:153
EDA_ITEM_FLAGS GetFlags() const
Definition eda_item.h:167
EDA_ITEM(EDA_ITEM *parent, KICAD_T idType, bool isSCH_ITEM=false, bool isBOARD_ITEM=false)
Definition eda_item.cpp:84
A color representation with 4 components: red, green, blue, alpha.
Definition color4d.h:101
Container for all the knowledge about how graphical objects are drawn on any output surface/device.
Hold a (potentially large) number of VIEW_ITEMs and renders them on a graphics device provided by the...
Definition view.h:63
void SetLayer(PCB_LAYER_ID aLayer) override
Set the layer this item is on.
BOARD_ITEM * Duplicate(bool addToParentGroup, BOARD_COMMIT *aCommit=nullptr) const override
Create a copy of this BOARD_ITEM.
VECTOR2I GetEnd() const
void OnFootprintTransformed() override
Hook for items inside a footprint to refresh after the FP transform changes (translate,...
STROKE_PARAMS m_separatorsStroke
Definition pcb_table.h:336
bool StrokeRows() const
Definition pcb_table.h:110
void ClearCells()
Definition pcb_table.h:192
int GetRowCount() const
Definition pcb_table.h:128
static bool ClassOf(const EDA_ITEM *aItem)
Definition pcb_table.h:49
void Remove(BOARD_ITEM *aItem, REMOVE_MODE aMode=REMOVE_MODE::NORMAL) override
Removes an item from the container.
Definition pcb_table.h:220
const BOX2I GetBoundingBox() const override
Return the orthogonal bounding box of this object for display purposes.
void TransformGraphicItemsToPolySet(SHAPE_POLY_SET &aBuffer, int aMaxError, ERROR_LOC aErrorLoc, KIGFX::RENDER_SETTINGS *aRenderSettings) const
Convert graphic items (segments and texts) to a set of polygonal shapes.
std::vector< PCB_TABLECELL * > m_cells
Definition pcb_table.h:341
void SetColWidth(int aCol, int aWidth)
Definition pcb_table.h:135
void Serialize(google::protobuf::Any &aContainer) const override
Serializes this object to the given Any message.
double ViewGetLOD(int aLayer, const KIGFX::VIEW *aView) const override
Return the level of detail (LOD) of the item.
int m_colCount
Definition pcb_table.h:338
bool HitTest(const VECTOR2I &aPosition, int aAccuracy=0) const override
Test if aPosition is inside or on the boundary of this item.
bool m_strokeRows
Definition pcb_table.h:334
void Move(const VECTOR2I &aMoveVector) override
Move this object.
int GetPositionY() const
Definition pcb_table.h:123
bool StrokeHeaderSeparator() const
Definition pcb_table.h:68
bool StrokeColumns() const
Definition pcb_table.h:107
void SetBorderStyle(const LINE_STYLE aStyle)
Definition pcb_table.h:76
std::shared_ptr< SHAPE > GetEffectiveShape(PCB_LAYER_ID aLayer=UNDEFINED_LAYER, FLASHING aFlash=FLASHING::DEFAULT, DRC_CONSTRAINT_T aUsage=NULL_CONSTRAINT) const override
Some pad shapes can be complex (rounded/chamfered rectangle), even without considering custom shapes.
void SetStrokeHeaderSeparator(bool aDoStroke)
Definition pcb_table.h:67
void SetSeparatorsColor(const COLOR4D &aColor)
Definition pcb_table.h:103
bool m_strokeExternal
Definition pcb_table.h:331
STROKE_PARAMS m_borderStroke
Definition pcb_table.h:333
bool m_strokeColumns
Definition pcb_table.h:335
wxString GetItemDescription(UNITS_PROVIDER *aUnitsProvider, bool aFull) const override
Return a user-visible description string of this item.
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
Definition pcb_table.h:65
void SetLayer(PCB_LAYER_ID aLayer) override
Set the layer this item is on.
int GetSeparatorsWidth() const
Definition pcb_table.h:92
void SetPositionX(int x)
Definition pcb_table.h:120
void OnFootprintRescaled(double aRatioX, double aRatioY, double aLinearFactor, const VECTOR2I &aAnchor, const EDA_ANGLE &aParentRotate) override
Apply a parent footprint scale to this item.
void SetStrokeExternal(bool aDoStroke)
Definition pcb_table.h:64
PCB_TABLECELL * GetCell(int aRow, int aCol) const
Definition pcb_table.h:155
std::vector< PCB_TABLECELL * > GetCells() const
Definition pcb_table.h:165
void Autosize()
int GetBorderWidth() const
Definition pcb_table.h:74
COLOR4D GetBorderColor() const
Definition pcb_table.h:86
void TransformShapeToPolySet(SHAPE_POLY_SET &aBuffer, PCB_LAYER_ID aLayer, int aClearance, int aError, ERROR_LOC aErrorLoc, KIGFX::RENDER_SETTINGS *aRenderSettings=nullptr) const override
Convert the TABLE shape to a polyset.
bool operator==(const PCB_TABLE &aOther) const
INSPECT_RESULT Visit(INSPECTOR inspector, void *testData, 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...
int GetColCount() const
Definition pcb_table.h:126
void SetStrokeColumns(bool aDoStroke)
Definition pcb_table.h:106
const STROKE_PARAMS & GetSeparatorsStroke() const
Definition pcb_table.h:89
std::map< int, int > m_colWidths
Definition pcb_table.h:339
virtual void swapData(BOARD_ITEM *aImage) override
int GetPositionX() const
Definition pcb_table.h:122
void Normalize() override
Perform any normalization required after a user rotate and/or flip.
void AddCell(PCB_TABLECELL *aCell)
Definition pcb_table.h:170
const STROKE_PARAMS & GetBorderStroke() const
Definition pcb_table.h:71
void SetPositionY(int y)
Definition pcb_table.h:121
BITMAPS GetMenuImage() const override
Return a pointer to an image to be used in menus.
void SetStrokeRows(bool aDoStroke)
Definition pcb_table.h:109
bool m_StrokeHeaderSeparator
Definition pcb_table.h:332
void InsertCell(int aIdx, PCB_TABLECELL *aCell)
Definition pcb_table.h:177
void RunOnChildren(const std::function< void(BOARD_ITEM *)> &aFunction, RECURSE_MODE aMode) const override
Invoke a function on all children.
void Mirror(const VECTOR2I &aCentre, FLIP_DIRECTION aFlipDirection) override
Mirror this object relative to a given horizontal axis the layer is not changed.
void Add(BOARD_ITEM *aItem, ADD_MODE aMode=ADD_MODE::INSERT, bool aSkipConnectivity=false) override
Adds an item to the container.
Definition pcb_table.h:214
bool IsGenerated() const
True when the cells' text comes from the board, so only their formatting is the user's.
Definition pcb_table.h:62
EDA_ITEM * Clone() const override
Create a duplicate of this item with linked list members set to NULL.
Definition pcb_table.h:298
PCB_TABLE & operator=(const PCB_TABLE &)=delete
double Similarity(const BOARD_ITEM &aOther) const override
Return a measure of how likely the other object is to represent the same object.
void TransformShapeToPolygon(SHAPE_POLY_SET &aBuffer, PCB_LAYER_ID aLayer, int aClearance, int aMaxError, ERROR_LOC aErrorLoc, bool aIgnoreLineWidth=false) const override
Convert the item shape to a closed polygon.
void DrawBorders(const std::function< void(const VECTOR2I &aPt1, const VECTOR2I &aPt2, const STROKE_PARAMS &aStroke)> &aCallback) const
LINE_STYLE GetBorderStyle() const
Definition pcb_table.h:77
void DeleteMarkedCells()
Definition pcb_table.h:200
static int Compare(const PCB_TABLE *aTable, const PCB_TABLE *aOther)
void SetColCount(int aCount)
Definition pcb_table.h:125
int GetColWidth(int aCol) const
Definition pcb_table.h:137
VECTOR2I GetPosition() const override
void SetSeparatorsWidth(int aWidth)
Definition pcb_table.h:91
COLOR4D GetSeparatorsColor() const
Definition pcb_table.h:104
void CopyFrom(const BOARD_ITEM *aOther) override
Definition pcb_table.cpp:94
bool Matches(const EDA_SEARCH_DATA &aSearchData, void *aAuxData) const override
Compare the item against the search criteria in aSearchData.
Definition pcb_table.h:282
virtual wxString GetClass() const override
Return the class name.
Definition pcb_table.h:54
bool Deserialize(const google::protobuf::Any &aContainer) override
Deserializes the given protobuf message into this object.
void Rotate(const VECTOR2I &aRotCentre, const EDA_ANGLE &aAngle) override
Rotate this object.
LINE_STYLE GetSeparatorsStyle() const
Definition pcb_table.h:95
void SetBorderColor(const COLOR4D &aColor)
Definition pcb_table.h:85
PCB_TABLE(BOARD_ITEM *aParent, int aLineWidth)
Definition pcb_table.cpp:55
void SetSeparatorsStyle(const LINE_STYLE aStyle)
Definition pcb_table.h:94
void SetSeparatorsStroke(const STROKE_PARAMS &aParams)
Definition pcb_table.h:88
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 SetRowHeight(int aRow, int aHeight)
Definition pcb_table.h:145
void SetPosition(const VECTOR2I &aPos) override
void SetBorderWidth(int aWidth)
Definition pcb_table.h:73
void SetBorderStroke(const STROKE_PARAMS &aParams)
Definition pcb_table.h:70
int GetRowHeight(int aRow) const
Definition pcb_table.h:147
std::map< int, int > m_rowHeights
Definition pcb_table.h:340
Represent a polyline containing arcs as well as line segments: A chain of connected line and/or arc s...
Represent a set of closed polygons.
Simple container to manage line stroke parameters.
DRC_CONSTRAINT_T
Definition drc_rule.h:49
@ NULL_CONSTRAINT
Definition drc_rule.h:50
RECURSE_MODE
Definition eda_item.h:50
INSPECT_RESULT
Definition eda_item.h:44
const INSPECTOR_FUNC & INSPECTOR
std::function passed to nested users by ref, avoids copying std::function.
Definition eda_item.h:91
#define STRUCT_DELETED
flag indication structures to be erased
FLASHING
Enum used during connectivity building to ensure we do not query connectivity while building the data...
Definition layer_ids.h:180
@ DEFAULT
Flashing follows connectivity.
Definition layer_ids.h:181
PCB_LAYER_ID
A quick note on layer IDs:
Definition layer_ids.h:56
@ UNDEFINED_LAYER
Definition layer_ids.h:57
FLIP_DIRECTION
Definition mirror.h:23
The Cairo implementation of the graphics abstraction layer.
Definition eda_group.h:30
bool IsGeneratedTableCell(const EDA_ITEM *aItem)
True for a cell whose text is generated from the board, so only its formatting is the user's.
Definition pcb_table.h:348
LINE_STYLE
Dashed line types.
KICAD_T
The set of class identification values stored in EDA_ITEM::m_structType.
Definition typeinfo.h:70
@ PCB_TABLECELL_T
class PCB_TABLECELL, PCB_TEXTBOX for use in tables
Definition typeinfo.h:87
@ PCB_TABLE_T
class PCB_TABLE, table of PCB_TABLECELLs
Definition typeinfo.h:86
constexpr bool IsGeneratedTableType(const KICAD_T aType)
A PCB_TABLE subclass whose cells are generated from the board rather than typed by the user.
Definition typeinfo.h:325
VECTOR2< int32_t > VECTOR2I
Definition vector2d.h:708