Logo Search packages:      
Sourcecode: inkscape version File versions  Download package

SPCSSAttr* sp_css_attr_from_style ( SPStyle const *const   style,
guint const   flags 
)

Precondition:
style != NULL.

flags in {IFSET, ALWAYS}.

Definition at line 3863 of file style.cpp.

References sp_style_write_string().

Referenced by sp_css_attr_from_object().

{
    g_return_val_if_fail(style != NULL, NULL);
    g_return_val_if_fail(((flags == SP_STYLE_FLAG_IFSET) ||
                          (flags == SP_STYLE_FLAG_ALWAYS)  ),
                         NULL);
    gchar *style_str = sp_style_write_string(style, flags);
    SPCSSAttr *css = sp_repr_css_attr_new();
    sp_repr_css_attr_add_from_string(css, style_str);
    g_free(style_str);
    return css;
}


Generated by  Doxygen 1.6.0   Back to index