Graphviz  2.41.20170921.2350
poly.h
Go to the documentation of this file.
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
15 extern "C" {
16 #endif
17 
18 #ifndef POLY_H
19 #define POLY_H
20 
21 #include "geometry.h"
22 
23  typedef struct {
26  int nverts;
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
Definition: poly.h:23
int makeAddPoly(Poly *pp, Agnode_t *n, float xmargin, float ymargin)
Definition: poly.c:183
Point corner
Definition: poly.h:25
Point * verts
Definition: poly.h:27
void breakPoly(Poly *pp)
Definition: poly.c:46
int makePoly(Poly *pp, Agnode_t *n, float xmargin, float ymargin)
Definition: poly.c:275
Point origin
Definition: poly.h:24
Definition: geometry.h:26
int nverts
Definition: poly.h:26
int polyOverlap(Point p, Poly *pp, Point q, Poly *qp)
Definition: poly.c:504
int kind
Definition: poly.h:28
void polyFree()
Definition: poly.c:35