| 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 |
| 21 |
extern "C" { |
| 22 |
#endif |
| 23 |
|
| 24 |
void GetOGLPosRef(int x, int y, float *X, float *Y); |
| 25 |
double GetOGLDistance(double l); |
| 26 |
void to3D(int x, int y, float *X, float *Y, float *Z); |
| 27 |
double point_to_lineseg_dist(glCompPoint p, glCompPoint a, glCompPoint b); |
| 28 |
extern void glCompCalcWidget(glCompCommon * parent, |
| 29 |
glCompCommon * child, glCompCommon * ref); |
| 30 |
extern void glCompDrawRectangle(glCompRect * r); |
| 31 |
void glCompDrawRectPrism(glCompPoint p, float w, float h, float b, |
| 32 |
glCompColor c, bool bumped); |
| 33 |
void glCompSetColor(glCompColor c); |
| 34 |
|
| 35 |
double distBetweenPts(glCompPoint A, glCompPoint B, double R); |
| 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 |