Carbon


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;

Field descriptions

scrpStartChar

The offset to the beginning of a style structure in the scrap.

scrpHeight

The line height. You can determine the line height and the font ascent using the QuickDraw function GetFontInfo.

scrpAscent

The font ascent. See scrpHeight.

scrpFont

The font family ID.

scrpFace

The character style (such as plain, bold, underline).

scrpSize

The size, in points.

scrpColor

The RGB (red, green, blue) color for the style scrap.

scrpColor

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)