#include "pango-engine-private.h"
#include "pango-impl-utils.h"
+
+G_DEFINE_ABSTRACT_TYPE (PangoEngine, pango_engine, G_TYPE_OBJECT);
+
static void
pango_engine_init (PangoEngine *self)
{
{
}
-G_DEFINE_ABSTRACT_TYPE (PangoEngine, pango_engine, G_TYPE_OBJECT);
+G_DEFINE_ABSTRACT_TYPE (PangoEngineLang, pango_engine_lang, PANGO_TYPE_ENGINE);
static void
pango_engine_lang_init (PangoEngineLang *self)
{
}
-G_DEFINE_ABSTRACT_TYPE (PangoEngineLang, pango_engine_lang, PANGO_TYPE_ENGINE);
static PangoCoverageLevel
pango_engine_shape_real_covers (PangoEngineShape *engine G_GNUC_UNUSED,
return result;
}
+
+G_DEFINE_ABSTRACT_TYPE (PangoEngineShape, pango_engine_shape, PANGO_TYPE_ENGINE);
+
static void
pango_engine_shape_init (PangoEngineShape *klass)
{
class->covers = pango_engine_shape_real_covers;
}
-G_DEFINE_ABSTRACT_TYPE (PangoEngineShape, pango_engine_shape, PANGO_TYPE_ENGINE);
-
void
_pango_engine_shape_shape (PangoEngineShape *engine,
PangoFont *font,
return PANGO_COVERAGE_NONE;
}
+
+static GType pango_fallback_engine_get_type (void);
+
+G_DEFINE_ABSTRACT_TYPE (PangoFallbackEngine, pango_fallback_engine, PANGO_TYPE_ENGINE_SHAPE);
+
static void
pango_fallback_engine_init (PangoFallbackEngine *self)
{
class->script_shape = fallback_engine_shape;
}
-G_DEFINE_ABSTRACT_TYPE (PangoFallbackEngine, pango_fallback_engine, PANGO_TYPE_ENGINE_SHAPE);
-
PangoEngineShape *
_pango_get_fallback_shaper (void)
{
static PangoFontMetrics *pango_fontset_real_get_metrics (PangoFontset *fontset);
+
+G_DEFINE_ABSTRACT_TYPE (PangoFontset, pango_fontset, G_TYPE_OBJECT);
+
static void
pango_fontset_init (PangoFontset *self)
{
class->get_metrics = pango_fontset_real_get_metrics;
}
-G_DEFINE_ABSTRACT_TYPE (PangoFontset, pango_fontset, G_TYPE_OBJECT);
/**
* pango_fontset_get_font:
#define PANGO_FONTSET_SIMPLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PANGO_TYPE_FONTSET_SIMPLE, PangoFontsetSimpleClass))
static void pango_fontset_simple_finalize (GObject *object);
-static void pango_fontset_simple_init (PangoFontsetSimple *fontset);
static PangoFontMetrics *pango_fontset_simple_get_metrics (PangoFontset *fontset);
static PangoLanguage * pango_fontset_simple_get_language (PangoFontset *fontset);
static PangoFont * pango_fontset_simple_get_font (PangoFontset *fontset,
return fontset;
}
+
+G_DEFINE_TYPE (PangoFontsetSimple, pango_fontset_simple, PANGO_TYPE_FONTSET);
+
static void
pango_fontset_simple_class_init (PangoFontsetSimpleClass *class)
{
fontset->language = NULL;
}
-G_DEFINE_TYPE (PangoFontsetSimple, pango_fontset_simple, PANGO_TYPE_FONTSET);
-
static void
pango_fontset_simple_finalize (GObject *object)
{
G_CONST_RETURN char *
pango_get_lib_subdirectory (void)
{
- static gchar *result = NULL;
+ static const gchar *result = NULL;
if (result == NULL)
{
*/
static void pango_fc_fontset_finalize (GObject *object);
-static void pango_fc_fontset_init (PangoFcFontset *fontset);
static PangoLanguage * pango_fc_fontset_get_language (PangoFontset *fontset);
static PangoFont * pango_fc_fontset_get_font (PangoFontset *fontset,
guint wc);
PangoFontClass parent_class;
};
-static void pango_x_font_class_init (PangoXFontClass *class);
-static void pango_x_font_init (PangoXFont *xfont);
static void pango_x_font_dispose (GObject *object);
static void pango_x_font_finalize (GObject *object);