Logo Search packages:      
Sourcecode: inkscape version File versions

int sp_desktop_query_style ( SPDesktop desktop,
SPStyle style,
int  property 
)

Query the subselection (if any) or selection on the given desktop for the given property, write the result to style, return appropriate flag.

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

References SPDesktop::_query_style_signal, Inkscape::Selection::itemList(), SPDesktop::selection, and sp_desktop_query_style_from_list().

Referenced by sp_desktop_query_style_all().

{
    int ret = desktop->_query_style_signal.emit(style, property);

    if (ret != QUERY_STYLE_NOTHING)
        return ret; // subselection returned a style, pass it on

    // otherwise, do querying and averaging over selection
    return sp_desktop_query_style_from_list ((GSList *) desktop->selection->itemList(), style, property);
}


Generated by  Doxygen 1.6.0   Back to index