bbox

(#<widget> 'bbox index)
Returns a list of four numbers describing the bounding box of the text in the element given by index.

The first two elements of the list give the x and y coordinates of the upper-left corner of the screen area covered by the text (specified in pixels relative to the widget) and the last two elements give the width and height of the area, in pixels.

If no part of the element given by index is visible on the screen, or if index refers to a non-existent element, then the result is an empty string; if the element is partially visible, the result gives the full area of the element, including any parts that are not visible.


© Author | Home | Sitemap