From: Matt Birkholz Date: Mon, 19 Mar 2018 06:07:08 +0000 (-0700) Subject: pango: Document three procedures. X-Git-Tag: mit-scheme-pucked-x11-0.2.2~10 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=fae7ac21d6bc9e2dfabae2dea75dee3465997f91;p=mit-scheme.git pango: Document three procedures. --- diff --git a/src/pango/pango.texi b/src/pango/pango.texi index cd25a648b..2d496bfe2 100644 --- a/src/pango/pango.texi +++ b/src/pango/pango.texi @@ -104,6 +104,10 @@ do so automatically, after the representative is garbage collected. A direct subclass of gobject representing a reference to a PangoLayout. @end deffn +@deffn Procedure guarantee-pango-layout object operator +Type guarantor. +@end deffn + @deffn Procedure pango-layout-get-context layout The layout's context, a PangoContext alien. @end deffn @@ -275,6 +279,11 @@ One of @code{natural}, @code{strong}, @code{line}. @end deffn +@deffn Procedure pango-layout-get-baseline layout +The y position (in pixels, not pangos) of the baseline of the first +line in @var{layout}. +@end deffn + @deffn Procedure pango-layout-get-pixel-extents layout receiver Applies @var{receiver} to @var{layout}'s width and height. @end deffn @@ -285,6 +294,13 @@ upper-left corner of @var{layout}) and the width and height of the character at @var{index}. @end deffn +@deffn Procedure pango-layout-xy-to-index layout x y +Returns the byte index of the character at position (@var{x}, @var{y}) +within @var{layout}. @var{X} and @var{y} should be given in pixels +relative to the top left of the layout. Returns @code{#f} if @var{x} +or @var{y} are not inside @var{layout}. +@end deffn + @anchor{pango-font-description-from-string} @deffn Procedure pango-font-description-from-string string A new PangoFontDescription alien. If it is garbage collected, the