Lines Matching defs:Region
33 class Region
36 Region();
37 Region(const Region& rhs);
38 explicit Region(const Rect& rhs);
39 explicit Region(const void* buffer);
40 ~Region();
42 Region& operator = (const Region& rhs);
50 // the region becomes its bounds
51 Region& makeBoundsSelf();
57 Region& orSelf(const Rect& rhs);
58 Region& andSelf(const Rect& rhs);
59 Region& subtractSelf(const Rect& rhs);
62 Region& orSelf(const Region& rhs);
63 Region& andSelf(const Region& rhs);
64 Region& subtractSelf(const Region& rhs);
67 const Region merge(const Rect& rhs) const;
68 const Region intersect(const Rect& rhs) const;
69 const Region subtract(const Rect& rhs) const;
72 const Region merge(const Region& rhs) const;
73 const Region intersect(const Region& rhs) const;
74 const Region subtract(const Region& rhs) const;
77 Region& translateSelf(int dx, int dy);
78 Region& orSelf(const Region& rhs, int dx, int dy);
79 Region& andSelf(const Region& rhs, int dx, int dy);
80 Region& subtractSelf(const Region& rhs, int dx, int dy);
83 const Region translate(int dx, int dy) const;
84 const Region merge(const Region& rhs, int dx, int dy) const;
85 const Region intersect(const Region& rhs, int dx, int dy) const;
86 const Region subtract(const Region& rhs, int dx, int dy) const;
89 inline const Region operator | (const Region& rhs) const;
90 inline const Region operator & (const Region& rhs) const;
91 inline const Region operator - (const Region& rhs) const;
92 inline const Region operator + (const Point& pt) const;
94 inline Region& operator |= (const Region& rhs);
95 inline Region& operator &= (const Region& rhs);
96 inline Region& operator -= (const Region& rhs);
97 inline Region& operator += (const Point& pt);
114 // be sorted in Y and X and must not make the region invalid.
117 // flatten/unflatten a region to/from a raw buffer
131 Region& operationSelf(const Rect& r, int op);
132 Region& operationSelf(const Region& r, int op);
133 Region& operationSelf(const Region& r, int dx, int dy, int op);
134 const Region operation(const Rect& rhs, int op) const;
135 const Region operation(const Region& rhs, int op) const;
136 const Region operation(const Region& rhs, int dx, int dy, int op) const;
138 static void boolean_operation(int op, Region& dst,
139 const Region& lhs, const Region& rhs, int dx, int dy);
140 static void boolean_operation(int op, Region& dst,
141 const Region& lhs, const Rect& rhs, int dx, int dy);
143 static void boolean_operation(int op, Region& dst,
144 const Region& lhs, const Region& rhs);
145 static void boolean_operation(int op, Region& dst,
146 const Region& lhs, const Rect& rhs);
148 static void translate(Region& reg, int dx, int dy);
149 static void translate(Region& dst, const Region& reg, int dx, int dy);
151 static bool validate(const Region& reg, const char* name);
158 const Region Region::operator | (const Region& rhs) const {
161 const Region Region::operator & (const Region& rhs) const {
164 const Region Region::operator - (const Region& rhs) const {
167 const Region Region::operator + (const Point& pt) const {
172 Region& Region::operator |= (const Region& rhs) {
175 Region& Region::operator &= (const Region& rhs) {
178 Region& Region::operator -= (const Region& rhs) {
181 Region& Region::operator += (const Point& pt) {