DekGenius.com
[ Team LiB ] Previous Section Next Section

NSTypesetter Mac OS X 10.0

This abstract class provides an interface to objects that NSLayoutManager uses to layout lines in a text container. The Application Kit implements a single concrete subclass of NSTypesetter in NSSimpleHorizontalTypesetter. For more information about Cocoa's text layout system, see Chapter 5.

figs/cocn_15113.gif

@interface NSTypesetter : NSObject
 // Class Methods
   + (NSTypesetterBehavior)defaultTypesetterBehavior;
   + (NSSize)printingAdjustmentInLayoutManager:(NSLayoutManager *)layoutMgr
        forNominallySpacedGlyphRange:(NSRange)nominallySpacedGlyphsRange
        packedGlyphs:(const unsigned char *)packedGlyphs  count:(unsigned)packedGlyphsCount;
   + (id)sharedSystemTypesetter;
   + (id)sharedSystemTypesetterForBehavior:(NSTypesetterBehavior)theBehavior;
 // Instance Methods
   - (float)baselineOffsetInLayoutManager:(NSLayoutManager *)layoutMgr glyphIndex:(unsigned)glyphIndex;
   - (void)layoutGlyphsInLayoutManager:(NSLayoutManager *)layoutManager
        startingAtGlyphIndex:(unsigned)startGlyphIndex maxNumberOfLineFragments:(unsigned)maxNumLines
        nextGlyphIndex:(unsigned *)nextGlyph;

Subclasses

NSSimpleHorizontalTypesetter

    [ Team LiB ] Previous Section Next Section