![]() |
ATSUCaret |
Header: ATSUnicode.h |
struct ATSUCaret { Fixed fX; Fixed fY; Fixed fDeltaX; Fixed fDeltaY; };
Represents the x-coordinate of the carets starting pen position relative to the position of the origin of the line in the current graphics port in which the hit occurred.
Represents the y-coordinate of the carets starting pen position relative to the position of the origin of the line in the current graphics port in which the hit occurred.
Represents the x-coordinate of the carets ending pen position relative to the position of the origin of the line in the current graphics port in which the hit occurred. This position takes into account line rotation. You do not have to rotate it yourself.
Represents the y-coordinate of the carets ending pen position relative to the position of the origin of the line in the current graphics port in which the hit occurred. This position takes into account line rotation. You do not have to rotate it yourself.
The ATSUCaret type represents a structure containing the coordinates of the caret that corresponds to an edge offset. The function ATSUOffsetToPosition passes back two structures of type ATSUCaret to represent the caret position(s), relative to the origin of the line in the current graphics port, corresponding to a specified edge offset. If the edge offset is at a line boundary, the structure passed back in oMainCaret contains the starting and ending pen locations of the high caret, while oSecondCaret contains the low caret. If the offset is not at a line boundary, both parameters contain the same structure. This structure contains the starting and ending pen locations of the main caret.
Available beginning with ATSUI 1.0.
© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)