Context.this - multiple declarations
- Function Context.this
- Function Context.this
Function Context.this
Create a Context
from a existing cairo_t*.
Context
is a garbage collected class. It will call cairo_destroy
when it gets collected by the GC or when dispose
() is called.
Prototype
ref this(
cairo_t* ptr
);
Warning
ptr
's reference count is not increased by this function!
Adjust reference count before calling it if necessary
Only use this if you know what your doing! This function should not be needed for standard cairoD usage.
Function Context.this
Creates a new Context
with all graphics state parameters set
to default values and with target
as a target
surface. The
target
surface should be constructed with a backend-specific
function such as new ImageSurface
().
This function references target
, so you can immediately call
Surface.dispose() on it if you don't need to maintain
a separate reference to it.
Prototype
ref this(
Surface target
);
Authors
Johannes Pfau | cairoD |
Andrej Mitrovic | cairoD |
cairo team | cairo |
Copyright
License
cairoD wrapper/bindings | Boost License 1.0 |
cairo | LGPL 2.1 / MPL 1.1 |