beetlebug▾
/

text dlineinfo

Gives the box of the display line of INDEX.

PATHNAME dlineinfo INDEX

Description

Gives five integers: the x and the y of the display line, its width, its height, and the distance from its top to its baseline. A line out of the view gives an empty list.

Returns

A list of five integers, or an empty list.

Examples

% text .dl
> .dl insert end hello
> pack .dl
> update
> llength [.dl dlineinfo 1.0]
5

Errors

% text .dl2; .dl2 dlineinfo bogus
bad text index "bogus"
-errorcode NONE

Facts

Capability
None.
Tcl release
Tcl 9.1 and 8.6.
Since
ztk 1.0.0-beta.1

See also