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 932 of file sp-item.cpp.

References SPItem::transform.

Referenced by sp_item_write_transform().

    g_return_if_fail(item != NULL);

    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. */

Generated by  Doxygen 1.6.0   Back to index