Lines Matching defs:_pReg
117 static inline void RegionInit(RegionPtr _pReg, BoxPtr _rect, int _size)
121 (_pReg)->extents = *(_rect);
122 (_pReg)->data = (RegDataPtr)NULL;
127 (_pReg)->extents = RegionEmptyBox;
129 (((_pReg)->data = malloc(rgnSize)) != NULL)) {
130 (_pReg)->data->size = (_size);
131 (_pReg)->data->numRects = 0;
134 (_pReg)->data = &RegionEmptyData;
143 static inline void RegionUninit(RegionPtr _pReg)
145 if ((_pReg)->data && (_pReg)->data->size) {
146 free((_pReg)->data);
147 (_pReg)->data = NULL;
151 static inline void RegionReset(RegionPtr _pReg, BoxPtr _pBox)
153 (_pReg)->extents = *(_pBox);
154 RegionUninit(_pReg);
155 (_pReg)->data = (RegDataPtr)NULL;
158 static inline Bool RegionNotEmpty(RegionPtr _pReg) {
159 return !RegionNil(_pReg);
162 static inline Bool RegionBroken(RegionPtr _pReg) {
163 return RegionNar(_pReg);
166 static inline void RegionEmpty(RegionPtr _pReg)
168 RegionUninit(_pReg);
169 (_pReg)->extents.x2 = (_pReg)->extents.x1;
170 (_pReg)->extents.y2 = (_pReg)->extents.y1;
171 (_pReg)->data = &RegionEmptyData;
174 static inline BoxPtr RegionExtents(RegionPtr _pReg)
176 return (&(_pReg)->extents);
179 static inline void RegionNull(RegionPtr _pReg)
181 (_pReg)->extents = RegionEmptyBox;
182 (_pReg)->data = &RegionEmptyData;