Changeset 749 for trunk/src/gui/kernel/qwidget_pm.cpp
- Timestamp:
- Jun 15, 2010, 4:52:07 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gui/kernel/qwidget_pm.cpp
r711 r749 230 230 } 231 231 232 /** \internal flags for qt_WinProcessWindowObstacles() */233 enum {234 PWO_Children = 0x01,235 PWO_Sibings = 0x02,236 PWO_Ancestors = 0x04,237 PWO_Screen = 0x08,238 PWO_TopLevel = 0x80000000,239 // PWO_Default is suitable in most cases (for simple paint operations)240 PWO_Default = PWO_Children | PWO_Sibings | PWO_Ancestors | PWO_Screen,241 };242 243 232 /*! 244 233 \internal 245 234 246 Helper function to collect all relative windows intersecting with the 247 given window and placed above it in z-order.248 249 \param hwnd window in question250 \param prcl rectangle (in window coordinates) to limit processing to251 (if null, the whole window rectange is used)252 \param hrgn region where to combine all obstacles253 (if 0, obstacles are directly validated instead of collecting) 254 \param op region operation perfomed when combining obstacles (CRGN_*)255 \param flags flags defining the scope (PWO_* ORed together)256 257 \return complexity of the combined region (only when \a hrgn is not 0)235 Helper function to collect all relative windows intersecting with the 236 237 the \a prcl rectangle (in window coordinates) which may be NULL to indicate 238 239 240 241 242 243 244 245 scope), the return value is RGN_NULL regardless of the original complexity 246 258 247 */ 259 static LONG qt_WinProcessWindowObstacles(HWND hwnd, PRECTLprcl, HRGN hrgn,260 LONG op, LONG flags = PWO_Default)248 prcl, HRGN hrgn, 249 ) 261 250 { 262 251 Q_ASSERT(hwnd); … … 279 268 HRGN whrgn = GpiCreateRegion(displayPS, 0, NULL); 280 269 281 LONG cmplx = RGN_NULL;270 LONG cmplx; 282 271 HWND relative; 283 272 SWP swp; 273 274 284 275 285 276 // first, process areas placed outside the screen bounds … … 301 292 if (hrgn != NULLHANDLE) { 302 293 cmplx = GpiCombineRegion(displayPS, hrgn, hrgn, whrgn, op); 294 303 295 } else { 304 296 WinValidateRegion(hwnd, whrgn, FALSE); … … 336 328 if (hrgn != NULLHANDLE) { 337 329 cmplx = GpiCombineRegion(displayPS, hrgn, hrgn, whrgn, op); 330 338 331 } else { 339 332 WinValidateRegion(hwnd, whrgn, FALSE); … … 377 370 if (hrgn != NULLHANDLE) { 378 371 cmplx = GpiCombineRegion(displayPS, hrgn, hrgn, whrgn, op); 372 379 373 } else { 380 374 WinValidateRegion(hwnd, whrgn, FALSE); … … 436 430 if (hrgn != NULLHANDLE) { 437 431 cmplx = GpiCombineRegion(displayPS, hrgn, hrgn, whrgn, op); 432 438 433 } else { 439 434 WinValidateRegion(hwnd, whrgn, FALSE); … … 448 443 449 444 GpiDestroyRegion(displayPS, whrgn); 445 446 447 448 449 450 450 451 451 452 return cmplx;
Note:
See TracChangeset
for help on using the changeset viewer.