Graphviz 14.0.2~dev.20251008.0253
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#include <util/api.h>
14
15#ifdef __cplusplus
16extern "C" {
17#endif
18
19#include <neatogen/geometry.h>
20
21 typedef struct {
24 int nverts;
26 int kind;
27 } Poly;
28
29PRIVATE void polyFree(void);
31PRIVATE int makePoly(Poly *, Agnode_t *, double, double);
32PRIVATE int makeAddPoly(Poly *, Agnode_t *, double, double);
33PRIVATE void breakPoly(Poly *);
34
35#ifdef __cplusplus
36}
37#endif
macro for API hiding/exposing
#define PRIVATE
Definition api.h:16
PRIVATE void polyFree(void)
Definition poly.c:32
PRIVATE int polyOverlap(Point, Poly *, Point, Poly *)
Definition poly.c:437
PRIVATE int makePoly(Poly *, Agnode_t *, double, double)
Definition poly.c:217
PRIVATE void breakPoly(Poly *)
Definition poly.c:43
PRIVATE int makeAddPoly(Poly *, Agnode_t *, double, double)
Definition poly.c:127
Definition poly.h:21
Point corner
Definition poly.h:23
int nverts
Definition poly.h:24
Point * verts
Definition poly.h:25
int kind
Definition poly.h:26
Point origin
Definition poly.h:22