svg-length.h revision 6ca0871243b23287418bed8719580f652f45f06b
/**
* 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,
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 :