25 if( aFirst.
x != aSecond.
x )
26 return aFirst.
x < aSecond.
x;
28 if( aFirst.
y != aSecond.
y )
29 return aFirst.
y < aSecond.
y;
120template <
bool OrderTextByPosition>
125 if( aFirst->
Type() != aSecond->
Type() )
126 return aFirst->
Type() < aSecond->
Type();
134 static_cast<const PCB_SHAPE*
>( aSecond ) ) )
142 static_cast<const PCB_TEXT*
>( aSecond ) ) )
151 return aFirst < aSecond;
A base class for any item which can be embedded within the BOARD container class, and therefore insta...
virtual PCB_LAYER_ID GetLayer() const
Return the primary layer this item is on.
KICAD_T Type() const
Returns the type of object.
const VECTOR2I & GetBezierC2() const
SHAPE_POLY_SET & GetPolyShape()
const VECTOR2I & GetEnd() const
Return the ending point of the graphic.
const VECTOR2I & GetStart() const
Return the starting point of the graphic.
const VECTOR2I & GetBezierC1() const
virtual const wxString & GetText() const
Return the string associated with the text object.
double GetLineSpacing() const
VECTOR2I GetCenter() const override
This defaults to the center of the bounding box if not overridden.
int GetWidth() const override
EDA_ANGLE GetTextAngle() const override
VECTOR2I GetPosition() const override
int GetTextThickness() const override
VECTOR2I GetTextSize() const override
Represent a set of closed polygons.
int TotalVertices() const
Return total number of vertices stored in the set.
const VECTOR2I & CVertex(int aIndex, int aOutline, int aHole) const
Return the index-th vertex in a given hole outline within a given outline.
@ PCB_SHAPE_T
class PCB_SHAPE, a segment not on copper layers
@ PCB_TEXT_T
class PCB_TEXT, text on a layer
VECTOR2< int32_t > VECTOR2I