-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcreate.h
97 lines (90 loc) · 3.96 KB
/
create.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
/*
* COPYRIGHT
*
* PCB, interactive printed circuit board design
* Copyright (C) 1994,1995,1996 Thomas Nau
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
* Contact addresses for paper mail and Email:
* Thomas Nau, Schlehenweg 15, 88471 Baustetten, Germany
* Thomas.Nau@rz.uni-ulm.de
*
* RCS: $Id$
*/
/* prototypes for create routines
*/
#ifndef __CREATE_INCLUDED__
#define __CREATE_INCLUDED__
#include "global.h"
/* TRUE during file loads, for example to allow overlapping vias.
FALSE otherwise, to stop the user from doing normally dangerous
things. */
void CreateBeLenient (bool);
DataTypePtr CreateNewBuffer (void);
void pcb_colors_from_settings (PCBTypePtr);
PCBTypePtr CreateNewPCB (bool);
/* Called after PCB->Data->LayerN is set. Returns zero if no errors,
else nonzero. */
int CreateNewPCBPost (PCBTypePtr, int /* set defaults */);
PinTypePtr CreateNewVia (DataTypePtr, LocationType, LocationType, BDimension,
BDimension, BDimension, BDimension, char *,
FlagType);
LineTypePtr CreateDrawnLineOnLayer (LayerTypePtr, LocationType, LocationType,
LocationType, LocationType, BDimension,
BDimension, FlagType);
LineTypePtr CreateNewLineOnLayer (LayerTypePtr, LocationType, LocationType,
LocationType, LocationType, BDimension,
BDimension, FlagType);
RatTypePtr CreateNewRat (DataTypePtr, LocationType, LocationType,
LocationType, LocationType, Cardinal, Cardinal,
BDimension, FlagType);
ArcTypePtr CreateNewArcOnLayer (LayerTypePtr, LocationType, LocationType,
BDimension, BDimension, int, int, BDimension, BDimension,
FlagType);
PolygonTypePtr CreateNewPolygonFromRectangle (LayerTypePtr, LocationType,
LocationType, LocationType,
LocationType, FlagType);
TextTypePtr CreateNewText (LayerTypePtr, FontTypePtr, LocationType,
LocationType, BYTE, int, char *, FlagType);
PolygonTypePtr CreateNewPolygon (LayerTypePtr, FlagType);
PointTypePtr CreateNewPointInPolygon (PolygonTypePtr,
LocationType, LocationType);
PolygonType *CreateNewHoleInPolygon (PolygonType *polygon);
ElementTypePtr CreateNewElement (DataTypePtr, ElementTypePtr,
FontTypePtr, FlagType, char *, char *,
char *, LocationType, LocationType, BYTE,
int, FlagType, bool);
LineTypePtr CreateNewLineInElement (ElementTypePtr, LocationType,
LocationType, LocationType, LocationType,
BDimension);
ArcTypePtr CreateNewArcInElement (ElementTypePtr, LocationType, LocationType,
BDimension, BDimension, int, int,
BDimension);
PinTypePtr CreateNewPin (ElementTypePtr, LocationType, LocationType,
BDimension, BDimension, BDimension, BDimension,
char *, char *, FlagType);
PadTypePtr CreateNewPad (ElementTypePtr, LocationType, LocationType,
LocationType, LocationType, BDimension, BDimension,
BDimension, char *, char *, FlagType);
LineTypePtr CreateNewLineInSymbol (SymbolTypePtr, LocationType, LocationType,
LocationType, LocationType, BDimension);
void CreateDefaultFont (void);
RubberbandTypePtr CreateNewRubberbandEntry (LayerTypePtr,
LineTypePtr, PointTypePtr);
LibraryMenuTypePtr CreateNewNet (LibraryTypePtr, char *, char *);
LibraryEntryTypePtr CreateNewConnection (LibraryMenuTypePtr, char *);
AttributeTypePtr CreateNewAttribute (AttributeListTypePtr list, char *name, char *value);
#endif