pcb 4.1.1
An interactive printed circuit board layout editor.

copy.h File Reference

Prototypes for copy routines. More...

#include "global.h"
Include dependency graph for copy.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define COPY_TYPES

Functions

PolygonTypeCopyPolygonLowLevel (PolygonType *, PolygonType *)
 Copies data from one polygon to another.
ElementTypeCopyElementLowLevel (DataType *, ElementType *, bool, Coord, Coord, int mask_flags)
 Copies data from one element to another and creates the destination if necessary.
bool CopyPastebufferToLayout (Coord, Coord)
 Pastes the contents of the buffer to the layout.
void * CopyObject (int, void *, void *, void *, Coord, Coord)
 Copies the object identified by its data pointers and the type the new objects is moved by DX,DY.

Detailed Description

Prototypes for copy routines.


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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

Contact addresses for paper mail and Email: Thomas Nau, Schlehenweg 15, 88471 Baustetten, Germany Thomas.Nau@rz.uni-ulm.de

Definition in file copy.h.


Define Documentation

#define COPY_TYPES
Value:
(VIA_TYPE | LINE_TYPE | TEXT_TYPE | \
        ELEMENT_TYPE | ELEMENTNAME_TYPE | POLYGON_TYPE | ARC_TYPE)

Definition at line 41 of file copy.h.

Referenced by NotifyMode().


Function Documentation

void* CopyObject ( int  Type,
void *  Ptr1,
void *  Ptr2,
void *  Ptr3,
Coord  DX,
Coord  DY 
)

Copies the object identified by its data pointers and the type the new objects is moved by DX,DY.

Note:
I assume that the appropriate layer ... is switched on.

Definition at line 418 of file copy.c.

References DeltaX, DeltaY, IncrementUndoSerialNumber(), ObjectOperation(), and ptr.

Referenced by NotifyMode().

Here is the call graph for this function:

bool CopyPastebufferToLayout ( Coord  X,
Coord  Y 
)
PolygonType* CopyPolygonLowLevel ( PolygonType Dest,
PolygonType Src 
)

Copies data from one polygon to another.

'Dest' has to exist.

Definition at line 97 of file copy.c.

References CLEAR_FLAG, CreateNewHoleInPolygon(), CreateNewPointInPolygon(), polygon_st::HoleIndex, n, polygon_st::PointN, polygon_st::Points, SetPolygonBoundingBox(), PointType::X, and PointType::Y.

Referenced by AddPolygonToBuffer(), and CopyPolygon().

Here is the call graph for this function: