From c24a05b7b7c3d52f89471bee4d7bcd62c5cdb0d0 Mon Sep 17 00:00:00 2001 From: FredKiefer Date: Sat, 30 Sep 2000 23:06:55 +0000 Subject: [PATCH] *** empty log message *** git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7669 72102866-910b-0410-8b05-ffd578937521 --- Headers/gnustep/gui/NSLayoutManager.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Headers/gnustep/gui/NSLayoutManager.h b/Headers/gnustep/gui/NSLayoutManager.h index 8a1f36be6..d83d87cea 100644 --- a/Headers/gnustep/gui/NSLayoutManager.h +++ b/Headers/gnustep/gui/NSLayoutManager.h @@ -360,7 +360,9 @@ typedef enum { - (NSRange)glyphRangeForBoundingRectWithoutAdditionalLayout:(NSRect)bounds inTextContainer:(NSTextContainer *)container; // Returns the minimum contiguous glyph range that would need to be displayed in order to draw all glyphs that fall (even partially) within the bounding rect given. This range might include glyphs which do not fall into the rect at all. At most this will return the glyph range for the whole container. The "WithoutFillingHoles" variant will not generate glyphs or perform layout in attempting to answer, and, thus, will potentially not be totally correct. -- (unsigned)glyphIndexForPoint:(NSPoint)point inTextContainer:(NSTextContainer *)container fractionOfDistanceThroughGlyph:(float *)partialFraction; +- (unsigned)glyphIndexForPoint:(NSPoint)aPoint inTextContainer:(NSTextContainer *)aTextContainer; +- (unsigned)glyphIndexForPoint:(NSPoint)point inTextContainer:(NSTextContainer *)container +fractionOfDistanceThroughGlyph:(float *)partialFraction; // Returns the index of the glyph which under the given point which is expressed in the given container's coordinate system. If no glyph is under the point the "nearest" glyph is returned where "nearest" is defined in such a way that selection works like it should. See the implementation for details. partialFraction, if provided, is set to the fraction of the distance between the location of the glyph returned and the location of the next glyph that the point is at. - (void)getFirstUnlaidCharacterIndex:(unsigned *)charIndex glyphIndex:(unsigned *)glyphIndex;