nr-arena-glyphs.h revision ed422cc32e064690397f1e4aeb526ebda5fbca77
#ifndef SEEN_NR_ARENA_GLYPHS_H
#define SEEN_NR_ARENA_GLYPHS_H
/*
* RGBA display list system for inkscape
*
* Author:
* Lauris Kaplinski <lauris@kaplinski.com>
*
* Copyright (C) 2002 Lauris Kaplinski
*
* Released under GNU GPL
*
*/
#define NR_TYPE_ARENA_GLYPHS (nr_arena_glyphs_get_type ())
#define NR_ARENA_GLYPHS(obj) (NR_CHECK_INSTANCE_CAST ((obj), NR_TYPE_ARENA_GLYPHS, NRArenaGlyphs))
#define NR_IS_ARENA_GLYPHS(obj) (NR_CHECK_INSTANCE_TYPE ((obj), NR_TYPE_ARENA_GLYPHS))
#include "libnrtype/nrtype-forward.h"
#include "display/display-forward.h"
#include "forward.h"
#include "display/nr-arena-item.h"
#include "display/nr-style.h"
#define test_glyph_liv
struct SPCurve;
class Shape;
class SPPainter;
NRType nr_arena_glyphs_get_type (void);
struct NRArenaGlyphs : public NRArenaItem {
/* Glyphs data */
Geom::Affine g_transform;
font_instance *font;
gint glyph;
float x, y;
static NRArenaGlyphs *create(NRArena *arena) {
NRArenaGlyphs *obj=reinterpret_cast<NRArenaGlyphs *>(nr_object_new(NR_TYPE_ARENA_GLYPHS));
obj->init(arena);
return obj;
}
};
struct NRArenaGlyphsClass {
NRArenaItemClass parent_class;
};
void nr_arena_glyphs_set_path ( NRArenaGlyphs *glyphs,
SPCurve *curve, unsigned int lieutenant,
font_instance *font, int glyph,
Geom::Affine const *transform );
void nr_arena_glyphs_set_style (NRArenaGlyphs *glyphs, SPStyle *style);
/* Integrated group of component glyphss */
typedef struct NRArenaGlyphsGroup NRArenaGlyphsGroup;
typedef struct NRArenaGlyphsGroupClass NRArenaGlyphsGroupClass;
#include "nr-arena-group.h"
#define NR_TYPE_ARENA_GLYPHS_GROUP (nr_arena_glyphs_group_get_type ())
#define NR_ARENA_GLYPHS_GROUP(obj) (NR_CHECK_INSTANCE_CAST ((obj), NR_TYPE_ARENA_GLYPHS_GROUP, NRArenaGlyphsGroup))
#define NR_IS_ARENA_GLYPHS_GROUP(obj) (NR_CHECK_INSTANCE_TYPE ((obj), NR_TYPE_ARENA_GLYPHS_GROUP))
NRType nr_arena_glyphs_group_get_type (void);
struct NRArenaGlyphsGroup : public NRArenaGroup {
Geom::OptRect paintbox;
NRStyle nrstyle;
static NRArenaGlyphsGroup *create(NRArena *arena) {
NRArenaGlyphsGroup *obj=reinterpret_cast<NRArenaGlyphsGroup *>(nr_object_new(NR_TYPE_ARENA_GLYPHS_GROUP));
obj->init(arena);
return obj;
}
};
struct NRArenaGlyphsGroupClass {
NRArenaGroupClass parent_class;
};
/* Utility functions */
void nr_arena_glyphs_group_clear (NRArenaGlyphsGroup *group);
void nr_arena_glyphs_group_add_component (NRArenaGlyphsGroup *group, font_instance *font, int glyph, Geom::Affine const &transform);
void nr_arena_glyphs_group_set_style (NRArenaGlyphsGroup *group, SPStyle *style);
void nr_arena_glyphs_group_set_paintbox (NRArenaGlyphsGroup *group, const NRRect *pbox);
#endif // SEEN_NR_ARENA_GLYPHS_H
/*
Local Variables:
mode:c++
c-file-style:"stroustrup"
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
indent-tabs-mode:nil
fill-column:99
End:
*/
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :