summaryrefslogtreecommitdiffstats
path: root/generic/tkText.h
diff options
context:
space:
mode:
authordkf <dkf@noemail.net>2008-12-06 10:48:27 (GMT)
committerdkf <dkf@noemail.net>2008-12-06 10:48:27 (GMT)
commit4f0eac38b8a8dc3e5f08a29f06783c9386590f6d (patch)
tree7e161ef2a78eb2fc23ac4e1618b11c8ce8f7d26b /generic/tkText.h
parent821b68e9a8b9be6dd5bfdbe110c911c174d61b4f (diff)
downloadtk-4f0eac38b8a8dc3e5f08a29f06783c9386590f6d.zip
tk-4f0eac38b8a8dc3e5f08a29f06783c9386590f6d.tar.gz
tk-4f0eac38b8a8dc3e5f08a29f06783c9386590f6d.tar.bz2
Implementation of TIP #197.
FossilOrigin-Name: f5b1e7040ddddd4220f0b534e088e6fc876f3652
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