1 /*! 2 * \file src/crosshair.h 3 * 4 * \brief Prototypes for crosshair routines. 5 * 6 * <hr> 7 * 8 * <h1><b>Copyright.</b></h1>\n 9 * 10 * PCB, interactive printed circuit board design 11 * 12 * Copyright (C) 1994,1995,1996 Thomas Nau 13 * 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. 18 * 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. 23 * 24 * You should have received a copy of the GNU General Public License along 25 * with this program; if not, write to the Free Software Foundation, Inc., 26 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 27 * 28 * Contact addresses for paper mail and Email: 29 * Thomas Nau, Schlehenweg 15, 88471 Baustetten, Germany 30 * Thomas.Nau@rz.uni-ulm.de 31 */ 32 33 #ifndef PCB_CROSSHAIR_H 34 #define PCB_CROSSHAIR_H 35 36 #include "global.h" 37 38 /* --------------------------------------------------------------------------- 39 * all possible states of an attached object 40 */ 41 #define STATE_FIRST 0 /*!< initial state. */ 42 #define STATE_SECOND 1 43 #define STATE_THIRD 2 44 45 Coord GridFit (Coord x, Coord grid_spacing, Coord grid_offset); 46 void notify_crosshair_change (bool changes_complete); 47 void notify_mark_change (bool changes_complete); 48 void HideCrosshair (void); 49 void RestoreCrosshair (void); 50 void DrawAttached (hidGC gc); 51 void DrawMark (hidGC gc); 52 bool MoveCrosshairAbsolute (Coord, Coord); 53 void SetCrosshairRange (Coord, Coord, Coord, Coord); 54 void InitCrosshair (void); 55 void DestroyCrosshair (void); 56 void FitCrosshairIntoGrid (Coord, Coord); 57 void crosshair_update_range(void); 58 59 #endif 60