summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBilal Elmoussaoui <bil.elmoussaoui@gmail.com>2021-10-29 07:55:03 +0100
committerBilal Elmoussaoui <bil.elmoussaoui@gmail.com>2021-10-29 08:22:52 +0100
commit28b4e1576c166bb74e41b8f312d8e152588c0212 (patch)
treeaaa1c299c92137ff54c018bb5d4b7623361a0c5f
parent522101fa2b3dd6a950f1bd289fcca51fd7de8833 (diff)
downloadpango-28b4e1576c166bb74e41b8f312d8e152588c0212.tar.gz
add missing since 1.50 annotations
-rw-r--r--pango/pango-attributes.c2
-rw-r--r--pango/pango-attributes.h7
-rw-r--r--pango/pango-layout.c6
3 files changed, 15 insertions, 0 deletions
diff --git a/pango/pango-attributes.c b/pango/pango-attributes.c
index a87c661e..c929a3d5 100644
--- a/pango/pango-attributes.c
+++ b/pango/pango-attributes.c
@@ -1644,6 +1644,8 @@ pango_attribute_as_float (PangoAttribute *attr)
*
* Returns: (nullable) (transfer none): The attribute as `PangoAttrString`,
* or %NULL if it's not a string attribute
+ *
+ * Since: 1.50
*/
PangoAttrString *
pango_attribute_as_string (PangoAttribute *attr)
diff --git a/pango/pango-attributes.h b/pango/pango-attributes.h
index 59183a60..982987f8 100644
--- a/pango/pango-attributes.h
+++ b/pango/pango-attributes.h
@@ -247,6 +247,13 @@ typedef enum {
PANGO_BASELINE_SHIFT_SUBSCRIPT,
} PangoBaselineShift;
+/**
+ * PangoFontScale:
+ * @PANGO_FONT_SCALE_SUPERSCRIPT:
+ * @PANGO_FONT_SCALE_SUBSCRIPT:
+ *
+ * Since: 1.50
+ */
typedef enum {
PANGO_FONT_SCALE_NONE,
PANGO_FONT_SCALE_SUPERSCRIPT,
diff --git a/pango/pango-layout.c b/pango/pango-layout.c
index 6e761f2c..f91b91d3 100644
--- a/pango/pango-layout.c
+++ b/pango/pango-layout.c
@@ -7509,6 +7509,12 @@ pango_layout_iter_get_baseline (PangoLayoutIter *iter)
return iter->line_extents[iter->line_index].baseline;
}
+/**
+ * pango_layout_iter_get_run_baseline
+ * @iter: a `PangoLayoutIter`
+ *
+ * Since: 1.50
+ */
int
pango_layout_iter_get_run_baseline (PangoLayoutIter *iter)
{