summaryrefslogtreecommitdiffstats
path: root/src/bltGrElem.h
diff options
context:
space:
mode:
authorjoye <joye>2014-03-31 19:20:46 (GMT)
committerjoye <joye>2014-03-31 19:20:46 (GMT)
commitbc51222173efc73d5c71ac5721575dd7d5f96c82 (patch)
treed1a6e3a8908a95d895c35ceb02c6216e028ba813 /src/bltGrElem.h
parent8150f1b6d516c20ed7bef75513d08a32a0c79eb0 (diff)
downloadblt-bc51222173efc73d5c71ac5721575dd7d5f96c82.zip
blt-bc51222173efc73d5c71ac5721575dd7d5f96c82.tar.gz
blt-bc51222173efc73d5c71ac5721575dd7d5f96c82.tar.bz2
*** empty log message ***
Diffstat (limited to 'src/bltGrElem.h')
-rw-r--r--src/bltGrElem.h49
1 files changed, 49 insertions, 0 deletions
diff --git a/src/bltGrElem.h b/src/bltGrElem.h
index 5ceccc9..b4fb797 100644
--- a/src/bltGrElem.h
+++ b/src/bltGrElem.h
@@ -37,9 +37,17 @@
#include <iomanip>
using namespace std;
+extern "C" {
+#include <bltVector.h>
+};
+
typedef struct _Element Element;
typedef struct {
+ Blt_VectorId vector;
+} VectorDataSource;
+
+typedef struct {
int type;
Element* elemPtr;
VectorDataSource vectorSource;
@@ -54,6 +62,47 @@ typedef struct {
ElemValues* y;
} ElemCoords;
+typedef struct {
+ double min;
+ double max;
+ double range;
+} Weight;
+
+typedef struct {
+ Weight weight;
+ Pen* penPtr;
+} PenStyle;
+
+typedef void (ElementDrawProc) (Graph *graphPtr, Drawable drawable,
+ Element* elemPtr);
+typedef void (ElementToPostScriptProc) (Graph *graphPtr, Blt_Ps ps,
+ Element* elemPtr);
+typedef void (ElementDestroyProc) (Graph *graphPtr, Element* elemPtr);
+typedef int (ElementConfigProc) (Graph *graphPtr, Element* elemPtr);
+typedef void (ElementMapProc) (Graph *graphPtr, Element* elemPtr);
+typedef void (ElementExtentsProc) (Element* elemPtr, Region2d *extsPtr);
+typedef void (ElementClosestProc) (Graph *graphPtr, Element* elemPtr);
+typedef void (ElementDrawSymbolProc) (Graph *graphPtr, Drawable drawable,
+ Element* elemPtr, int x, int y,
+ int symbolSize);
+typedef void (ElementSymbolToPostScriptProc) (Graph *graphPtr, Blt_Ps ps,
+ Element* elemPtr, double x,
+ double y, int symSize);
+
+typedef struct {
+ ElementClosestProc *closestProc;
+ ElementConfigProc *configProc;
+ ElementDestroyProc *destroyProc;
+ ElementDrawProc *drawActiveProc;
+ ElementDrawProc *drawNormalProc;
+ ElementDrawSymbolProc *drawSymbolProc;
+ ElementExtentsProc *extentsProc;
+ ElementToPostScriptProc *printActiveProc;
+ ElementToPostScriptProc *printNormalProc;
+ ElementSymbolToPostScriptProc *printSymbolProc;
+ ElementMapProc *mapProc;
+} ElementProcs;
+
typedef struct _Element {
GraphObj obj;
unsigned int flags;