![]() |
ScrpSTElement |
Header: TextEdit.h |
struct ScrpSTElement { SInt32 scrpStartChar; SInt16 scrpHeight; SInt16 scrpAscent; SInt16 scrpFont; Style scrpFace; SInt16 scrpSize; RGBColor scrpColor; RGBColor scrpColor; }; typedef ScrpSTElement ScrpSTTable;
The offset to the beginning of a style structure in the scrap.
The line height. You can determine the line height and the font ascent using the QuickDraw function GetFontInfo.
The font ascent. See scrpHeight.
The font family ID.
The character style (such as plain, bold, underline).
The size, in points.
The RGB (red, green, blue) color for the style scrap.
The style scrap structure contains the scrap style table. Unlike the main style table for an edit structure, the scrap style table may contain duplicate elements; the entries in the table correspond one-to-one with the style runs in the text. The scrpStartChar field of each entry gives the starting position for the run.
The scrpStyleTab data type defines the scrap style table data structure, which is an array of scrap style element structures. The ScrpSTElement data type defines each scrap style element structure.
© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)