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

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 pointer to a anchored object of a given type, increment that object's reference count, and return a pointer to the object of the same type as the function's parameter.

m a pointer to anchored object
the pointer to the object

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

Referenced by Inkscape::MessageContext::MessageContext(), pen_handle_button_press(), pen_handle_button_release(), and pen_handle_motion_notify().

    static_cast<Anchored const *>(const_cast<R const *>(r))->anchor();
    return r;

Generated by  Doxygen 1.6.0   Back to index