summaryrefslogtreecommitdiff
path: root/rsvg-styles.h
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@gnome.org>2017-12-15 11:11:31 -0600
committerFederico Mena Quintero <federico@gnome.org>2017-12-15 11:11:31 -0600
commit8da08fe5654735018489655845e49aada22e4330 (patch)
tree145cde6da14208e6cc309f0ca30ce55dc746ab41 /rsvg-styles.h
parent2e1eb6bba3dd4f3a76cf8b12597d4b2458079acc (diff)
downloadlibrsvg-8da08fe5654735018489655845e49aada22e4330.tar.gz
TextDecoration: Make this a struct of booleans, not a bitfield
Diffstat (limited to 'rsvg-styles.h')
-rw-r--r--rsvg-styles.h13
1 files changed, 5 insertions, 8 deletions
diff --git a/rsvg-styles.h b/rsvg-styles.h
index 83738eda..7aa9f59d 100644
--- a/rsvg-styles.h
+++ b/rsvg-styles.h
@@ -36,14 +36,11 @@
G_BEGIN_DECLS
-typedef int TextDecoration;
-
-enum {
- TEXT_NORMAL = 0x00,
- TEXT_OVERLINE = 0x01,
- TEXT_UNDERLINE = 0x02,
- TEXT_STRIKE = 0x04
-};
+typedef struct {
+ gboolean overline;
+ gboolean underline;
+ gboolean strike;
+} TextDecoration;
typedef enum {
TEXT_ANCHOR_START,