Region

Undocumented in source.

Constructors

this
this(Region region)
Undocumented in source.
this
this(cairo_region_t* ptr)

Create a Region from a existing cairo_region_t*. Context is a garbage collected class. It will call cairo_region_destroy when it gets collected by the GC or when dispose() is called.

this
this(Rectangle!int rect)
this
this(Rectangle!int[] rects)

Destructor

~this
~this()
Undocumented in source.

Postblit

this(this)
this(this)

Constructor that tracks the reference count appropriately. If !refCountedIsInitialized, does nothing.

Members

Functions

_dereference
void _dereference()
Undocumented in source. Be warned that the author may not have intended to support it.
_reference
void _reference()
Undocumented in source. Be warned that the author may not have intended to support it.
checkError
void checkError()

Method for use in subclasses. Calls cairo_region_status(nativePointer) and throws an exception if the status isn't CAIRO_STATUS_SUCCESS

containsPoint
bool containsPoint(Point!int point)
containsRectangle
RegionOverlap containsRectangle(Rectangle!int rect)
copy
Region copy()
dispose
void dispose()

Explicitly drecrease the reference count.

getExtents
Rectangle!int getExtents()
getRectangle
Rectangle!int getRectangle(int index)
getRectangles
auto getRectangles()
intersect
void intersect(Region other)
intersect
void intersect(Rectangle!int other)
isEmpty
bool isEmpty()
numRectangles
int numRectangles()
opAssign
void opAssign(Region rhs)

Assignment operator

opEquals
bool opEquals(const(Region) other)
subtract
void subtract(Region other)
subtract
void subtract(Rectangle!int other)
translate
void translate(int dx, int dy)
unionWith
void unionWith(Region other)
unionWith
void unionWith(Rectangle!int other)
xor
void xor(Region other)
xor
void xor(Rectangle!int other)

Static functions

create
Region create()

Create a new, empty region

Variables

debugging
bool debugging;

Enable / disable memory management debugging for this Context instance. Only available if both cairoD and the cairoD user code were compiled with "debug=RefCounted"

debugging
bool debugging;
Undocumented in source.
nativePointer
cairo_region_t* nativePointer;

The underlying cairo_t* handle

Meta