#include <region.h>
Public Member Functions | |
bool | isEmpty () const |
true if region empty | |
bool | contains (const Point &p) const |
check if a region contains a point | |
bool | contains (const Rect &r) const |
Check if a region contains/overlaps a rectangle. | |
void | translate (int dx, int dy) |
Move a region by dx, dy. | |
Region | unite (const Region &r) const |
Region | intersect (const Region &r) const |
Region | subtract (const Region &r) const |
Region | eor (const Region &r) const |
const Rect & | boundingRect () const |
const RectArray & | rects () const |
returns the array of rectangles composing the region | |
Region | operator| (const Region &r) const |
Region | operator+ (const Region &r) const |
Region | operator & (const Region &r) const |
Region | operator- (const Region &r) const |
Region | operator^ (const Region &r) const |
Region & | operator|= (const Region &r) |
Region & | operator+= (const Region &r) |
Region & | operator &= (const Region &r) |
Region & | operator-= (const Region &r) |
Region & | operator^= (const Region &r) |
bool | operator== (const Region &r) const |
compare two regions | |
bool | operator!= (const Region &r) const |
compare two regions | |
Contructors | |
Region () | |
Create a new empty region. | |
Region (const Rect &rect) | |
Region from rectangle. | |
Region (const Point &p) | |
Region from point. | |
Protected Member Functions | |
void | detach () |
pixels outside the region are always ignored
Wt::Region::Region | ( | ) |
Create a new empty region.
const Rect& Wt::Region::boundingRect | ( | ) | const [inline] |
bool Wt::Region::contains | ( | const Rect & | r | ) | const |
Check if a region contains/overlaps a rectangle.
bool Wt::Region::contains | ( | const Point & | p | ) | const |
check if a region contains a point
void Wt::Region::detach | ( | ) | [protected] |
bool Wt::Region::isEmpty | ( | ) | const [inline] |
true if region empty
bool Wt::Region::operator!= | ( | const Region & | r | ) | const [inline] |
compare two regions
bool Wt::Region::operator== | ( | const Region & | r | ) | const |
compare two regions
const RectArray& Wt::Region::rects | ( | ) | const [inline] |
returns the array of rectangles composing the region
void Wt::Region::translate | ( | int | dx, | |
int | dy | |||
) |
Move a region by dx, dy.
This document is licensed under the terms of the GNU Free Documentation License and may be freely distributed under the conditions given by this license.