DekGenius.com
[ Team LiB ] Previous Section Next Section

NSSimpleHorizontalTypesetter Mac OS X 10.0

This concrete subclass of NSTypesetter supports left-to-right line layout. This class handles such things as hyphenation, word wrapping, and line-breaking. For more information about Cocoa's text layout engine, see Chapter 5.

figs/cocn_1586.gif

@interface NSSimpleHorizontalTypesetter : NSTypesetter
 // Class Methods
   + (id)sharedInstance;
 // Instance Methods
   - (void)willSetLineFragmentRect:(NSRect *)aRect forGlyphRange:(NSRange)aRange usedRect:(NSRect *)bRect;
   - (NSTypesetterGlyphInfo *)baseOfTypesetterGlyphInfo;
   - (void)breakLineAtIndex:(unsigned)location;
   - (unsigned)capacityOfTypesetterGlyphInfo;
   - (void)clearAttributesCache;
   - (void)clearGlyphCache;
   - (NSTextContainer *)currentContainer;
   - (NSLayoutManager *)currentLayoutManager;
   - (NSParagraphStyle *)currentParagraphStyle;
   - (NSTextStorage *)currentTextStorage;
   - (void)fillAttributesCache;
   - (unsigned)firstGlyphIndexOfCurrentLineFragment;
   - (void)fullJustifyLineAtGlyphIndex:(unsigned)glyphIndexForLineBreak;
   - (unsigned)glyphIndexToBreakLineByHyphenatingWordAtIndex:(unsigned)charIndex;
   - (unsigned)glyphIndexToBreakLineByWordWrappingAtIndex:(unsigned)charIndex;
   - (unsigned)growGlyphCaches:(unsigned)desiredCapacity fillGlyphInfo:(BOOL)fillGlyphInfo;
   - (void)insertGlyph:(NSGlyph)glyph atGlyphIndex:(unsigned)glyphIndex characterIndex:(unsigned)charIndex;
   - (NSLayoutStatus)layoutControlGlyphForLineFragment:(NSRect)lineFrag;
   - (NSLayoutStatus)layoutControlGlyphForLineFragment:(NSRect)lineFrag;
   - (NSLayoutStatus)layoutGlyphsInHorizontalLineFragment:(NSRect *)lineFragmentRect baseline:(float *)baseline;
   - (void)layoutGlyphsInLayoutManager:(NSLayoutManager *)layoutManager
        startingAtGlyphIndex:(unsigned)startGlyphIndex maxNumberOfLineFragments:(unsigned)maxNumLines
        nextGlyphIndex:(unsigned *)nextGlyph;
   - (void)layoutTab;
   - (void)layoutTab;
   - (unsigned)sizeOfTypesetterGlyphInfo;
   - (void)typesetterLaidOneGlyph:(NSTypesetterGlyphInfo *)gl;
   - (void)updateCurGlyphOffset;

    [ Team LiB ] Previous Section Next Section