1/* $Id$ $Revision$ */
2/* vim:set shiftwidth=4 ts=8: */
3
4/*************************************************************************
5 * Copyright (c) 2011 AT&T Intellectual Property
6 * All rights reserved. This program and the accompanying materials
7 * are made available under the terms of the Eclipse Public License v1.0
8 * which accompanies this distribution, and is available at
9 * http://www.eclipse.org/legal/epl-v10.html
10 *
11 * Contributors: See CVS logs. Details at http://www.graphviz.org/
12 *************************************************************************/
13
14#ifdef __cplusplus
15extern "C" {
16#endif
17
18#ifndef POLY_H
19#define POLY_H
20
21#include "geometry.h"
22
23 typedef struct {
24 Point origin;
25 Point corner;
26 int nverts;
27 Point *verts;
28 int kind;
29 } Poly;
30
31 extern void polyFree(void);
32 extern int polyOverlap(Point, Poly *, Point, Poly *);
33 extern int makePoly(Poly *, Agnode_t *, float, float);
34 extern int makeAddPoly(Poly *, Agnode_t *, float, float);
35 extern void breakPoly(Poly *);
36
37#endif
38
39#ifdef __cplusplus
40}
41#endif
42