Logo Search packages:      
Sourcecode: ktechlab version File versions  Download package

void Component::init4PinRight ( int  h1 = -1,
int  h2 = -1,
int  h3 = -1,
int  h4 = -1 
) [protected, inherited]

Create 4 pins on the right of the component, either spread out, or at the given heights.

Definition at line 555 of file component.cpp.

{
      if ( h1 == -1 ) h1 = offsetY()+8;
      if ( h2 == -1 ) h2 = offsetY()+24;
      if ( h3 == -1 ) h3 = offsetY()+height()-24;
      if ( h4 == -1 ) h4 = offsetY()+height()-8;
      
      m_pPNode[0] = createPin( offsetX()+width()+8,   h1, 180,    "p1" );
      m_pPNode[1] = createPin( offsetX()+width()+8,   h2, 180,    "p2" );
      m_pPNode[2] = createPin( offsetX()+width()+8,   h3, 180,    "p3" );
      m_pPNode[3] = createPin( offsetX()+width()+8,   h4, 180,    "p4" );
}


Generated by  Doxygen 1.6.0   Back to index