Logo Search packages:      
Sourcecode: inkscape version File versions

template<typename R>
static R& Inkscape::GC::anchor ( R &  r  )  [inline, static]

Increments the reference count of a anchored object.

This function template generates functions which take a reference to a anchored object of a given type, increment that object's reference count, and return a reference to the object of the same type as the function's parameter.

Parameters:
m a reference to a anchored object
Returns:
the reference to the object

Definition at line 96 of file gc-anchored.h.

Referenced by box3d_toolbox_selection_changed(), Inkscape::Extension::Dependency::Dependency(), Inkscape::Extension::Extension::Extension(), sp_rect_toolbox_selection_changed(), sp_star_toolbox_selection_changed(), sp_tref_convert_to_tspan(), and sp_view_widget_set_view().

                       {
    static_cast<Anchored const &>(const_cast<R const &>(r)).anchor();
    return r;
}


Generated by  Doxygen 1.6.0   Back to index