Lines Matching defs:filter
2 * SVG <filter> implementation.
27 #include "display/nr-filter.h"
29 #include "sp-filter.h"
30 #include "sp-filter-reference.h"
31 #include "sp-filter-primitive.h"
41 static void filter_ref_changed(SPObject *old_ref, SPObject *ref, SPFilter *filter);
42 static void filter_ref_modified(SPObject *href, guint flags, SPFilter *filter);
87 document->addResource("filter", this);
96 this->document->removeResource("filter", this);
196 * Returns the number of references to the filter.
240 // Update filter primitives in order to update filter primitive area
267 repr = doc->createElement("svg:filter");
357 * Gets called when the filter is (re)attached to another filter.
360 filter_ref_changed(SPObject *old_ref, SPObject *ref, SPFilter *filter)
363 filter->modified_connection.disconnect();
367 && ref != filter )
369 filter->modified_connection =
370 ref->connectModified(sigc::bind(sigc::ptr_fun(&filter_ref_modified), filter));
373 filter_ref_modified(ref, 0, filter);
376 static void filter_ref_modified(SPObject */*href*/, guint /*flags*/, SPFilter *filter)
378 filter->requestModified(SP_OBJECT_MODIFIED_FLAG);
432 // g_warning("Cannot build filter renderer: missing builder");
440 int sp_filter_primitive_count(SPFilter *filter) {
441 g_assert(filter != NULL);
444 SPObject *primitive_obj = filter->children;
452 int sp_filter_get_image_name(SPFilter *filter, gchar const *name) {
454 map<gchar *, int, ltstr>::iterator result = filter->_image_name->find(name_copy);
456 if (result == filter->_image_name->end()) return -1;
460 int sp_filter_set_image_name(SPFilter *filter, gchar const *name) {
461 int value = filter->_image_number_next;
462 filter->_image_number_next++;
465 pair<map<gchar*,int,ltstr>::iterator,bool> ret = filter->_image_name->insert(new_pair);
476 gchar const *sp_filter_name_for_image(SPFilter const *filter, int const image) {
502 = filter->_image_name->begin() ;
503 i != filter->_image_name->end() ; ++i) {
512 Glib::ustring sp_filter_get_new_result_name(SPFilter *filter) {
513 g_assert(filter != NULL);
516 SPObject *primitive_obj = filter->children;