diff options
author | andreask <andreask> | 2012-10-09 17:40:09 (GMT) |
---|---|---|
committer | andreask <andreask> | 2012-10-09 17:40:09 (GMT) |
commit | 9f45999a7ce0b26eaa1d5a9dcdd94317b16392f8 (patch) | |
tree | e7d7ca3ac755154c0a47bc701649384a23c8fec9 /generic/tkIntPlatDecls.h | |
parent | 6f8d8caf039e1561659d4df6766d9b56428ccc94 (diff) | |
download | tk-9f45999a7ce0b26eaa1d5a9dcdd94317b16392f8.zip tk-9f45999a7ce0b26eaa1d5a9dcdd94317b16392f8.tar.gz tk-9f45999a7ce0b26eaa1d5a9dcdd94317b16392f8.tar.bz2 |
Cherrypick Merge, Backport of [6223d9e067]. Restored from
tk-cocoa-8-5-bacport-branch, did not survive the merge.
See trunk 2012-05-29 Donal K. Fellows
* generic/tkInt.decls (TkMacOSXDrawable): Added OSX-specific mechanism
to allow retrieval of the drawing surface. Allows Canvas3d to be
adapted to 8.6.
Diffstat (limited to 'generic/tkIntPlatDecls.h')
-rw-r--r-- | generic/tkIntPlatDecls.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/generic/tkIntPlatDecls.h b/generic/tkIntPlatDecls.h index 5418473..a181073 100644 --- a/generic/tkIntPlatDecls.h +++ b/generic/tkIntPlatDecls.h @@ -522,6 +522,11 @@ EXTERN void TkGenWMDestroyEvent(Tk_Window tkwin); /* 53 */ EXTERN unsigned long TkpGetMS(void); #endif +#ifndef TkMacOSXDrawable_TCL_DECLARED +#define TkMacOSXDrawable_TCL_DECLARED +/* 54 */ +EXTERN VOID * TkMacOSXDrawable(Drawable drawable); +#endif #endif /* AQUA */ #if !(defined(__WIN32__) || defined(__CYGWIN__) || defined(MAC_OSX_TK)) /* X11 */ #ifndef TkCreateXEventSource_TCL_DECLARED @@ -706,6 +711,7 @@ typedef struct TkIntPlatStubs { void (*tkGenWMDestroyEvent) (Tk_Window tkwin); /* 51 */ VOID *reserved52; unsigned long (*tkpGetMS) (void); /* 53 */ + VOID * (*tkMacOSXDrawable) (Drawable drawable); /* 54 */ #endif /* AQUA */ #if !(defined(__WIN32__) || defined(__CYGWIN__) || defined(MAC_OSX_TK)) /* X11 */ void (*tkCreateXEventSource) (void); /* 0 */ @@ -1115,6 +1121,10 @@ extern TkIntPlatStubs *tkIntPlatStubsPtr; #define TkpGetMS \ (tkIntPlatStubsPtr->tkpGetMS) /* 53 */ #endif +#ifndef TkMacOSXDrawable +#define TkMacOSXDrawable \ + (tkIntPlatStubsPtr->tkMacOSXDrawable) /* 54 */ +#endif #endif /* AQUA */ #if !(defined(__WIN32__) || defined(__CYGWIN__) || defined(MAC_OSX_TK)) /* X11 */ #ifndef TkCreateXEventSource |