Graphviz 14.1.2~dev.20251213.2040
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 <stdbool.h>
14#include <util/api.h>
15
16#ifdef __cplusplus
17extern "C" {
18#endif
19
20#include <neatogen/geometry.h>
21
22 typedef struct {
25 int nverts;
27 int kind;
28 } Poly;
29
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 bool polyOverlap(Point, Poly *, Point, Poly *)
Definition poly.c:406
PRIVATE int makePoly(Poly *, Agnode_t *, double, double)
Definition poly.c:199
PRIVATE void breakPoly(Poly *)
Definition poly.c:27
PRIVATE int makeAddPoly(Poly *, Agnode_t *, double, double)
Definition poly.c:111
Definition poly.h:22
Point corner
Definition poly.h:24
int nverts
Definition poly.h:25
Point * verts
Definition poly.h:26
int kind
Definition poly.h:27
Point origin
Definition poly.h:23