Carbon


TXNGetContinuousTypeAttributes

Header: MacTextEditor.h Carbon status: Supported

Checks to see if the attributes of the current selection are continuous.

OSStatus TXNGetContinuousTypeAttributes (
    TXNObject iTxnObject, 
    TXNContinuousFlags *oContinuousFlags, 
    ItemCount ioCount, 
    TXNTypeAttributes ioTypeAttributes[]
);
Parameter descriptions
iTxnObject

A variable of type TXNObject.Pass the text object that contains the current selection.

oContinuousFlags

A pointer to a variable of type TXNContinousFlags. On return, a “Continuous Style Information Bits” value that specifies whether text attributes are continuous. If a particular bit is set and if your application has passed a tag value in a TXNTypeAttributes structure in the array that corresponds to the bit, then you should display a checkmark next to the appropriate menu item.

ioCount

A variable of type ItemCount. On return, this specifies the number of TXNTypeAttributes records in the ioTypeAttributes array.

ioTypeAttributes

An array of TXNTypeAttributes structures. The tag values in this array indicate the text attributes in which the application is interested. It can be NULL. If you are using ATSUI and you want to know the ATSUI font ID, the you should set the tag field to kATSUFontTag, which is a constant in ATSUnicode.h. If you are using ATSUI and you set the tag field to a QuickDraw font ID, then the QuickDraw font to which the ATSUI font maps is returned. Note that this is not always the same font since many ATSUI fonts are not supported by QuickDraw.

function result

A result code.

DISCUSSION

You can use this function to determine whether your application should display checkmarks in the Font, Style, Size, and Color menus. If these are the only attributes in which you are interested, you can use this function on systems that use QuickDraw or Apple Type Services for Unicode Imaging (ATSUI).

AVAILABILITY

Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.1 or later.


© 2000 Apple Computer, Inc. (Last Updated 7/17/2000)