get_range_extents


Description:

public Rect get_range_extents (int start_offset, int end_offset, CoordType type) throws Error

Gets the bounding box for text within a range in an Text object.

The returned values are meaningful only if the Text has both STATE_VISIBLE and STATE_SHOWING.

Parameters:

this

a pointer to the Text object on which to operate.

start_offset

a int indicating the offset of the first text character for whom boundary information is requested.

end_offset

a int indicating the offset of the text character after the last character for whom boundary information is requested.

type

an CoordType indicating the coordinate system to use for the returned values.

Returns:

An Rect giving the position and size of the specified range of text.