Searched defs:second (Results 1 - 19 of 19) sorted by relevance

/inkscape/src/libdepixelize/priv/
H A Dbranchless.h39 T first_if(T first, T second, bool cond) argument
41 return cond ? first : second;
/inkscape/src/
H A Dcolor-rgba.h128 * value are multiplied by 1.0 - weight and the second object by weight.
131 * @param second The second RGBA, with this being the first
133 * this while one is all the second. Default is
136 ColorRGBA average (const ColorRGBA &second, const float weight = 0.5) const { argument
140 returnval[i] = _c[i] * (1.0 - weight) + second[i] * weight;
H A Dpath-chemistry.cpp48 inline bool less_than_items(SPItem const *first, SPItem const *second) argument
51 second->getRepr())<0;
H A Dsp-text.cpp582 // that if the first line is empty the second line would take its place at the
932 void TextTagAttributes::split(unsigned index, TextTagAttributes *second) argument
935 splitSingleAttribute(&attributes.x, index, &second->attributes.x, false);
936 splitSingleAttribute(&attributes.y, index, &second->attributes.y, false);
938 splitSingleAttribute(&attributes.dx, index, &second->attributes.dx, true);
939 splitSingleAttribute(&attributes.dy, index, &second->attributes.dy, true);
940 splitSingleAttribute(&attributes.rotate, index, &second->attributes.rotate, true);
955 void TextTagAttributes::join(TextTagAttributes const &first, TextTagAttributes const &second, unsigned second_index) argument
957 if (second.singleXYCoordinates()) {
961 joinSingleAttribute(&attributes.x, first.attributes.x, second
[all...]
H A Dsp-item.cpp1386 // We recursed into children first, and are now adjusting this object second;
1671 int sp_item_repr_compare_position(SPItem const *first, SPItem const *second) argument
1674 second->getRepr());
H A Dsp-object.cpp335 int sp_object_compare_position(SPObject const *first, SPObject const *second) argument
338 if (first != second) {
339 SPObject const *ancestor = first->nearestCommonAncestor(second);
345 } else if (ancestor == second) {
349 SPObject const *to_second = AncestorSon(second, ancestor);
360 bool sp_object_compare_position_bool(SPObject const *first, SPObject const *second){ argument
361 return sp_object_compare_position(first,second)<0;
H A Dtext-editing.cpp674 // not to be written if the second param has a style set which the first does not
742 iter_pair.second = end;
748 iter_pair.second = start;
759 layout->getSourceOfCharacter(iter_pair.second, &rawptr, &end_text_iter);
845 layout->validateIterator(&iter_pair.second);
1380 /** returns true if \a first and \a second contain all the same attributes
1384 static bool css_attrs_are_equal(SPCSSAttr const *first, SPCSSAttr const *second) argument
1388 gchar const *other_attr = second->attribute(g_quark_to_string(attrs->key));
1392 attrs = second->attributeList();
1615 SPObject *second local
[all...]
H A Dselection-chemistry.cpp977 bool sp_item_repr_compare_position_bool(SPObject const *first, SPObject const *second) argument
980 ((SPItem*)second)->getRepr())<0;
3651 // the first param is always the image filename, the second is param1
4117 Inkscape::XML::Node *parent = ((*it).second)->getRepr()->parent();
4118 gint pos = ((*it).second)->getRepr()->position();
4133 transform *= (*it).second->transform;
/inkscape/src/ui/tool/
H A Dcurve-drag-point.cpp50 NodeList::iterator second = first.next(); local
53 if (first->front()->isDegenerate() && second->back()->isDegenerate()) {
56 // delta is a vector equal 1/3 of distance from first to second
57 Geom::Point delta = (second->position() - first->position()) / 3.0;
61 second->back()->move(second->back()->position() - delta);
72 NodeList::iterator second = first.next(); local
77 second->back()->retract();
108 second->back()->move(second
[all...]
H A Dnode.cpp98 /** Computes an unit vector of the direction from first to second control point */
99 static Geom::Point direction(Geom::Point const &first, Geom::Point const &second) { argument
100 return Geom::unit_vector(second - first);
833 // drag out the second handle without changing the direction of the first one.
1055 // do the same for the second direction. Do not check for equality with
1307 // from the second handle constraint
1372 g_error("Node::handleToward(): second node is not adjacent!");
1396 g_error("Node::handleAwayFrom(): second node is not adjacent!");
1491 bool Node::_is_line_segment(Node *first, Node *second) argument
1493 if (!first || !second) retur
[all...]
H A Dpath-manipulator.cpp328 NodeList::iterator second = first.next(); local
329 if (second && first->selected() && second->selected()) {
331 add_or_replace_if_extremum(extremum_vector, extrvalue, sign * second->position()[dim], first, 1.);
332 if (first->front()->isDegenerate() && second->back()->isDegenerate()) {
338 second->back()->position()[dim], second->position()[dim]);
351 double t = extremum_vector[i].second;
998 NodeList::iterator second = first.next(); local
999 if (!second) thro
[all...]
/inkscape/src/2geom/
H A Dintersection.h56 , second(tb)
63 , second(tb)
79 swap(a.second, b.second);
85 if (second != other.second) return false;
90 if (first == other.first && second < other.second) return true;
98 TimeB second; member in class:Geom::Intersection
120 result.push_back(Intersection<A, B>(in[i].second, i
[all...]
/inkscape/src/xml/
H A Drepr-util.cpp259 * 1 first object's position is greater than the second
260 * -1 first object's position is less than the second
263 int sp_repr_compare_position(Inkscape::XML::Node const *first, Inkscape::XML::Node const *second) argument
266 if (first->parent() == second->parent()) {
267 /* Basic case - first and second have same parent */
269 p2 = second->position();
276 Inkscape::XML::Node const *ancestor = LCA(first, second);
281 } else if (ancestor == second) {
285 Inkscape::XML::Node const *to_second = AncetreFils(second, ancestor);
297 (i.e. that the parent really does contain first and second amon
313 sp_repr_compare_position_bool(Inkscape::XML::Node const *first, Inkscape::XML::Node const *second) argument
[all...]
/inkscape/src/ui/dialog/
H A Dgrid-arrange-tab.cpp51 static bool sp_compare_x_position(SPItem *first, SPItem *second) argument
57 Geom::OptRect b = second->documentVisualBounds();
87 static bool sp_compare_y_position(SPItem *first, SPItem *second) argument
90 Geom::OptRect b = second->documentVisualBounds();
/inkscape/src/libnrtype/
H A DFontFactory.cpp199 return ((Glib::ustring)it->second).c_str();
276 static bool ustringPairSort(std::pair<PangoFontFamily*, Glib::ustring> const& first, std::pair<PangoFontFamily*, Glib::ustring> const& second) argument
279 return first.second < second.second;
744 // std::cout << "Table: " << it->first << " Occurances: " << it->second << std::endl;
/inkscape/src/ui/widget/
H A Dregistered-widget.cpp523 RegisteredRadioButtonPair::setValue (bool second) argument
529 if (second) {
549 bool second = _rb2->get_active(); local
550 write_to_xml(second ? "true" : "false");
/inkscape/src/live_effects/parameter/
H A Dfilletchamferpointarray.cpp416 if(positions.second != 0){
452 Geom::Curve * B = subpaths[positions.first][positions.second].duplicate();
454 if(positions.second != 0){
455 A = subpaths[positions.first][positions.second-1].duplicate();
491 curve_it1 = subpaths[positions.first][positions.second].duplicate();
507 time_it2 = modf(to_time(index - positions.second , _vector[index - positions.second ][X]), &intpart);
508 resultLenght = it1_length + to_len(index - positions.second, _vector[index - positions.second ][X]);
526 if ((subpaths[positions.first].closed() && last && _vector[index - positions.second][
544 std::size_t second = 0; local
[all...]
/inkscape/src/live_effects/
H A Dlpe-powerstroke.cpp108 if ( are_near(L2sq(dM(t)),0.) && (dM[0].size() > 1) && (dM[1].size() > 1) ) { // try second time
311 static bool compare_offsets (Geom::Point first, Geom::Point second) argument
313 return first[Geom::X] < second[Geom::X];
417 pb.curveTo(sub2.second[1], sub2.second[2], sub2.second[3]);
/inkscape/src/ui/tools/
H A Dmeasure-tool.cpp100 bool SortLabelPlacement(LabelPlacement const &first, LabelPlacement const &second) argument
102 if (first.end[Geom::Y] == second.end[Geom::Y]) {
103 return first.end[Geom::X] < second.end[Geom::X];
105 return first.end[Geom::Y] < second.end[Geom::Y];

Completed in 108 milliseconds