summaryrefslogtreecommitdiff
path: root/pango/pango-context-private.h
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-08-20 11:17:26 -0400
committerMatthias Clasen <mclasen@redhat.com>2021-08-20 12:18:28 -0400
commit2573ad950a7a6cfb5c5e6da466adbdaeb356857a (patch)
treed47e628432e3f128c1627d4ad79a1dd2bf80fb9a /pango/pango-context-private.h
parentd1d3be80056ae846589389d46544a072e337020a (diff)
downloadpango-2573ad950a7a6cfb5c5e6da466adbdaeb356857a.tar.gz
Some code reorg
Split the itemization code into its own file, and move things around a bit.
Diffstat (limited to 'pango/pango-context-private.h')
-rw-r--r--pango/pango-context-private.h63
1 files changed, 63 insertions, 0 deletions
diff --git a/pango/pango-context-private.h b/pango/pango-context-private.h
new file mode 100644
index 00000000..240c07d4
--- /dev/null
+++ b/pango/pango-context-private.h
@@ -0,0 +1,63 @@
+/* Pango
+ * pango-context-private.h: Internal structures of PangoContext
+ *
+ * Copyright (C) 2004 Red Hat Software
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 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
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this library; if not, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __PANGO_CONTEXT_PRIVATE_H__
+#define __PANGO_CONTEXT_PRIVATE_H__
+
+#include <pango/pango-context.h>
+
+G_BEGIN_DECLS
+
+struct _PangoContext
+{
+ GObject parent_instance;
+ guint serial;
+ guint fontmap_serial;
+
+ PangoLanguage *set_language;
+ PangoLanguage *language;
+ PangoDirection base_dir;
+ PangoGravity base_gravity;
+ PangoGravity resolved_gravity;
+ PangoGravityHint gravity_hint;
+
+ PangoFontDescription *font_desc;
+
+ PangoMatrix *matrix;
+
+ PangoFontMap *font_map;
+
+ PangoFontMetrics *metrics;
+
+ gboolean round_glyph_positions;
+};
+
+GList * pango_itemize_with_font (PangoContext *context,
+ const char *text,
+ int start_index,
+ int length,
+ const PangoFontDescription *desc);
+
+
+G_END_DECLS
+
+#endif /* __PANGO_CONTEXT_PRIVATE_H__ */
+