svg-length.h revision a68f945c599c0b45f6811229c2e15454fba07a96
/**
* Authors:
* Lauris Kaplinski <lauris@kaplinski.com>
* Carl Hetherington <inkscape@carlh.net>
*
* Copyright (C) 1999-2002 Lauris Kaplinski
* Copyright (C) 2000-2001 Ximian, Inc.
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#ifndef SEEN_SP_SVG_LENGTH_H
#define SEEN_SP_SVG_LENGTH_H
/**
* SVG length type
*/
SVGLength();
enum Unit {
NONE,
PX,
PT,
PC,
MM,
CM,
INCH,
FOOT,
EM,
EX,
};
// The object's value is valid / exists in SVG.
bool _set;
// The unit of value.
// The value of this SVGLength as found in the SVG.
float value;
float computed;
float operator=(float v) {
_set = true;
return v;
}
bool readAbsolute(char const *str);
// To set 'v' use '='
};
#endif // SEEN_SP_SVG_LENGTH_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:fileencoding=utf-8 :