Template CairoCountedClass

Mixin used by cairoD classes which wrap a reference counted cairo handle.

Arguments

template CairoCountedClass(T, string prefix);

Variables

Field name Field Type Descrption
debugging bool Enable / disable memory management debugging for this instance. Only available if both cairoD and the cairoD user code were compiled with "debug=RefCounted"
nativePointer T The underlying handle

Functions

Function name Description
dispose Explicitly drecrease the reference count.
_count Reference count. For use in child classes
_dereference Decrease reference count. For use in child classes
_reference Increase reference count. For use in child classes

Authors

Johannes Pfau cairoD
cairo team cairo

Copyright

License

cairoD wrapper/bindings Boost License 1.0
cairo LGPL 2.1 / MPL 1.1