sp-glyph-kerning.h revision 11f343b8117dbf56931f537820c2749a8232fec2
24db7b4ad7915f5f79ed265e2c2bddf0d8cf9611Felipe C. da S. Sanches * SVG <hkern> and <vkern> elements implementation
24db7b4ad7915f5f79ed265e2c2bddf0d8cf9611Felipe C. da S. Sanches * Felipe C. da S. Sanches <juca@members.fsf.org>
24db7b4ad7915f5f79ed265e2c2bddf0d8cf9611Felipe C. da S. Sanches * Copyright (C) 2008 Felipe C. da S. Sanches
24db7b4ad7915f5f79ed265e2c2bddf0d8cf9611Felipe C. da S. Sanches * Released under GNU GPL, read the file 'COPYING' for more information
24db7b4ad7915f5f79ed265e2c2bddf0d8cf9611Felipe C. da S. Sanches#define SP_HKERN(obj) (dynamic_cast<SPHkern*>(obj))
24db7b4ad7915f5f79ed265e2c2bddf0d8cf9611Felipe C. da S. Sanches#define SP_IS_HKERN(obj) (dynamic_cast<const SPHkern*>(obj) != NULL)
24db7b4ad7915f5f79ed265e2c2bddf0d8cf9611Felipe C. da S. Sanches#define SP_VKERN(obj) (dynamic_cast<SPVkern*>(obj))
24db7b4ad7915f5f79ed265e2c2bddf0d8cf9611Felipe C. da S. Sanches#define SP_IS_VKERN(obj) (dynamic_cast<const SPVkern*>(obj) != NULL)
24db7b4ad7915f5f79ed265e2c2bddf0d8cf9611Felipe C. da S. Sanches// CPPIFY: These casting macros are buggy, as Vkern and Hkern aren't "real" classes.
24db7b4ad7915f5f79ed265e2c2bddf0d8cf9611Felipe C. da S. Sanchesclass SPGlyphKerning : public SPObject {
24db7b4ad7915f5f79ed265e2c2bddf0d8cf9611Felipe C. da S. Sanches // FIXME encapsulation
24db7b4ad7915f5f79ed265e2c2bddf0d8cf9611Felipe C. da S. Sanches virtual void build(SPDocument* doc, Inkscape::XML::Node* repr);
24db7b4ad7915f5f79ed265e2c2bddf0d8cf9611Felipe C. da S. Sanches virtual void set(unsigned int key, char const* value);
24db7b4ad7915f5f79ed265e2c2bddf0d8cf9611Felipe C. da S. Sanches virtual void update(SPCtx* ctx, unsigned int flags);
24db7b4ad7915f5f79ed265e2c2bddf0d8cf9611Felipe C. da S. Sanches virtual Inkscape::XML::Node* write(Inkscape::XML::Document* doc, Inkscape::XML::Node* repr, unsigned int flags);