diff options
author | hobbs <hobbs> | 2000-01-06 02:18:54 (GMT) |
---|---|---|
committer | hobbs <hobbs> | 2000-01-06 02:18:54 (GMT) |
commit | 0bcb96bc6cddb09417aaa0ca4ad48469d0194255 (patch) | |
tree | 30b59fdcebfe145f313d150bf31fb58700da5e51 /generic/tkText.h | |
parent | 099514fd0cbd6126e4515620fe46382607c8755d (diff) | |
download | tk-0bcb96bc6cddb09417aaa0ca4ad48469d0194255.zip tk-0bcb96bc6cddb09417aaa0ca4ad48469d0194255.tar.gz tk-0bcb96bc6cddb09417aaa0ca4ad48469d0194255.tar.bz2 |
* doc/text.n:
* generic/tkText.c:
* generic/tkText.h:
* generic/tkTextBTree.c:
* generic/tkTextDisp.c:
* generic/tkTextTag.c: removed the -state option for text tags,
and reoriented it around -elide, as -state disabled was never
implemented, and -state hidden is better as -elide.
Diffstat (limited to 'generic/tkText.h')
-rw-r--r-- | generic/tkText.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/generic/tkText.h b/generic/tkText.h index bec8ef7..f89c18f 100644 --- a/generic/tkText.h +++ b/generic/tkText.h @@ -10,7 +10,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.6 1999/12/14 06:52:32 hobbs Exp $ + * RCS: @(#) $Id: tkText.h,v 1.7 2000/01/06 02:18:58 hobbs Exp $ */ #ifndef _TKTEXT @@ -382,11 +382,13 @@ typedef struct TkTextTag { * TEXT_WRAPMODE_NONE, TEXT_WRAPMODE_WORD, * or TEXT_WRAPMODE_NULL to use wrapmode for * whole widget. */ + char *elideString; /* -elide option string (malloc-ed). + * NULL means option not specified. */ + int elide; /* Non-zero means that data under this tag + * should not be displayed. */ int affectsDisplay; /* Non-zero means that this tag affects the * way information is displayed on the screen * (so need to redisplay if tag changes). */ - int state; /* Must be STATE_NULL, STATE_NORMAL, - * STATE_HIDDEN or STATE_DISABLED. */ } TkTextTag; #define TK_TAG_AFFECTS_DISPLAY 0x1 @@ -484,8 +486,8 @@ typedef struct TkText { * image segment doesn't yet have an * associated image, there is no entry for * it here. */ - int state; /* Either STATE_NORMAL or STATE_DISABLED. A text - * widget is read-only when disabled. */ + int state; /* Either STATE_NORMAL or STATE_DISABLED. A + * text widget is read-only when disabled. */ /* * Default information for displaying (may be overridden by tags @@ -820,7 +822,7 @@ EXTERN void TkTextLostSelection _ANSI_ARGS_(( EXTERN TkTextIndex * TkTextMakeCharIndex _ANSI_ARGS_((TkTextBTree tree, int lineIndex, int charIndex, TkTextIndex *indexPtr)); -extern int TkTextIsElided _ANSI_ARGS_((TkText *textPtr, +EXTERN int TkTextIsElided _ANSI_ARGS_((TkText *textPtr, TkTextIndex *indexPtr)); EXTERN TkTextIndex * TkTextMakeByteIndex _ANSI_ARGS_((TkTextBTree tree, int lineIndex, int byteIndex, |