summaryrefslogtreecommitdiffstats
path: root/generic/tkPlatDecls.h
diff options
context:
space:
mode:
authormarc_culler <marc.culler@gmail.com>2020-09-01 19:08:16 (GMT)
committermarc_culler <marc.culler@gmail.com>2020-09-01 19:08:16 (GMT)
commit68904d092e3c143f9fea26a59781dca0baabad9c (patch)
tree91bfab7c2bef38dd6557aff4dc34029864b3e3f7 /generic/tkPlatDecls.h
parent80de0712f1991eb5ccfad6527e751318e3036881 (diff)
parentcd0daf6b28c452b2b473b1a0064b2c95634abe59 (diff)
downloadtk-68904d092e3c143f9fea26a59781dca0baabad9c.zip
tk-68904d092e3c143f9fea26a59781dca0baabad9c.tar.gz
tk-68904d092e3c143f9fea26a59781dca0baabad9c.tar.bz2
Rename 3 badly named functions that were exported as stubs; export under both old and new names; edit comments.
Diffstat (limited to 'generic/tkPlatDecls.h')
-rw-r--r--generic/tkPlatDecls.h16
1 files changed, 10 insertions, 6 deletions
diff --git a/generic/tkPlatDecls.h b/generic/tkPlatDecls.h
index 7bf3d7e..b753237 100644
--- a/generic/tkPlatDecls.h
+++ b/generic/tkPlatDecls.h
@@ -86,8 +86,10 @@ EXTERN int Tk_MacOSXIsAppInFront(void);
EXTERN Tk_Window Tk_MacOSXGetTkWindow(void *w);
/* 12 */
EXTERN void * Tk_MacOSXGetCGContextForDrawable(Drawable drawable);
-/* Slot 13 is reserved */
-/* Slot 14 is reserved */
+/* 13 */
+EXTERN void * Tk_MacOSXGetNSViewForDrawable(Drawable drawable);
+/* 14 */
+EXTERN void * Tk_MacOSXGetNSWindowForDrawable(Drawable drawable);
/* Slot 15 is reserved */
/* 16 */
EXTERN void TkGenWMConfigureEvent_(Tk_Window tkwin, int x, int y,
@@ -120,8 +122,8 @@ typedef struct TkPlatStubs {
int (*tk_MacOSXIsAppInFront) (void); /* 10 */
Tk_Window (*tk_MacOSXGetTkWindow) (void *w); /* 11 */
void * (*tk_MacOSXGetCGContextForDrawable) (Drawable drawable); /* 12 */
- void (*reserved13)(void);
- void (*reserved14)(void);
+ void * (*tk_MacOSXGetNSViewForDrawable) (Drawable drawable); /* 13 */
+ void * (*tk_MacOSXGetNSWindowForDrawable) (Drawable drawable); /* 14 */
void (*reserved15)(void);
void (*tkGenWMConfigureEvent_) (Tk_Window tkwin, int x, int y, int width, int height, int flags); /* 16 */
#endif /* AQUA */
@@ -180,8 +182,10 @@ extern const TkPlatStubs *tkPlatStubsPtr;
(tkPlatStubsPtr->tk_MacOSXGetTkWindow) /* 11 */
#define Tk_MacOSXGetCGContextForDrawable \
(tkPlatStubsPtr->tk_MacOSXGetCGContextForDrawable) /* 12 */
-/* Slot 13 is reserved */
-/* Slot 14 is reserved */
+#define Tk_MacOSXGetNSViewForDrawable \
+ (tkPlatStubsPtr->tk_MacOSXGetNSViewForDrawable) /* 13 */
+#define Tk_MacOSXGetNSWindowForDrawable \
+ (tkPlatStubsPtr->tk_MacOSXGetNSWindowForDrawable) /* 14 */
/* Slot 15 is reserved */
#define TkGenWMConfigureEvent_ \
(tkPlatStubsPtr->tkGenWMConfigureEvent_) /* 16 */