Package: gdk
Function gdk-pango-layout-clip-region
Lambda Listgdk-pango-layout-clip-region (layout x-origin y-origin ranges) ArgumentsReturn ValueA cairo-region-t clip region containing the given ranges. Details
Obtains a clip region which contains the areas where the given ranges of
text would be drawn. The argumentes x-origin and y-origin are the top left point to center the layout. The ranges list should contain ranges of bytes in
the layout's text. Note that the regions returned correspond to logical extents of the text ranges, not ink extents. So the drawn layout may in fact touch areas out of the clip region. The clip region is mainly useful for highlightling parts of text, such as when text is selected. | See also |
2021-4-5