Shiny 3D eye-candy
[geda-pcb/pcjc2.git] / src / buffer.h
blob9b6858adc3aa1fd7c96ee43d2046897d192654c8
1 /*!
2 * \file src/buffer.h
4 * \brief Prototypes for buffer handling 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_BUFFER_H
34 #define PCB_BUFFER_H
36 #include "global.h"
38 /* ---------------------------------------------------------------------------
39 * prototypes
41 void SetBufferBoundingBox (BufferType *);
42 void ClearBuffer (BufferType *);
43 void AddSelectedToBuffer (BufferType *, Coord, Coord, bool);
44 bool LoadElementToBuffer (BufferType *, char *, bool);
45 bool ConvertBufferToElement (BufferType *);
46 bool SmashBufferElement (BufferType *);
47 bool LoadLayoutToBuffer (BufferType *, char *);
48 void RotateBuffer (BufferType *, BYTE);
49 void SelectPasteBuffer (int);
50 void SwapBuffers (void);
51 void MirrorBuffer (BufferType *);
52 void InitBuffers (void);
53 void *MoveObjectToBuffer (DataType *, DataType *, int, void *, void *, void *);
54 void *CopyObjectToBuffer (DataType *, DataType *, int,
55 void *, void *, void *);
57 int LoadFootprint (int argc, char **argv, Coord x, Coord y);
59 #endif