summaryrefslogtreecommitdiffstats
path: root/generic/tkText.h
diff options
context:
space:
mode:
authordonal.k.fellows@manchester.ac.uk <dkf>2008-12-06 10:48:28 (GMT)
committerdonal.k.fellows@manchester.ac.uk <dkf>2008-12-06 10:48:28 (GMT)
commitad0c70857c411d5b0df9ac795d766a1b31522107 (patch)
tree7e161ef2a78eb2fc23ac4e1618b11c8ce8f7d26b /generic/tkText.h
parent9cc5453ee784f113cc5dfad4075f0ffbe61b4838 (diff)
downloadtk-ad0c70857c411d5b0df9ac795d766a1b31522107.zip
tk-ad0c70857c411d5b0df9ac795d766a1b31522107.tar.gz
tk-ad0c70857c411d5b0df9ac795d766a1b31522107.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