Flags
Flags are placed in the <declaration>
tag of the component file, and allow you to set special options when conditions are met.
Flags can be used to control the layout of a component.
<flags conditions="CONDITIONS">
<option>FLAG_NAME</option>
<option>FLAG_NAME</option>
</flags>
The following flag options are available:
HorizontalOnly
Only allows the component to be placed horizontally.
Usage:
<flags>
<option>HorizontalOnly</option>
</flags>
MiddleMustAlign
Ensures that the middle of the component always aligns to the 10-pixel grid.
For example, if the component is placed horizontally such that it is 30 pixels wide, the middle of the component would normally be at 15 pixels along the x-axis. Since this is in-between the 10 pixel and 20 pixel grid lines, any connections at the middle of the component would not align to the grid. With MiddleMustAlign set, the middle would be at 10 pixels instead of 15.
Usage:
<flags>
<option>MiddleMustAlign</option>
</flags>
FlipPrimary
XML version 1.3 and above
Allows the component to be flipped along the primary axis.
Usage:
<flags>
<option>FlipPrimary</option>
</flags>
FlipSecondary
XML version 1.3 and above
Allows the component to be flipped along the secondary axis.
Usage:
<flags>
<option>FlipSecondary</option>
</flags>