Logo Search packages:      
Sourcecode: inkscape version File versions

SPCSSAttr* sp_desktop_get_style ( SPDesktop desktop,
bool  with_text 
)

Return the desktop's current style.

Definition at line 209 of file desktop-style.cpp.

References SPDesktop::current, and sp_css_attr_unset_text().

Referenced by sp_desktop_apply_style_tool().

{
    SPCSSAttr *css = sp_repr_css_attr_new();
    sp_repr_css_merge(css, desktop->current);
    if (!css->attributeList()) {
        sp_repr_css_attr_unref(css);
        return NULL;
    } else {
        if (!with_text) {
            css = sp_css_attr_unset_text(css);
        }
        return css;
    }
}


Generated by  Doxygen 1.6.0   Back to index