Logo Search packages:      
Sourcecode: inkscape version File versions

static gchar * sp_offset_description ( SPItem item  )  [static]

Returns a textual description of object.

Definition at line 427 of file sp-offset.cpp.

References SPOffset::rad, and SPOffset::sourceHref.

Referenced by sp_offset_class_init().

{
    SPOffset *offset = SP_OFFSET (item);

    if ( offset->sourceHref ) {
        // TRANSLATORS COMMENT: %s is either "outset" or "inset" depending on sign
        return g_strdup_printf(_("<b>Linked offset</b>, %s by %f pt"),
                               (offset->rad >= 0)? _("outset") : _("inset"), fabs (offset->rad));
    } else {
        // TRANSLATORS COMMENT: %s is either "outset" or "inset" depending on sign
        return g_strdup_printf(_("<b>Dynamic offset</b>, %s by %f pt"),
                               (offset->rad >= 0)? _("outset") : _("inset"), fabs (offset->rad));
    }
}


Generated by  Doxygen 1.6.0   Back to index