pcb 4.1.1
An interactive printed circuit board layout editor.
|
Functions used to change the mirror flag of an object. More...
#include <stdlib.h>
#include "global.h"
#include "data.h"
#include "draw.h"
#include "mirror.h"
#include "misc.h"
#include "polygon.h"
#include "search.h"
#include "select.h"
#include "set.h"
Go to the source code of this file.
Functions | |
void | MirrorElementCoordinates (DataType *Data, ElementType *Element, Coord yoff) |
Mirrors the coordinates of an element. |
Functions used to change the mirror flag of an object.
An undo operation is not implemented because it's easy to recover an object.
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
Definition in file mirror.c.
void MirrorElementCoordinates | ( | DataType * | Data, |
ElementType * | Element, | ||
Coord | yoff | ||
) |
Mirrors the coordinates of an element.
An additional offset is passed.
Definition at line 65 of file mirror.c.
References ARC_LOOP, ClearFromPolygon(), ELEMENTLINE_LOOP, ELEMENTTEXT_LOOP, END_LOOP, PCBType::Font, line, ElementType::MarkX, ElementType::MarkY, PAD_LOOP, PCB, pin, PIN_LOOP, r_delete_element(), RestoreToPolygon(), SetElementBoundingBox(), SWAP_ANGLE, SWAP_DELTA, SWAP_X, SWAP_Y, TOGGLE_FLAG, pin_st::X, and pin_st::Y.
Referenced by ActionElementList(), ChangeElementSide(), doPerturb(), LoadElementToBuffer(), SwapBuffer(), and UndoMirror().