From fae7ac21d6bc9e2dfabae2dea75dee3465997f91 Mon Sep 17 00:00:00 2001 From: Matt Birkholz Date: Sun, 18 Mar 2018 23:07:08 -0700 Subject: [PATCH] pango: Document three procedures. --- src/pango/pango.texi | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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 -- 2.25.1