Graphviz 12.0.1~dev.20240716.0800
Loading...
Searching...
No Matches
glutils.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 _WIN32
14#include "windows.h"
15#endif
16#include <glcomp/opengl.h>
17#include <glcomp/glcompdefs.h>
18#include <stdbool.h>
19
20#ifdef __cplusplus
21extern "C" {
22#endif
23
24 int GetOGLPosRef(int x, int y, float *X, float *Y);
25 float GetOGLDistance(float l);
26void to3D(int x, int y, float *X, float *Y, float *Z);
29 glCompCommon * child, glCompCommon * ref);
30 extern void glCompDrawRectangle(glCompRect * r);
31void glCompDrawRectPrism(glCompPoint *p, float w, float h, float b, float d,
32 glCompColor *c, bool bumped);
33 extern void glCompSetColor(glCompColor * c);
34
36 extern int is_point_in_rectangle(float X, float Y, float RX, float RY, float RW,float RH);
37
38#ifdef __cplusplus
39}
40#endif
#define parent(i)
Definition closest.c:78
#define A(n, t)
Definition expr.h:76
#define Y(i)
Definition gdefs.h:3
#define X(prefix, name, str, type, subtype,...)
Definition gdefs.h:14
int GetOGLPosRef(int x, int y, float *X, float *Y)
Definition glutils.c:19
float GetOGLDistance(float l)
Definition glutils.c:53
void glCompDrawRectangle(glCompRect *r)
Definition glutils.c:299
float distBetweenPts(glCompPoint A, glCompPoint B, float R)
Definition glutils.c:363
void glCompCalcWidget(glCompCommon *parent, glCompCommon *child, glCompCommon *ref)
Definition glutils.c:195
int is_point_in_rectangle(float X, float Y, float RX, float RY, float RW, float RH)
Definition glutils.c:371
void glCompSetColor(glCompColor *c)
Definition glutils.c:294
void glCompDrawRectPrism(glCompPoint *p, float w, float h, float b, float d, glCompColor *c, bool bumped)
Definition glutils.c:309
void to3D(int x, int y, float *X, float *Y, float *Z)
Definition glutils.c:100
double point_to_lineseg_dist(glCompPoint p, glCompPoint a, glCompPoint b)
Definition glutils.c:176
#define B
Definition hierarchy.c:117
void ref(Site *v)
Definition site.c:59