summaryrefslogtreecommitdiff
path: root/pango/pango-context.h
diff options
context:
space:
mode:
authorHavoc Pennington <hp@redhat.com>2000-06-21 03:57:02 +0000
committerHavoc Pennington <hp@src.gnome.org>2000-06-21 03:57:02 +0000
commit197a2a68c145d3568cd4f0f2fee3d3b55570134f (patch)
tree6089cb6806eae9126d39a71f2966a56342f8db49 /pango/pango-context.h
parente2dc9e117648e267953d7318bd3e0093cd5ab234 (diff)
downloadpango-197a2a68c145d3568cd4f0f2fee3d3b55570134f.tar.gz
GTK+ should compile now... sorry about the mess...
2000-06-14 Havoc Pennington <hp@redhat.com> * pango/pango-attributes.c (pango_attr_list_copy): Function to copy the attribute list. 2000-06-13 Havoc Pennington <hp@redhat.com> * pango/pango-layout.h: Convert PangoLayout to GObject * pango/pango-context.h: Convert to PangoContext to GObject
Diffstat (limited to 'pango/pango-context.h')
-rw-r--r--pango/pango-context.h24
1 files changed, 15 insertions, 9 deletions
diff --git a/pango/pango-context.h b/pango/pango-context.h
index ba2144d1..8c180e3e 100644
--- a/pango/pango-context.h
+++ b/pango/pango-context.h
@@ -33,11 +33,23 @@ extern "C" {
/* Sort of like a GC - application set information about how
* to handle scripts
*/
-typedef struct _PangoContext PangoContext;
+typedef struct _PangoContext PangoContext;
+typedef struct _PangoContextClass PangoContextClass;
+#define PANGO_TYPE_CONTEXT (pango_context_get_type ())
+#define PANGO_CONTEXT(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), PANGO_TYPE_CONTEXT, PangoContext))
+#define PANGO_CONTEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PANGO_TYPE_CONTEXT, PangoContextClass))
+#define PANGO_IS_CONTEXT(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), PANGO_TYPE_CONTEXT))
+#define PANGO_IS_CONTEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PANGO_TYPE_CONTEXT))
+#define PANGO_CONTEXT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PANGO_TYPE_CONTEXT, PangoContextClass))
+
+
+/* The PangoContext and PangoContextClass structs are private; if you
+ * need to create a subclass of these, mail otaylor@redhat.com
+ */
+
+GType pango_context_get_type (void);
PangoContext *pango_context_new (void);
-void pango_context_ref (PangoContext *context);
-void pango_context_unref (PangoContext *context);
void pango_context_add_font_map (PangoContext *context,
PangoFontMap *font_map);
void pango_context_list_fonts (PangoContext *context,
@@ -60,12 +72,6 @@ void pango_context_set_base_dir (PangoContext
PangoDirection direction);
PangoDirection pango_context_get_base_dir (PangoContext *context);
-void pango_context_set_data (PangoContext *context,
- const char *key,
- gpointer data,
- GDestroyNotify destroy_func);
-gpointer pango_context_get_data (PangoContext *context,
- const char *key);
/* Break a string of Unicode characters into segments with
* consistent shaping/language engine and bidrectional level.