Carbon


Current Pen Location and Clear All Constants

Header: ATSUnicode.h

enum {
    kATSUUseGrafPortPenLoc = -1,
    kATSUClearAll = -1
};

Constant descriptions

kATSUUseGrafPortPenLoc

Indicates that drawing, measuring, or hit-testing should be done relative to the current pen location in the current graphics port. ATSUI looks at the current graphics port location (it knows the last draw location from moves and lineto calls) and uses that.

kATSUClearAll

Removes all previously set values from a style object, a single line, or a text layout object.

You can pass the kATSUUseGrafPortPenLoc constant to functions that operate on text layout objects to indicate that drawing, measuring, or hit-testing should be done relative to the current pen location in the current graphics port.

You can pass the kATSUClearAll constant to the following functions to remove previously set values from a style object: to ATSUClearAttributes to remove style run attributes, to ATSUClearFontFeatures to remove font features, and to ATSUClearFontVariations to remove font variations.

You can also use the kATSUClearAll constant to remove previously set text layout attributes: to ATSUClearLineControls, to remove text layout attributes from a single line of a text layout object, and to ATSUClearLayoutControls to remove text layout attributes from every line in a text layout object.

VERSION NOTES

Available beginning with ATSUI 1.0.


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