Graphviz 13.1.2~dev.20250725.0048
Loading...
Searching...
No Matches
poly.h
Go to the documentation of this file.
1/*************************************************************************
2 * Copyright (c) 2011 AT&T Intellectual Property
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0
5 * which accompanies this distribution, and is available at
6 * https://www.eclipse.org/legal/epl-v10.html
7 *
8 * Contributors: Details at https://graphviz.org
9 *************************************************************************/
10
11#pragma once
12
13#ifdef __cplusplus
14extern "C" {
15#endif
16
17#include <neatogen/geometry.h>
18
19#if !defined(__CYGWIN__) && defined(__GNUC__) && !defined(__MINGW32__)
20#define INTERNAL __attribute__((visibility("hidden")))
21#else
22#define INTERNAL /* nothing */
23#endif
24
25 typedef struct {
28 int nverts;
30 int kind;
31 } Poly;
32
33INTERNAL void polyFree(void);
35INTERNAL int makePoly(Poly *, Agnode_t *, double, double);
36INTERNAL int makeAddPoly(Poly *, Agnode_t *, double, double);
37INTERNAL void breakPoly(Poly *);
38
39#undef INTERNAL
40
41#ifdef __cplusplus
42}
43#endif
#define INTERNAL
Definition poly.h:22
INTERNAL int polyOverlap(Point, Poly *, Point, Poly *)
Definition poly.c:438
INTERNAL void polyFree(void)
Definition poly.c:33
INTERNAL void breakPoly(Poly *)
Definition poly.c:44
INTERNAL int makeAddPoly(Poly *, Agnode_t *, double, double)
Definition poly.c:128
INTERNAL int makePoly(Poly *, Agnode_t *, double, double)
Definition poly.c:218
Definition poly.h:25
Point corner
Definition poly.h:27
int nverts
Definition poly.h:28
Point * verts
Definition poly.h:29
int kind
Definition poly.h:30
Point origin
Definition poly.h:26