Lines Matching refs:attr_vector

710     std::vector<SVGLength> *attr_vector;
714 case SP_ATTR_X: attr_vector = &attributes.x; update_x = true; break;
715 case SP_ATTR_Y: attr_vector = &attributes.y; update_y = true; break;
716 case SP_ATTR_DX: attr_vector = &attributes.dx; update_x = true; break;
717 case SP_ATTR_DY: attr_vector = &attributes.dy; update_y = true; break;
718 case SP_ATTR_ROTATE: attr_vector = &attributes.rotate; break;
733 *attr_vector = sp_svg_length_list_read(value);
740 for(std::vector<SVGLength>::iterator it = attr_vector->begin(); it != attr_vector->end(); ++it) {
793 void TextTagAttributes::writeSingleAttributeVector(Inkscape::XML::Node *node, gchar const *key, std::vector<SVGLength> const &attr_vector)
795 if (attr_vector.empty())
801 for (std::vector<SVGLength>::const_iterator it = attr_vector.begin() ; it != attr_vector.end() ; ++it) {
897 void TextTagAttributes::eraseSingleAttribute(std::vector<SVGLength> *attr_vector, unsigned start_index, unsigned n)
899 if (attr_vector->size() <= start_index) return;
900 if (attr_vector->size() <= start_index + n)
901 attr_vector->erase(attr_vector->begin() + start_index, attr_vector->end());
903 attr_vector->erase(attr_vector->begin() + start_index, attr_vector->begin() + start_index + n);
918 void TextTagAttributes::insertSingleAttribute(std::vector<SVGLength> *attr_vector, unsigned start_index, unsigned n, bool is_xy)
920 if (attr_vector->size() <= start_index) return;
923 attr_vector->insert(attr_vector->begin() + start_index, n, zero_length);
925 double begin = start_index == 0 ? (*attr_vector)[start_index + n].computed : (*attr_vector)[start_index - 1].computed;
926 double diff = ((*attr_vector)[start_index + n].computed - begin) / n; // n tested for nonzero in insert()
928 (*attr_vector)[start_index + i] = begin + diff * i;