Carbon


Cursor Movement Constants

Header: ATSUnicode.h

enum {
    kATSUByCharacter = 0,
    kATSUByCluster = 1,
    kATSUByWord = 2
};

Constant descriptions

kATSUByCharacter

Indicates that the cursor has been moved 2 bytes (a Unicode character).

kATSUByCluster

Indicates that the cursor has been moved by a cluster, as defined by Unicode. A group of characters is a cluster based both on the static properties of the characters involved (defined by the Unicode consortium) and the behavior of the specific font you are using with those characters.

kATSUByWord

Indicates that the cursor has been moved by a word, as defined by Unicode. A word does not include trailing punctuation or white space.

You can pass a constant of type ATSUCursorMovementType to the functions ATSUNextCursorPosition, ATSUPreviousCursorPosition, ATSURightwardCursorPosition, and ATSULeftwardCursorPosition to represent the unit distance that the cursor has moved. These functions use this information to calculate the edge offset in backing store memory that corresponds to the resulting cursor position.

VERSION NOTES

Available beginning with ATSUI 1.0.


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