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; }
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! }
void BoolParam::param_set_default() { param_setValue(defvalue); }
void PointParam::param_set_default() { param_setValue(defvalue,true); }
void PointParam::param_transform_multiply(Geom::Affine const& postmul, bool /*set*/) { param_setValue( (*this) * postmul, true); }