sp-linear-gradient.cpp revision 1375fe5c9f0af935233ad027bad7e14094a3414e
#include "sp-linear-gradient.h"
#include "attributes.h"
#include "sp-factory.h"
namespace {
return new SPLinearGradient();
}
bool linearGradientRegistered = SPFactory::instance().registerObject("svg:linearGradient", createLinearGradient);
}
/*
* Linear Gradient
*/
}
}
this->readAttr( "x1" );
this->readAttr( "y1" );
this->readAttr( "x2" );
this->readAttr( "y2" );
}
/**
* Callback: set attribute.
*/
switch (key) {
case SP_ATTR_X1:
break;
case SP_ATTR_Y1:
break;
case SP_ATTR_X2:
break;
case SP_ATTR_Y2:
break;
default:
break;
}
}
/**
* Callback: write attributes to associated repr.
*/
Inkscape::XML::Node* SPLinearGradient::write(Inkscape::XML::Document *xml_doc, Inkscape::XML::Node *repr, guint flags) {
}
}
}
}
}
return repr;
}
cairo_pattern_t* SPLinearGradient::pattern_new(cairo_t * /*ct*/, Geom::OptRect const &bbox, double opacity) {
this->ensureVector();
return cp;
}