summaryrefslogtreecommitdiff
path: root/pango/pango-renderer.h
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2019-08-22 11:46:07 +0200
committerMatthias Clasen <mclasen@redhat.com>2019-10-31 21:23:59 -0400
commitde0ab09cdbf5bdfa0caa365a22ac864e41838e48 (patch)
tree1651a116a7edd93defb2a608674d250d2505aedc /pango/pango-renderer.h
parent580bb08df7d7d8ac42558cee5bf4d2fc7986327b (diff)
downloadpango-de0ab09cdbf5bdfa0caa365a22ac864e41838e48.tar.gz
renderer: Implement overlines
Implement overlines in PangoRenderer. This adds a new render part, and mirrors the machinery we have for underlines and strikethrough.
Diffstat (limited to 'pango/pango-renderer.h')
-rw-r--r--pango/pango-renderer.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/pango/pango-renderer.h b/pango/pango-renderer.h
index 8a70a88a..4dae6a92 100644
--- a/pango/pango-renderer.h
+++ b/pango/pango-renderer.h
@@ -42,6 +42,7 @@ typedef struct _PangoRendererPrivate PangoRendererPrivate;
* @PANGO_RENDER_PART_BACKGROUND: the area behind the text
* @PANGO_RENDER_PART_UNDERLINE: underlines
* @PANGO_RENDER_PART_STRIKETHROUGH: strikethrough lines
+ * @PANGO_RENDER_PART_OVERLINE: overlines
*
* #PangoRenderPart defines different items to render for such
* purposes as setting colors.
@@ -54,7 +55,8 @@ typedef enum
PANGO_RENDER_PART_FOREGROUND,
PANGO_RENDER_PART_BACKGROUND,
PANGO_RENDER_PART_UNDERLINE,
- PANGO_RENDER_PART_STRIKETHROUGH
+ PANGO_RENDER_PART_STRIKETHROUGH,
+ PANGO_RENDER_PART_OVERLINE
} PangoRenderPart;
/**
@@ -75,6 +77,7 @@ struct _PangoRenderer
GObject parent_instance;
PangoUnderline underline;
+ PangoOverline overline;
gboolean strikethrough;
int active_count;