Graphviz 13.0.0~dev.20241220.2304
Loading...
Searching...
No Matches
site.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 <stddef.h>
14
15#ifdef __cplusplus
16extern "C" {
17#endif
18
19#include <neatogen/geometry.h>
20
21 /* Sites are also used as vertices on line segments */
22 typedef struct Site {
24 size_t sitenbr;
25 unsigned refcnt;
27
28 extern int siteidx;
29 extern Site *bottomsite;
30
31 extern void siteinit(void);
32 extern Site *getsite(void);
33 extern double dist(Site *, Site *); /* Distance between two sites */
34 extern void deref(Site *); /* Increment refcnt of site */
35 extern void ref(Site *); /* Decrement refcnt of site */
36 extern void makevertex(Site *); /* Transform a site into a vertex */
37
38#ifdef __cplusplus
39}
40#endif
int siteidx
Definition site.c:16
void deref(Site *)
Definition site.c:52
void siteinit(void)
Definition site.c:22
void makevertex(Site *)
Definition site.c:46
double dist(Site *, Site *)
Definition site.c:34
Site * getsite(void)
Definition site.c:29
Site * bottomsite
Definition site.c:17
void ref(Site *)
Definition site.c:59
Definition site.h:22
Point coord
Definition site.h:23
size_t sitenbr
Definition site.h:24
unsigned refcnt
Definition site.h:25