Logo Search packages:      
Sourcecode: inkscape version File versions

bool GrDragger::isA ( SPItem item,
guint  point_num,
bool  fill_or_stroke 
)

Checks if the dragger has a draggable with this item, point_num, fill_or_stroke

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

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

{
    for (GSList const* i = this->draggables; i != NULL; i = i->next) {
        GrDraggable *draggable = (GrDraggable *) i->data;
        if (draggable->point_num == point_num && draggable->item == item && draggable->fill_or_stroke == fill_or_stroke) {
            return true;
        }
    }
    return false;
}


Generated by  Doxygen 1.6.0   Back to index