gtk/gl: Play with layer translucency
[geda-pcb/pcjc2.git] / src / create.h
blobdb043c3de9acebef7b9a2e9d8e203b574cc4d8de
1 /*!
2 * \file src/create.h
4 * \brief Prototypes for create routines.
6 * <hr>
8 * <h1><b>Copyright.</b></h1>\n
10 * PCB, interactive printed circuit board design
12 * Copyright (C) 1994,1995,1996 Thomas Nau
14 * This program is free software; you can redistribute it and/or modify
15 * it under the terms of the GNU General Public License as published by
16 * the Free Software Foundation; either version 2 of the License, or
17 * (at your option) any later version.
19 * This program is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 * GNU General Public License for more details.
24 * You should have received a copy of the GNU General Public License
25 * along with this program; if not, write to the Free Software
26 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
28 * Contact addresses for paper mail and Email:
29 * Thomas Nau, Schlehenweg 15, 88471 Baustetten, Germany
30 * Thomas.Nau@rz.uni-ulm.de
33 #ifndef PCB_CREATE_H
34 #define PCB_CREATE_H
36 #include "global.h"
38 void CreateBeLenient (bool);
40 DataType * CreateNewBuffer (void);
41 void pcb_colors_from_settings (PCBType *);
42 PCBType * CreateNewPCB ();
43 int CreateNewPCBPost (PCBType *, int /* set defaults */);
44 PinType * CreateNewVia (DataType *, Coord, Coord, Coord, Coord, Coord, Coord, char *, FlagType);
45 LineType * CreateDrawnLineOnLayer (LayerType *, Coord, Coord, Coord, Coord, Coord, Coord, FlagType);
46 LineType * CreateNewLineOnLayer (LayerType *, Coord, Coord, Coord, Coord, Coord, Coord, FlagType);
47 RatType * CreateNewRat (DataType *, Coord, Coord, Coord, Coord, Cardinal, Cardinal, Coord, FlagType);
48 ArcType * CreateNewArcOnLayer (LayerType *, Coord, Coord, Coord, Coord, Angle, Angle, Coord, Coord, FlagType);
49 PolygonType * CreateNewPolygonFromRectangle (LayerType *, Coord, Coord, Coord, Coord, FlagType);
50 TextType * CreateNewText (LayerType *, FontType *, Coord, Coord, unsigned, int, char *, FlagType);
51 PolygonType * CreateNewPolygon (LayerType *, FlagType);
52 PointType * CreateNewPointInPolygon (PolygonType *, Coord, Coord);
53 PolygonType * CreateNewHoleInPolygon (PolygonType *polygon);
54 ElementType * CreateNewElement (DataType *, FontType *, FlagType, char *, char *, char *, Coord, Coord, BYTE, int, FlagType, bool);
55 LineType * CreateNewLineInElement (ElementType *, Coord, Coord, Coord, Coord, Coord);
56 ArcType * CreateNewArcInElement (ElementType *, Coord, Coord, Coord, Coord, Angle, Angle, Coord);
57 PinType * CreateNewPin (ElementType *, Coord, Coord, Coord, Coord, Coord, Coord, char *, char *, FlagType);
58 PadType * CreateNewPad (ElementType *, Coord, Coord, Coord, Coord, Coord, Coord, Coord, char *, char *, FlagType);
59 LineType * CreateNewLineInSymbol (SymbolType *, Coord, Coord, Coord, Coord, Coord);
60 void CreateDefaultFont (PCBType *);
61 RubberbandType * CreateNewRubberbandEntry (LayerType *, LineType *, PointType *);
62 LibraryMenuType * CreateNewNet (LibraryType *, char *, char *);
63 LibraryEntryType * CreateNewConnection (LibraryMenuType *, char *);
64 AttributeType * CreateNewAttribute (AttributeListType *list, char *name, char *value);
66 #endif