示例#1
0
bool
PointParam::param_readSVGValue(const gchar * strvalue)
{
    gchar ** strarray = g_strsplit(strvalue, ",", 2);
    double newx, newy;
    unsigned int success = sp_svg_number_read_d(strarray[0], &newx);
    success += sp_svg_number_read_d(strarray[1], &newy);
    g_strfreev (strarray);
    if (success == 2) {
        param_setValue( Geom::Point(newx, newy) );
        return true;
    }
    return false;
}
示例#2
0
文件: bool.cpp 项目: Spin0za/inkscape
bool
BoolParam::param_readSVGValue(const gchar * strvalue)
{
    param_setValue(helperfns_read_bool(strvalue, defvalue));
    return true; // not correct: if value is unacceptable, should return false!
}
示例#3
0
文件: bool.cpp 项目: Spin0za/inkscape
void
BoolParam::param_set_default()
{
    param_setValue(defvalue);
}
示例#4
0
void
PointParam::param_set_default()
{
    param_setValue(defvalue,true);
}
示例#5
0
void
PointParam::param_transform_multiply(Geom::Affine const& postmul, bool /*set*/)
{
    param_setValue( (*this) * postmul, true);
}