diff options
author | treectrl <treectrl> | 2005-06-13 21:34:10 (GMT) |
---|---|---|
committer | treectrl <treectrl> | 2005-06-13 21:34:10 (GMT) |
commit | a5f946153cd24dc4a78ab0ad22372d0017fe724b (patch) | |
tree | 7eb53b381da23d8005c6f3a15a38207196eaa03c /generic/tkTreeCtrl.h | |
parent | 5287c49373b4e03c2d83ed89149bce0a4ef70dca (diff) | |
download | tktreectrl-a5f946153cd24dc4a78ab0ad22372d0017fe724b.zip tktreectrl-a5f946153cd24dc4a78ab0ad22372d0017fe724b.tar.gz tktreectrl-a5f946153cd24dc4a78ab0ad22372d0017fe724b.tar.bz2 |
Added -textlayout debug option.
Declared TextLayout_TotalWidth.
Diffstat (limited to 'generic/tkTreeCtrl.h')
-rw-r--r-- | generic/tkTreeCtrl.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/generic/tkTreeCtrl.h b/generic/tkTreeCtrl.h index 5a38127..2cf6e65 100644 --- a/generic/tkTreeCtrl.h +++ b/generic/tkTreeCtrl.h @@ -7,7 +7,7 @@ * Copyright (c) 2002-2003 Christian Krone * Copyright (c) 2003 ActiveState Corporation * - * RCS: @(#) $Id: tkTreeCtrl.h,v 1.34 2005/06/06 03:25:54 treectrl Exp $ + * RCS: @(#) $Id: tkTreeCtrl.h,v 1.35 2005/06/13 21:34:10 treectrl Exp $ */ #include "tkPort.h" @@ -97,6 +97,7 @@ struct TreeCtrlDebug int enable; /* Turn all debugging on/off */ int data; /* Debug data structures */ int display; /* Debug display routines */ + int textLayout; /* Debug text layout */ int displayDelay; /* Delay between copy/draw operations */ XColor *eraseColor; /* Erase "invalidated" areas */ GC gcErase; /* for eraseColor */ @@ -650,6 +651,7 @@ extern TextLayout TextLayout_Compute(Tk_Font tkfont, CONST char *string, int numChars, int wrapLength, Tk_Justify justify, int maxLines, int flags); extern void TextLayout_Free(TextLayout textLayout); extern void TextLayout_Size(TextLayout textLayout, int *widthPtr, int *heightPtr); +extern int TextLayout_TotalWidth(TextLayout textLayout); extern void TextLayout_Draw(Display *display, Drawable drawable, GC gc, TextLayout layout, int x, int y, int firstChar, int lastChar); #ifdef MAC_OSX_TK |