Logo Search packages:      
Sourcecode: inkscape version File versions

SPStyle* sp_style_new ( SPDocument document  ) 

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

Definition at line 444 of file style.cpp.

References SPStyle::cloned, SPStyle::document, SPStyle::fill_ps_modified_connection, SPStyle::filter_modified_connection, SPStyle::object, SPStyle::refcount, SPStyle::release_connection, sp_style_clear(), sp_text_style_new(), SPStyle::stroke_ps_modified_connection, 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->document = document;
    style->text = sp_text_style_new();
    style->text_private = TRUE;

    sp_style_clear(style);

    style->cloned = false;

    new (&style->release_connection) sigc::connection();
    new (&style->filter_modified_connection) sigc::connection();
    new (&style->fill_ps_modified_connection) sigc::connection();
    new (&style->stroke_ps_modified_connection) sigc::connection();

    return style;
}


Generated by  Doxygen 1.6.0   Back to index