The OpenD Programming Language

CairoCountedClass

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

mixin template CairoCountedClass (
T
string prefix
) {
version(!D_Ddoc)
debug(RefCounted)
bool debugging;
}

Destructor

~this
~this()

Destructor. Call dispose() if it hasn't been called manually.

Members

Functions

_dereference
void _dereference()

Decrease reference count. For use in child classes

_reference
void _reference()

Increase reference count. For use in child classes

dispose
void dispose()

Explicitly drecrease the reference count.

Properties

_count
uint _count [@property getter]

Reference count. For use in child classes

Variables

debugging
bool debugging;

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 nativePointer;

The underlying $(T) handle

Meta