summaryrefslogtreecommitdiffstats
path: root/generic/tkDecls.h
diff options
context:
space:
mode:
authorericm <ericm>2000-10-05 18:31:24 (GMT)
committerericm <ericm>2000-10-05 18:31:24 (GMT)
commit250f34d4aa82b5c5d86b64b06f8d50e532e3ec38 (patch)
tree79fe531fc886831c0e17508f151e45a8bc1e1fed /generic/tkDecls.h
parent3c249a7000fb9bacdda68774c89048bccb81d87a (diff)
downloadtk-250f34d4aa82b5c5d86b64b06f8d50e532e3ec38.zip
tk-250f34d4aa82b5c5d86b64b06f8d50e532e3ec38.tar.gz
tk-250f34d4aa82b5c5d86b64b06f8d50e532e3ec38.tar.bz2
* generic/tkCmds.c (Tk_WinfoObjCmd): Added check for
TK_ANONYMOUS_WINDOW flag in the [winfo children] subcommand; if set, the window will not be printed in the list of children. * doc/CrtWindow.3: Added entry for Tk_CreateAnonymousWindow. * generic/tkWindow.c (Tk_CreateAnonymousWindow): New API for creating anonymous windows. These windows are manipulable from C, but not from Tcl, because they have no pathname associated with them. They are used initially by widgets that do rubber-band resizing (panedwindow, multi-column listbox, etc.), and may be useful for other widgets as well (dropbox, combobox). (Tk_DestroyWindow): Added check for TK_ANONYMOUS_WINDOW flag when determining whether to generate a DestroyNotify event. * generic/tkStubInit.c: * generic/tkDecls.h: Regen'd from tk.decls. * generic/tk.decls: Added Tk_CreateAnonymousWindow declaration. * generic/tk.h: Added TK_ANONYMOUS_WINDOW flag for Tk_Window's.
Diffstat (limited to 'generic/tkDecls.h')
-rw-r--r--generic/tkDecls.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/generic/tkDecls.h b/generic/tkDecls.h
index edd169e..31f5808 100644
--- a/generic/tkDecls.h
+++ b/generic/tkDecls.h
@@ -8,7 +8,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkDecls.h,v 1.12 2000/06/03 08:58:15 hobbs Exp $
+ * RCS: @(#) $Id: tkDecls.h,v 1.13 2000/10/05 18:31:25 ericm Exp $
*/
#ifndef _TKDECLS
@@ -826,6 +826,10 @@ EXTERN void Tk_CreateClientMessageHandler _ANSI_ARGS_((
/* 240 */
EXTERN void Tk_DeleteClientMessageHandler _ANSI_ARGS_((
Tk_ClientMessageProc * proc));
+/* 241 */
+EXTERN Tk_Window Tk_CreateAnonymousWindow _ANSI_ARGS_((
+ Tcl_Interp * interp, Tk_Window parent,
+ char * screenName));
typedef struct TkStubHooks {
struct TkPlatStubs *tkPlatStubs;
@@ -1079,6 +1083,7 @@ typedef struct TkStubs {
int (*tk_PostscriptPhoto) _ANSI_ARGS_((Tcl_Interp * interp, Tk_PhotoImageBlock * blockPtr, Tk_PostscriptInfo psInfo, int width, int height)); /* 238 */
void (*tk_CreateClientMessageHandler) _ANSI_ARGS_((Tk_ClientMessageProc * proc)); /* 239 */
void (*tk_DeleteClientMessageHandler) _ANSI_ARGS_((Tk_ClientMessageProc * proc)); /* 240 */
+ Tk_Window (*tk_CreateAnonymousWindow) _ANSI_ARGS_((Tcl_Interp * interp, Tk_Window parent, char * screenName)); /* 241 */
} TkStubs;
#ifdef __cplusplus
@@ -2053,6 +2058,10 @@ extern TkStubs *tkStubsPtr;
#define Tk_DeleteClientMessageHandler \
(tkStubsPtr->tk_DeleteClientMessageHandler) /* 240 */
#endif
+#ifndef Tk_CreateAnonymousWindow
+#define Tk_CreateAnonymousWindow \
+ (tkStubsPtr->tk_CreateAnonymousWindow) /* 241 */
+#endif
#endif /* defined(USE_TK_STUBS) && !defined(USE_TK_STUB_PROCS) */