solvespace/sketch.h
Jonathan Westhues f201d52247 Add hyperlink and colour support to the text window. Don't redraw
the text window every time we refresh the graphics window, because
that's slow. Use classes instead of structs for everything; I don't
understand the template handling for structs. And implement the
IdList, which I will try to use in many places.

[git-p4: depot-paths = "//depot/solvespace/": change = 1655]
2008-03-28 02:00:37 -08:00

69 lines
967 B
C++

#ifndef __SKETCH_H
#define __SKETCH_H
class hEntity;
class hPoint;
class hRequest;
class hParam;
class hRequest {
public:
int v;
hEntity entity(int i);
};
class Request {
public:
static const int REQUEST_LINE_SEGMENT = 0;
static const int REQUEST_STEP_REPEAT_TRANSLATE = 1;
static const int REQUEST_STEP_REPEAT_TRANSLATE_SYM = 2;
int type;
hRequest h;
};
class hEntity {
public:
int v;
hRequest request(int i);
hPoint point(int i);
};
class Entity {
public:
static const int ENTITY_LINE_SEGMENT = 0;
static const int ENTITY_PWL_SEGMENT = 1;
int type;
hEntity h;
};
class hPoint {
public:
int v;
};
class Point {
public:
hPoint h;
};
class hParam {
public:
int v;
};
class Param {
public:
double val;
hParam h;
};
#endif