diff options
author | William Joye <wjoye@cfa.harvard.edu> | 2017-03-23 16:34:59 (GMT) |
---|---|---|
committer | William Joye <wjoye@cfa.harvard.edu> | 2017-03-23 16:34:59 (GMT) |
commit | 2b566481a1b8874e3b19dc63c68629274cde637a (patch) | |
tree | 9bdd5680f1c637d4784d65e86f1d36db3d25fa57 /tkmacosx/tkmacosx.h | |
parent | cb9e33194ac1e46254b34fb771aad72654190fd5 (diff) | |
download | blt-2b566481a1b8874e3b19dc63c68629274cde637a.zip blt-2b566481a1b8874e3b19dc63c68629274cde637a.tar.gz blt-2b566481a1b8874e3b19dc63c68629274cde637a.tar.bz2 |
translate from carbon to cocoa
Diffstat (limited to 'tkmacosx/tkmacosx.h')
-rw-r--r-- | tkmacosx/tkmacosx.h | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/tkmacosx/tkmacosx.h b/tkmacosx/tkmacosx.h index 83810dd..3c4d6a2 100644 --- a/tkmacosx/tkmacosx.h +++ b/tkmacosx/tkmacosx.h @@ -5,7 +5,7 @@ #ifndef __tkmacosx_h__ #define __tkmacosx_h__ -#include <tcl.h> +#include <tkMacOSXPrivate.h> #include <vector.h> @@ -13,13 +13,12 @@ class TkMacosx { private: Tcl_Interp* interp; - /* int showDialog; - - CGContextRef context; Matrix canvasToPage; + CGContextRef context; OSStatus status; + PMPageFormat pageFormat; PMPrintSettings printSettings; PMPrintSession printSession; @@ -29,19 +28,19 @@ class TkMacosx { int pmPrintEnd(); int pmPrintText(int, const char**); int pmPageSetup(); - */ + public: TkMacosx(Tcl_Interp*); ~TkMacosx(); - // int pm(int, const char**); + 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); @@ -60,7 +59,6 @@ class TkMacosx { void drawArc(float, float, float, float, float); void bitmapCreate(void*, int, int, float, float, float, float); - */ }; extern TkMacosx* tkmacosx; |