pcb 4.1.1
An interactive printed circuit board layout editor.

crosshair.h

Go to the documentation of this file.
00001 
00033 #ifndef PCB_CROSSHAIR_H
00034 #define PCB_CROSSHAIR_H
00035 
00036 #include "global.h"
00037 
00038 /* ---------------------------------------------------------------------------
00039  * all possible states of an attached object
00040  */
00041 #define STATE_FIRST             0       
00042 #define STATE_SECOND    1
00043 #define STATE_THIRD             2
00044 
00045 Coord GridFit (Coord x, Coord grid_spacing, Coord grid_offset);
00046 void notify_crosshair_change (bool changes_complete);
00047 void notify_mark_change (bool changes_complete);
00048 void HideCrosshair (void);
00049 void RestoreCrosshair (void);
00050 void DrawAttached (hidGC gc);
00051 void DrawMark (hidGC gc);
00052 bool MoveCrosshairAbsolute (Coord, Coord);
00053 void SetCrosshairRange (Coord, Coord, Coord, Coord);
00054 void InitCrosshair (void);
00055 void DestroyCrosshair (void);
00056 void FitCrosshairIntoGrid (Coord, Coord);
00057 void crosshair_update_range(void);
00058 
00059 #endif