Logo Search packages:      
Sourcecode: inkscape version File versions

GrDragger * GrDrag::getDraggerFor ( SPItem item,
guint  point_num,
bool  fill_or_stroke 
)

Select the dragger which has the given draggable.

Definition at line 832 of file gradient-drag.cpp.

References GrDragger::draggables, GrDraggable::fill_or_stroke, GrDraggable::item, and GrDraggable::point_num.

Referenced by grabKnot().

{
    for (GList const* i = this->draggers; i != NULL; i = i->next) {
        GrDragger *dragger = (GrDragger *) i->data;
        for (GSList const* j = dragger->draggables; j != NULL; j = j->next) {
            GrDraggable *da2 = (GrDraggable *) j->data;
            if (da2->item == item && da2->point_num == point_num && da2->fill_or_stroke == fill_or_stroke) {
                return (dragger);
            }
        }
    }
    return NULL;
}


Generated by  Doxygen 1.6.0   Back to index