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

SPStyle* sp_style_new (  ) 

Returns a new SPStyle object with settings as per sp_style_clear().

Definition at line 391 of file style.cpp.

References SPStyle::cloned, SPStyle::object, SPStyle::refcount, sp_style_clear(), sp_text_style_new(), SPStyle::text, and SPStyle::text_private.

Referenced by sp_desktop_get_font_size_tool(), sp_style_new_from_object(), and sp_style_read().

{
    SPStyle *const style = g_new0(SPStyle, 1);

    style->refcount = 1;
    style->object = NULL;
    style->text = sp_text_style_new();
    style->text_private = TRUE;

    sp_style_clear(style);

    style->cloned = false;

    return style;
}


Generated by  Doxygen 1.6.0   Back to index