62 if( i.flag == aOrientation )
71 for(
int i = 0; i < o.
n_rots; i++ )
72 item.Rotate(
VECTOR2I( 0, 0 ),
true );
75 item.MirrorVertically( 0 );
78 item.MirrorHorizontally( 0 );
94 if( i.flag == aOrientMirror )
101 for(
int i = 0; i < o.
n_rots; i++ )
Define a library symbol object.
LIB_ITEMS_CONTAINER & GetDrawItems()
Return a reference to the draw item list.
Base class for any item which can be embedded within the SCHEMATIC container class,...
void MirrorVerticallyPin(int aCenter)
PIN_ORIENTATION GetOrientation() const
void RotatePin(const VECTOR2I &aCenter, bool aRotateCCW=true)
void MirrorHorizontallyPin(int aCenter)
these transforms have always effects
int GetOrientation() const override
Get the display symbol orientation.
@ PIN_UP
The pin extends upwards from the connection point: Probably on the bottom side of the symbol.
@ PIN_RIGHT
The pin extends rightwards from the connection point.
@ PIN_LEFT
The pin extends leftwards from the connection point: Probably on the right side of the symbol.
@ PIN_DOWN
The pin extends downwards from the connection: Probably on the top side of the symbol.
SYMBOL_ORIENTATION_T
enum used in RotationMiroir()
@ SYM_ROTATE_COUNTERCLOCKWISE