Carbon


TXNGetViewRect

Header: MacTextEditor.h Carbon status: Supported

Gets the rectangle that describes the current view of the document.

void TXNGetViewRect (
    TXNObject iTXNObject, 
    Rect *oViewRect
);
Parameter descriptions
iTXNObject

A variable of type TXNObject. Pass the text object for the current text area.

oViewRect

A pointer to a rectangle. On return, oViewRect describes the view of the document. If “Frame Option Masks” are set to manage scroll bars, the oViewRect parameter describes an area that encloses the scroll bars. The coordinates of this rectangle are local to the window.

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)