Logo Search packages:      
Sourcecode: inkscape version File versions

std::vector< NR::Point > SPSelection::getBBoxPoints (  )  const

A vector containing the top-left and bottom-right corners of each selected object's bounding box.

Definition at line 360 of file selection.cpp.

References itemList().

    GSList const *items = const_cast<SPSelection *>(this)->itemList();
    std::vector<NR::Point> p;
    for (GSList const *iter = items; iter != NULL; iter = iter->next) {
        NRRect b;
        sp_item_bbox_desktop(SP_ITEM(iter->data), &b);
        p.push_back(NR::Point(b.x0, b.y0));
        p.push_back(NR::Point(b.x1, b.y1));

    return p;

Generated by  Doxygen 1.6.0   Back to index