[pango/bilelmoussaoui/gi-annotations: 1/2] add missing since 1.50 annotations
- From: Bilal Elmoussaoui <bilelmoussaoui src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango/bilelmoussaoui/gi-annotations: 1/2] add missing since 1.50 annotations
- Date: Fri, 29 Oct 2021 07:23:00 +0000 (UTC)
commit 28b4e1576c166bb74e41b8f312d8e152588c0212
Author: Bilal Elmoussaoui <bil elmoussaoui gmail com>
Date: Fri Oct 29 07:55:03 2021 +0100
add missing since 1.50 annotations
pango/pango-attributes.c | 2 ++
pango/pango-attributes.h | 7 +++++++
pango/pango-layout.c | 6 ++++++
3 files changed, 15 insertions(+)
---
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)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]