[pango/more-test-coverage: 5/8] layout: Document default values




commit 5b987526b5e6780e565de647cc94820fc7c8d9d2
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Jul 5 22:43:35 2021 -0400

    layout: Document default values
    
    Since these are not properties, their default
    values aren't documented anywhere. Until now.

 pango/pango-layout.c | 8 ++++++++
 1 file changed, 8 insertions(+)
---
diff --git a/pango/pango-layout.c b/pango/pango-layout.c
index 93dcadbc..4634a64f 100644
--- a/pango/pango-layout.c
+++ b/pango/pango-layout.c
@@ -779,6 +779,8 @@ pango_layout_get_font_description (PangoLayout *layout)
  *
  * Note that this setting is not implemented and so is ignored in
  * Pango older than 1.18.
+ *
+ * The default value is %FALSE.
  */
 void
 pango_layout_set_justify (PangoLayout *layout,
@@ -880,6 +882,8 @@ pango_layout_get_auto_dir (PangoLayout *layout)
  *
  * Sets the alignment for the layout: how partial lines are
  * positioned within the horizontal space available.
+ *
+ * The default alignment is %PANGO_ALIGN_LEFT.
  */
 void
 pango_layout_set_alignment (PangoLayout   *layout,
@@ -975,6 +979,8 @@ pango_layout_get_tabs (PangoLayout *layout)
  * as paragraph separators; instead, keep all text in a single paragraph,
  * and display a glyph for paragraph separator characters. Used when
  * you want to allow editing of newlines on a single text line.
+ *
+ * The default value is %FALSE.
  */
 void
 pango_layout_set_single_paragraph_mode (PangoLayout *layout,
@@ -1027,6 +1033,8 @@ pango_layout_get_single_paragraph_mode (PangoLayout *layout)
  * each paragraph is ellipsized separately or the entire layout
  * is ellipsized as a whole depends on the set height of the layout.
  *
+ * The default value is %PANGO_ELLIPSIZE_NONE.
+ *
  * See [method@Pango.Layout.set_height] for details.
  *
  * Since: 1.6


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]