Logo Search packages:      
Sourcecode: inkscape version File versions

void sp_item_set_item_transform ( SPItem item,
NR::Matrix const &  transform 
)

Sets item private transform (not propagated to repr), without compensating stroke widths, gradients, patterns as sp_item_write_transform does.

Definition at line 1357 of file sp-item.cpp.

References SPObject::requestDisplayUpdate(), and SPItem::transform.

Referenced by sp_item_write_transform().

{
    g_return_if_fail(item != NULL);
    g_return_if_fail(SP_IS_ITEM(item));

    if (!matrix_equalp(transform, item->transform, NR_EPSILON)) {
        item->transform = transform;
        /* The SP_OBJECT_USER_MODIFIED_FLAG_B is used to mark the fact that it's only a
           transformation.  It's apparently not used anywhere else. */
        item->requestDisplayUpdate(SP_OBJECT_MODIFIED_FLAG | SP_OBJECT_USER_MODIFIED_FLAG_B);
        sp_item_rm_unsatisfied_cns(*item);
    }
}


Generated by  Doxygen 1.6.0   Back to index