summaryrefslogtreecommitdiffstats
path: root/generic/tk.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/tk.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/tk.h')
-rw-r--r--generic/tk.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/generic/tk.h b/generic/tk.h
index e372b3c..206c864 100644
--- a/generic/tk.h
+++ b/generic/tk.h
@@ -12,7 +12,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tk.h,v 1.51 2000/09/29 17:55:31 ericm Exp $
+ * RCS: @(#) $Id: tk.h,v 1.52 2000/10/05 18:31:25 ericm Exp $
*/
#ifndef _TK
@@ -783,6 +783,8 @@ typedef struct Tk_FakeWin {
* concerned it isn't a child of its Tk
* parent. Initially this is used only for
* special Unix menubar windows.
+ * TK_ANONYMOUS_WINDOW: 1 means that this window has no name, and is
+ * thus not accessible from Tk.
*/
@@ -800,6 +802,7 @@ typedef struct Tk_FakeWin {
#define TK_DEFER_MODAL 0x800
#define TK_WRAPPER 0x1000
#define TK_REPARENTED 0x2000
+#define TK_ANONYMOUS_WINDOW 0x4000
/*
*--------------------------------------------------------------