pcb 4.1.1
An interactive printed circuit board layout editor.
|
Prototypes to change objects mirror flag. More...
#include "global.h"
Go to the source code of this file.
Defines | |
#define | MIRROR(object) TOGGLE_FLAG(MIRRORFLAG, (object)) |
#define | MIRROR_TYPES (TEXT_TYPE | ELEMENTNAME_TYPE) |
Functions | |
void | MirrorElementCoordinates (DataType *, ElementType *, Coord) |
Mirrors the coordinates of an element. |
Prototypes to change objects mirror flag.
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.h.
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().