summaryrefslogtreecommitdiffstats
path: root/generic/tkText.h
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2008-12-06 10:48:28 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2008-12-06 10:48:28 (GMT)
commitb418672b14828cc0a6fed41d86b7f3e5f1c88718 (patch)
tree7e161ef2a78eb2fc23ac4e1618b11c8ce8f7d26b /generic/tkText.h
parent95e6b52c79f8fe383fc4d5f50e4b19878a55dd86 (diff)
downloadtk-b418672b14828cc0a6fed41d86b7f3e5f1c88718.zip
tk-b418672b14828cc0a6fed41d86b7f3e5f1c88718.tar.gz
tk-b418672b14828cc0a6fed41d86b7f3e5f1c88718.tar.bz2
Implementation of TIP #197.
Diffstat (limited to 'generic/tkText.h')
-rw-r--r--generic/tkText.h18
1 files changed, 16 insertions, 2 deletions
diff --git a/generic/tkText.h b/generic/tkText.h
index eb650ea..0a97630 100644
--- a/generic/tkText.h
+++ b/generic/tkText.h
@@ -9,7 +9,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkText.h,v 1.35 2008/12/04 21:33:25 nijtmans Exp $
+ * RCS: @(#) $Id: tkText.h,v 1.36 2008/12/06 10:48:29 dkf Exp $
*/
#ifndef _TKTEXT
@@ -579,6 +579,17 @@ typedef struct TkSharedText {
} TkSharedText;
/*
+ * The following enum is used to define a type for the -insertunfocussed
+ * option of the Text widget.
+ */
+
+typedef enum {
+ TK_TEXT_INSERT_NOFOCUS_HOLLOW,
+ TK_TEXT_INSERT_NOFOCUS_NONE,
+ TK_TEXT_INSERT_NOFOCUS_SOLID
+} TkTextInsertUnfocussed;
+
+/*
* A data structure of the following type is kept for each text widget that
* currently exists for this process:
*/
@@ -710,7 +721,10 @@ typedef struct TkText {
Tk_3DBorder insertBorder; /* Used to draw vertical bar for insertion
* cursor. */
int insertWidth; /* Total width of insert cursor. */
- int insertBorderWidth; /* Width of 3-D border around insert cursor. */
+ int insertBorderWidth; /* Width of 3-D border around insert cursor */
+ TkTextInsertUnfocussed insertUnfocussed;
+ /* How to display the insert cursor when the
+ * text widget does not have the focus. */
int insertOnTime; /* Number of milliseconds cursor should spend
* in "on" state for each blink. */
int insertOffTime; /* Number of milliseconds cursor should spend