diff options
author | Matthias Clasen <mclasen@redhat.com> | 2022-02-07 00:55:04 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2022-02-13 14:28:05 -0600 |
commit | 3f20d1b8ea1730f0ca6ffeb66b1fc462965a877b (patch) | |
tree | f768533187e389a01a7cdfc36f3936147047a588 /pango/pango-attributes.h | |
parent | 16b209a5e8abdc2dfed469f043498bf954efd7e0 (diff) | |
download | pango-3f20d1b8ea1730f0ca6ffeb66b1fc462965a877b.tar.gz |
Rename PangoUnderline to PangoLineStyle
Diffstat (limited to 'pango/pango-attributes.h')
-rw-r--r-- | pango/pango-attributes.h | 34 |
1 files changed, 14 insertions, 20 deletions
diff --git a/pango/pango-attributes.h b/pango/pango-attributes.h index dc276024..bf309c08 100644 --- a/pango/pango-attributes.h +++ b/pango/pango-attributes.h @@ -143,31 +143,25 @@ PANGO_AVAILABLE_IN_ALL PangoAttribute * pango_attr_font_desc_new (const PangoFontDescription *desc); /** - * PangoUnderline: - * @PANGO_UNDERLINE_NONE: no underline should be drawn - * @PANGO_UNDERLINE_SINGLE: a single underline should be drawn - * @PANGO_UNDERLINE_DOUBLE: a double underline should be drawn - * @PANGO_UNDERLINE_ERROR: an underline indicating an error should - * be drawn below. The exact style of rendering is up to the - * `PangoRenderer` in use, but typical styles include wavy - * or dotted lines. - * This underline is typically used to indicate an error such - * as a possible mispelling; in some cases a contrasting color - * may automatically be used. This type of underlining is - * available since Pango 1.4. + * PangoLineStyle: + * @PANGO_LINE_STYLE_NONE: no line should be drawn + * @PANGO_LINE_STYLE_SINGLE: a single line should be drawn + * @PANGO_LINE_STYLE_DOUBLE: a double line should be drawn + * @PANGO_LINE_STYLE_DOTTED: an dotted line should be drawn * - * The `PangoUnderline` enumeration is used to specify whether text - * should be underlined, and if so, the type of underlining. + * The `PangoLineStyle` enumeration is used to specify how + * lines should be drawn. */ typedef enum { - PANGO_UNDERLINE_NONE, - PANGO_UNDERLINE_SINGLE, - PANGO_UNDERLINE_DOUBLE, - PANGO_UNDERLINE_ERROR -} PangoUnderline; + PANGO_LINE_STYLE_NONE, + PANGO_LINE_STYLE_SINGLE, + PANGO_LINE_STYLE_DOUBLE, + PANGO_LINE_STYLE_DOTTED +} PangoLineStyle; PANGO_AVAILABLE_IN_ALL -PangoAttribute * pango_attr_underline_new (PangoUnderline underline); +PangoAttribute * pango_attr_underline_new (PangoLineStyle style); + PANGO_AVAILABLE_IN_1_8 PangoAttribute * pango_attr_underline_color_new (PangoColor *color); |