![]() |
ATSUTextInserted |
||||
Header: | ATSUnicode.h | Carbon status: | Supported | |
Indicates the location in physical memory of inserted text.
OSStatus ATSUTextInserted ( ATSUTextLayout iTextLayout, UniCharArrayOffset iInsertionLocation, UniCharCount iInsertionLength );
A reference to an initialized text layout object in which text has been inserted. You cannot pass NULL for this parameter.
The edge offset corresponding to the beginning of the inserted text. You may pass a value outside the range of text being operated on if the insertion occurs outside the range. To specify the beginning of the text buffer, pass the constant kATSUFromTextBeginning, described in
The length of the range of deleted text. If you want the length to extend to the end of the text buffer, pass the constant kATSUToTextEnd, described in
A result code.
The ATSUTextInserted function extends the style run containing the insertion point and the total length of the text range by the amount of the text insertion. If the insertion point is between two style runs, the first style run is extended to include the new text. ATSUTextInserted then updates drawing caches.
ATSUTextInserted does not insert style runs or line breaks; if you wish to do so, call the functions ATSUSetRunStyle and ATSUSetSoftLineBreak, respectively.
ATSUTextInserted does not change the memory location or the edge offset of the text. It shifts the text after the inserted text by the appropriate offset (iInsertionLocation +iInsertionLength).
You are responsible for making sure that the corresponding text is inserted into the text buffer.
Available beginning with ATSUI 1.0.
Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.5 or later.
© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)