Logo Search packages:      
Sourcecode: inkscape version File versions

svg-types.h

#ifndef __SP_SVG_TYPES_H__
#define __SP_SVG_TYPES_H__

/*
 * SVG datatype containers
 *
 * Authors:
 *   Lauris Kaplinski <lauris@kaplinski.com>
 *
 * Copyright (C) 1999-2002 Lauris Kaplinski
 * Copyright (C) 2000-2001 Ximian, Inc.
 *
 * Released under GNU GPL, read the file 'COPYING' for more information
 */

enum SPSVGLengthUnit {
      SP_SVG_UNIT_NONE,
      SP_SVG_UNIT_PX,
      SP_SVG_UNIT_PT,
      SP_SVG_UNIT_PC,
      SP_SVG_UNIT_MM,
      SP_SVG_UNIT_CM,
      SP_SVG_UNIT_IN,
      SP_SVG_UNIT_EM,
      SP_SVG_UNIT_EX,
      SP_SVG_UNIT_PERCENT
};

struct SPSVGLength {
      bool set;
      SPSVGLengthUnit unit;
      float value;
      float computed;

      float operator=(float v) {
            set = true;
            unit = SP_SVG_UNIT_NONE;
            value = computed = v;
            return v;
      }
};

#endif

Generated by  Doxygen 1.6.0   Back to index