Skip to content
This repository
tree: f7911b2d3b
Fetching contributors…

Cannot retrieve contributors at this time

file 34 lines (26 sloc) 0.761 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
#ifndef SWF_GLYPHLIST_H
#define SWF_GLYPHLIST_H

#include <SWFItem.h>

namespace SWF {

class GlyphShape;

class GlyphList : public Item {
/* glyph lists have strange offsetting stuff, so we do them manually */
public:
GlyphList();
virtual ~GlyphList();
virtual bool parse( Reader *r, int end, Context *ctx );
virtual void dump( int indent, Context *ctx );
virtual size_t calcSize( Context *ctx, int start_at );
virtual void write( Writer *w, Context *ctx );
virtual void writeXML( xmlNodePtr node, Context *ctx );
virtual void parseXML( xmlNodePtr node, Context *ctx );

void allocate( int n );
GlyphShape *getShapeN( int n );
void setMapN( int n, int m );

protected:
int nGlyphs;
GlyphShape *glyphs;
int *map;
};

}

#endif
Something went wrong with that request. Please try again.