Carbon


Style Run Position Constants

Header: QuickdrawText.h

enum {
    onlyStyleRun = 0,
    leftStyleRun = 1,
    rightStyleRun = 2,
    middleStyleRun = 3,
    smOnlyStyleRun = 0,
    smLeftStyleRun = 1,
    smRightStyleRun = 2,
    smMiddleStyleRun = 3
};

Constant descriptions

onlyStyleRun

This is the only style run on the line.

leftStyleRun

This is the leftmost of multiple style runs on the line.

rightStyleRun

This is the rightmost of multiple style runs on the line

middleStyleRun

The line and this one is interior: neither leftmost nor rightmost.

smOnlyStyleRun
smLeftStyleRun
smRightStyleRun
smMiddleStyleRun

Use one of the following constants (defined as type JustStyleCode) in the styleRunPosition parameter for PortionLine, DrawJustified, MeasureJustified, CharToPixel, and PixelToChar.


© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)