summaryrefslogtreecommitdiffstats
path: root/generic/tkBusy.h
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2008-10-20 10:50:19 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2008-10-20 10:50:19 (GMT)
commite22830e4296c8c9c66fb6e418ad2a342487be067 (patch)
tree35439ac73f67ad9d18e5a61161369ff8be93536c /generic/tkBusy.h
parent3d6048e3a6c1b341b08822f0bff656e19f591b72 (diff)
downloadtk-e22830e4296c8c9c66fb6e418ad2a342487be067.zip
tk-e22830e4296c8c9c66fb6e418ad2a342487be067.tar.gz
tk-e22830e4296c8c9c66fb6e418ad2a342487be067.tar.bz2
Factor out the platform-specific bits of [tk busy]. [Bug 2180919]
Diffstat (limited to 'generic/tkBusy.h')
-rw-r--r--generic/tkBusy.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/generic/tkBusy.h b/generic/tkBusy.h
new file mode 100644
index 0000000..5014ebe
--- /dev/null
+++ b/generic/tkBusy.h
@@ -0,0 +1,43 @@
+/*
+ * tkBusy.h --
+ *
+ * This file defines the type of the structure describing a busy window.
+ *
+ * Copyright 1993-1998 Lucent Technologies, Inc.
+ *
+ * The "busy" command was created by George Howlett. Adapted for
+ * integration into Tk by Jos Decoster and Donal K. Fellows.
+ *
+ * See the file "license.terms" for information on usage and redistribution of
+ * this file, and for a DISCLAIMER OF ALL WARRANTIES.
+ *
+ * RCS: @(#) $Id: tkBusy.h,v 1.1 2008/10/20 10:50:20 dkf Exp $
+ */
+
+typedef struct Busy {
+ Display *display; /* Display of busy window */
+ Tcl_Interp *interp; /* Interpreter where "busy" command was
+ * created. It's used to key the searches in
+ * the window hierarchy. See the "windows"
+ * command. */
+ Tk_Window tkBusy; /* Busy window: Transparent window used to
+ * block delivery of events to windows
+ * underneath it. */
+ Tk_Window tkParent; /* Parent window of the busy window. It may be
+ * the reference window (if the reference is a
+ * toplevel) or a mutual ancestor of the
+ * reference window */
+ Tk_Window tkRef; /* Reference window of the busy window. It is
+ * used to manage the size and position of the
+ * busy window. */
+ int x, y; /* Position of the reference window */
+ int width, height; /* Size of the reference window. Retained to
+ * know if the reference window has been
+ * reconfigured to a new size. */
+ int menuBar; /* Menu bar flag. */
+ Tk_Cursor cursor; /* Cursor for the busy window. */
+ Tcl_HashEntry *hashPtr; /* Used the delete the busy window entry out
+ * of the global hash table. */
+ Tcl_HashTable *tablePtr;
+ Tk_OptionTable optionTable;
+} Busy;