- Timestamp:
- Jun 15, 2010, 4:49:35 PM (15 years ago)
- Location:
- trunk/src/gui/kernel
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gui/kernel/qapplication_pm.cpp
r705 r748 2572 2572 } 2573 2573 2574 QDebug operator<<(QDebug debug, const QDebugHRGN &d) 2575 { 2576 RGNRECT ctl; 2577 ctl.ircStart = 1; 2578 ctl.crc = 0; 2579 ctl.crcReturned = 0; 2580 ctl.ulDirection = RECTDIR_LFRT_BOTTOP; 2581 GpiQueryRegionRects(qt_display_ps(), d.hrgn, NULL, &ctl, NULL); 2582 ctl.crc = ctl.crcReturned; 2583 int rclcnt = ctl.crcReturned; 2584 PRECTL rcls = new RECTL[rclcnt]; 2585 GpiQueryRegionRects(qt_display_ps(), d.hrgn, NULL, &ctl, rcls); 2586 PRECTL rcl = rcls; 2587 debug.nospace() << "HRGN{"; 2588 for (int i = 0; i < rclcnt; i++, rcl++) 2589 debug.nospace() << " " << *rcl; 2590 delete [] rcls; 2591 debug.nospace() << "}"; 2592 return debug.space(); 2593 } 2594 2574 2595 QDebug operator<<(QDebug debug, const RECTL &rcl) 2575 2596 { -
trunk/src/gui/kernel/qwindowdefs_pm.h
r704 r748 95 95 QDebug operator<<(QDebug debug, const QDebugHWND &d); 96 96 97 struct QDebugHRGN { HRGN hrgn; }; 98 inline QDebugHRGN qDebugHRGN(HRGN hrgn) { QDebugHRGN d = { hrgn }; return d; } 99 QDebug operator<<(QDebug debug, const QDebugHRGN &d); 100 97 101 // the following declarations require OS/2 types not defined here, 98 102 // don't drag them in as well but require qt_os2.h to be included first
Note:
See TracChangeset
for help on using the changeset viewer.