4 * PCB, interactive printed circuit board design
5 * Copyright (C) 1994,1995,1996 Thomas Nau
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21 * Contact addresses for paper mail and Email:
22 * Thomas Nau, Schlehenweg 15, 88471 Baustetten, Germany
23 * Thomas.Nau@rz.uni-ulm.de
28 /* prototypes for create routines
36 /* TRUE during file loads, for example to allow overlapping vias.
37 FALSE otherwise, to stop the user from doing normally dangerous
39 void CreateBeLenient (bool);
41 DataTypePtr
CreateNewBuffer (void);
42 void pcb_colors_from_settings (PCBTypePtr
);
43 PCBTypePtr
CreateNewPCB (bool);
44 /* Called after PCB->Data->LayerN is set. Returns zero if no errors,
46 int CreateNewPCBPost (PCBTypePtr
, int /* set defaults */);
47 PinTypePtr
CreateNewVia (DataTypePtr
, Coord
, Coord
, Coord
, Coord
,
48 Coord
, Coord
, char *, FlagType
);
49 LineTypePtr
CreateDrawnLineOnLayer (LayerTypePtr
, Coord
, Coord
, Coord
,
50 Coord
, Coord
, Coord
, FlagType
);
51 LineTypePtr
CreateNewLineOnLayer (LayerTypePtr
, Coord
, Coord
, Coord
,
52 Coord
, Coord
, Coord
, FlagType
);
53 RatTypePtr
CreateNewRat (DataTypePtr
, Coord
, Coord
, Coord
,
54 Coord
, Cardinal
, Cardinal
, Coord
, FlagType
);
55 ArcTypePtr
CreateNewArcOnLayer (LayerTypePtr
, Coord
, Coord
, Coord
, Coord
,
56 Angle
, Angle
, Coord
, Coord
, FlagType
);
57 PolygonTypePtr
CreateNewPolygonFromRectangle (LayerTypePtr
, Coord
,
60 TextTypePtr
CreateNewText (LayerTypePtr
, FontTypePtr
, Coord
,
61 Coord
, unsigned, int, char *, FlagType
);
62 PolygonTypePtr
CreateNewPolygon (LayerTypePtr
, FlagType
);
63 PointTypePtr
CreateNewPointInPolygon (PolygonTypePtr
,
65 PolygonType
*CreateNewHoleInPolygon (PolygonType
*polygon
);
66 ElementTypePtr
CreateNewElement (DataTypePtr
, ElementTypePtr
,
67 FontTypePtr
, FlagType
, char *, char *,
68 char *, Coord
, Coord
, BYTE
,
70 LineTypePtr
CreateNewLineInElement (ElementTypePtr
, Coord
, Coord
,
72 ArcTypePtr
CreateNewArcInElement (ElementTypePtr
, Coord
, Coord
,
73 Coord
, Coord
, Angle
, Angle
, Coord
);
74 PinTypePtr
CreateNewPin (ElementTypePtr
, Coord
, Coord
,
75 Coord
, Coord
, Coord
, Coord
,
76 char *, char *, FlagType
);
77 PadTypePtr
CreateNewPad (ElementTypePtr
, Coord
, Coord
,
78 Coord
, Coord
, Coord
, Coord
,
79 Coord
, char *, char *, FlagType
);
80 LineTypePtr
CreateNewLineInSymbol (SymbolTypePtr
, Coord
, Coord
,
82 void CreateDefaultFont (PCBTypePtr
);
83 RubberbandTypePtr
CreateNewRubberbandEntry (LayerTypePtr
,
84 LineTypePtr
, PointTypePtr
);
85 LibraryMenuTypePtr
CreateNewNet (LibraryTypePtr
, char *, char *);
86 LibraryEntryTypePtr
CreateNewConnection (LibraryMenuTypePtr
, char *);
88 AttributeTypePtr
CreateNewAttribute (AttributeListTypePtr list
, char *name
, char *value
);