summaryrefslogtreecommitdiff
path: root/ottie/ottiecharprivate.h
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-12-29 02:37:06 -0500
committerMatthias Clasen <mclasen@redhat.com>2020-12-29 10:14:32 -0500
commit7515715fe4ce9407c6022b167c4c95565e5de85b (patch)
tree3cc43de546bcf64eb4419a4fab73e2e3370ab167 /ottie/ottiecharprivate.h
parent43d9fe9320c25c07a859cded02d245be4260e630 (diff)
downloadgtk+-wip/ottie/print.tar.gz
ottie: Support text layerswip/ottie/print
Add basic support for text layers. We are parsing the toplevel "fonts" and "chars", and support static text.
Diffstat (limited to 'ottie/ottiecharprivate.h')
-rw-r--r--ottie/ottiecharprivate.h55
1 files changed, 55 insertions, 0 deletions
diff --git a/ottie/ottiecharprivate.h b/ottie/ottiecharprivate.h
new file mode 100644
index 0000000000..0551c56065
--- /dev/null
+++ b/ottie/ottiecharprivate.h
@@ -0,0 +1,55 @@
+
+/*
+ * Copyright © 2020 Red Hat, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library. If not, see <http://www.gnu.org/licenses/>.
+ *
+ * Authors: Matthias Clasen
+ */
+
+#ifndef __OTTIE_CHAR_PRIVATE_H__
+#define __OTTIE_CHAR_PRIVATE_H__
+
+#include <glib.h>
+
+#include "ottieshapeprivate.h"
+
+G_BEGIN_DECLS
+
+typedef struct
+{
+ char *ch;
+ char *family;
+ char *style;
+} OttieCharKey;
+
+typedef struct
+{
+ OttieCharKey key;
+ double size;
+ double width;
+ OttieShape *shapes;
+} OttieChar;
+
+void ottie_char_key_free (OttieCharKey *key);
+guint ottie_char_key_hash (const OttieCharKey *key);
+gboolean ottie_char_key_equal (const OttieCharKey *key1,
+ const OttieCharKey *key2);
+OttieChar * ottie_char_copy (OttieChar *ch);
+void ottie_char_clear (OttieChar *ch);
+void ottie_char_free (OttieChar *ch);
+
+G_END_DECLS
+
+#endif /* __OTTIE_CHAR_PRIVATE_H__ */