x.origin
and y.origin
are the same position
you would pass to gdkDrawLayoutLine
. index.ranges
should contain
ranges of bytes in the layout's text.gdkPangoLayoutGetClipRegion(layout, x.origin, index.ranges)
layout
x.origin
index.ranges
GdkRegion
] a clip region containing the given ranges