~ubuntu-branches/ubuntu/precise/pcb/precise

« back to all changes in this revision

Viewing changes to src/search.h

  • Committer: Bazaar Package Importer
  • Author(s): Hamish Moffatt
  • Date: 2005-02-20 13:14:00 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050220131400-pfz66g5vhx0azl8f
Tags: 1.99j+20050127-2
* Improved package description: (closes: #295405)
* Fixed dependency: tk84 -> tk8.4 (closes: #295404)
* Updated README.debian (closes: #269578)
* Applied patch to src/djopt.c to allow compilation with gcc-4.0
  (closes: #294319), thanks to Andreas Jochens for the patch.
* Prevent example files from being compressed

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
 *  Thomas Nau, Schlehenweg 15, 88471 Baustetten, Germany
23
23
 *  Thomas.Nau@rz.uni-ulm.de
24
24
 *
25
 
 *  RCS: $Id: search.h,v 1.1 1998/02/19 18:06:34 sync Exp $
 
25
 *  RCS: $Id: search.h,v 1.6 2005/01/03 12:57:00 danmc Exp $
26
26
 */
27
27
 
28
28
/* prototypes for search routines
33
33
 
34
34
#include "global.h"
35
35
 
 
36
#define SLOP 5
36
37
/* ---------------------------------------------------------------------------
37
38
 * some useful macros
38
39
 */
71
72
 * prototypes
72
73
 */
73
74
Boolean IsPointOnLine(float, float, float, LineTypePtr);
 
75
Boolean IsPointOnPin(float, float, float, PinTypePtr);
74
76
Boolean IsPointOnArc(float, float, float, ArcTypePtr);
75
 
Boolean IsPointOnLineEnd(Position, Position, RatTypePtr);
76
 
Boolean IsLineInRectangle(Position, Position, Position, Position, LineTypePtr);
77
 
Boolean IsArcInRectangle(Position, Position, Position, Position, ArcTypePtr);
 
77
Boolean IsPointOnLineEnd(LocationType, LocationType, RatTypePtr);
 
78
Boolean IsLineInRectangle(LocationType, LocationType, LocationType, LocationType, LineTypePtr);
 
79
Boolean IsArcInRectangle(LocationType, LocationType, LocationType, LocationType, ArcTypePtr);
78
80
Boolean IsPointInPolygon(float, float, float, PolygonTypePtr);
79
 
Boolean IsPointInSquarePad(Position, Position, Cardinal, PadTypePtr);
80
 
Boolean IsRectangleInPolygon(Position, Position, Position, Position,
 
81
Boolean IsPointInSquarePad(LocationType, LocationType, Cardinal, PadTypePtr);
 
82
Boolean IsPointInBox(LocationType, LocationType, BoxTypePtr, Cardinal);
 
83
Boolean IsRectangleInPolygon(LocationType, LocationType, LocationType, LocationType,
81
84
                        PolygonTypePtr);
82
 
int             SearchObjectByPosition(int, void **, void **, void **,
83
 
                        Position, Position, Dimension);
84
 
int             SearchScreen(int, void **, void **, void **);
85
 
int             SearchObjectByID(DataTypePtr, void **, void **, void **, int);
 
85
int             SearchObjectByLocation(int, void **, void **, void **,
 
86
                        LocationType, LocationType, BDimension);
 
87
int             SearchScreen(LocationType, LocationType, int, void **, void **, void **);
 
88
int             SearchObjectByID(DataTypePtr, void **, void **, void **, int, int);
86
89
ElementTypePtr SearchElementByName(DataTypePtr, char *);
87
90
 
88
91
#endif