[pango/line-breaker] layout-run: add docs
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango/line-breaker] layout-run: add docs
- Date: Mon, 24 Jan 2022 19:52:52 +0000 (UTC)
commit 2e3a63dccf9aacd831f26ce2ae92e6a68dbd566f
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Jan 24 14:41:52 2022 -0500
layout-run: add docs
pango/pango-layout-run.c | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
---
diff --git a/pango/pango-layout-run.c b/pango/pango-layout-run.c
index f17ca084..b9835445 100644
--- a/pango/pango-layout-run.c
+++ b/pango/pango-layout-run.c
@@ -6,12 +6,34 @@
#include <math.h>
+/**
+ * PangoLayoutRun:
+ *
+ * A `PangoLayoutRun` represents a single run within a `PangoLayoutLine`.
+ */
+
+/**
+ * pango_layout_run_get_item:
+ * @run: a `PangoLayoutRun`
+ *
+ * Gets the `PangoItem` for the run.
+ *
+ * Returns: (transfer none): the `PangoItem` of @run
+ */
PangoItem *
pango_layout_run_get_item (PangoLayoutRun *run)
{
return run->glyph_item.item;
}
+/**
+ * pango_layout_run_get_glyphs:
+ * @run: a `PangoLayoutRun`
+ *
+ * Gets the `PangoGlyphString` for the run.
+ *
+ * Returns: (transfer none): the `PangoGlyphString` of @run
+ */
PangoGlyphString *
pango_layout_run_get_glyphs (PangoLayoutRun *run)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]