From a5f946153cd24dc4a78ab0ad22372d0017fe724b Mon Sep 17 00:00:00 2001 From: treectrl Date: Mon, 13 Jun 2005 21:34:10 +0000 Subject: Added -textlayout debug option. Declared TextLayout_TotalWidth. --- generic/tkTreeCtrl.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- cgit v0.12