summaryrefslogtreecommitdiffstats
path: root/tkmacosx/tkmacosx.h
diff options
context:
space:
mode:
authorWilliam Joye <wjoye@cfa.harvard.edu>2016-10-27 19:10:39 (GMT)
committerWilliam Joye <wjoye@cfa.harvard.edu>2016-10-27 19:10:39 (GMT)
commit85403083fb82f4ef26fd0585b1c9b7beb53819fb (patch)
tree0e411059977f543cc5afbdf0c6bf99350d3e572a /tkmacosx/tkmacosx.h
parent12166aa342f7c8d905097e43a1f50e0775503069 (diff)
downloadblt-85403083fb82f4ef26fd0585b1c9b7beb53819fb.zip
blt-85403083fb82f4ef26fd0585b1c9b7beb53819fb.tar.gz
blt-85403083fb82f4ef26fd0585b1c9b7beb53819fb.tar.bz2
Initial commit
Diffstat (limited to 'tkmacosx/tkmacosx.h')
-rw-r--r--tkmacosx/tkmacosx.h64
1 files changed, 64 insertions, 0 deletions
diff --git a/tkmacosx/tkmacosx.h b/tkmacosx/tkmacosx.h
new file mode 100644
index 0000000..65ae6de
--- /dev/null
+++ b/tkmacosx/tkmacosx.h
@@ -0,0 +1,64 @@
+// Copyright (C) 1999-2016
+// Smithsonian Astrophysical Observatory, Cambridge, MA, USA
+// For conditions of distribution and use, see copyright notice in "copyright"
+
+#ifndef __tkmacosx_h__
+#define __tkmacosx_h__
+
+#include <tcl.h>
+
+#include <vector.h>
+
+class TkMacosx {
+ private:
+ Tcl_Interp* interp;
+
+ /*
+ int showDialog;
+
+ CGContextRef context;
+ Matrix canvasToPage;
+
+ OSStatus status;
+ PMPageFormat pageFormat;
+ PMPrintSettings printSettings;
+ PMPrintSession printSession;
+
+ int pmPrint(int, const char**);
+ int pmPrintBegin(int, const char**);
+ int pmPrintEnd();
+ int pmPrintText(int, const char**);
+ int pmPageSetup();
+ */
+ public:
+ TkMacosx(Tcl_Interp*);
+ ~TkMacosx();
+
+ // int pm(int, const char**);
+ int locale(int, const char**);
+ /*
+ const Matrix& getCanvasToPage() {return canvasToPage;}
+
+ void begin();
+ void end();
+
+ void color(float,float,float);
+ void width(float);
+ void dash(float*,int);
+ void font(const char*, float);
+ void clip(float, float, float, float);
+
+ void drawText(float, float, float, const char*);
+ void drawLines(float*, float*, int);
+ void drawRect(float, float, float, float);
+ void drawArc(float, float, float, float, float);
+ void drawCurve(float, float, float, float, float, float, float, float);
+ void fillPolygon(float*, float*, int);
+
+ void bitmapCreate(void*, int, int, float, float, float, float);
+ */
+};
+
+extern TkMacosx* tkmacosx;
+
+#endif