Changeset 61 for trunk/include
- Timestamp:
- Feb 6, 2006, 10:43:39 PM (20 years ago)
- Location:
- trunk/include
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/qpainter.h
r8 r61 410 410 uint pixmapBrush : 1; 411 411 int devh; 412 QRegion repaintRgn; 412 QRegion def_crgn; 413 QRegion cur_crgn; 413 414 #elif defined(Q_WS_X11) 414 415 friend class QFontEngineXLFD; -
trunk/include/qregion.h
r8 r61 94 94 { return !(operator==(r)); } 95 95 96 #if defined(Q_WS_WIN) || defined(Q_WS_PM) 97 HRGN handle() const { if (! data->rgn ) update(); return data->rgn; } 96 #if defined(Q_WS_WIN) 97 HRGN handle() const { return data->rgn; } 98 #elif defined(Q_WS_PM) 99 HRGN handle( int target_height = 0 ) const { 100 if ( !data->rgn || data->hgt != target_height ) 101 updateHandle( target_height ); 102 return data->rgn; 103 } 98 104 #elif defined(Q_WS_X11) 99 105 Region handle() const { if(!data->rgn) updateX11Region(); return data->rgn; } … … 116 122 QRegion winCombine( const QRegion &, int ) const; 117 123 #elif defined(Q_WS_PM) 124 QRegion( HRGN hrgn, int target_height ); 118 125 QRegion pmCombine( const QRegion &, int ) const; 119 void update () const;126 void updateHandle( int target_height ) const; 120 127 #elif defined(Q_WS_X11) 121 128 void updateX11Region() const; … … 125 132 void exec( const QByteArray &, int ver = 0 ); 126 133 struct QRegionData : public QShared { 127 #if defined(Q_WS_WIN) || defined(Q_WS_PM)134 #if defined(Q_WS_WIN) 128 135 HRGN rgn; 136 #elif defined(Q_WS_PM) 137 HRGN rgn; 138 int hgt; 129 139 #elif defined(Q_WS_X11) 130 140 Region rgn; … … 150 160 friend class QETWidget; 151 161 friend class QPainter; 152 friend void qt_set_paintevent_clipping( QPaintDevice*, const QRegion& );153 162 #endif 154 163 -
trunk/include/qwidget.h
r57 r61 598 598 friend bool qt_window_rgn(WId, short, RgnHandle, bool); 599 599 friend class QDragManager; 600 #elif defined (Q_WS_PM) 601 enum ClipMode { Unclipped, ClipAll, ClipSiblings }; 602 HPS getTargetPS( ClipMode m = ClipAll ); 603 friend Q_EXPORT void bitBlt( QPaintDevice *, int, int, 604 const QPaintDevice *, 605 int, int, int, int, RasterOp, bool ); 600 606 #endif 601 607 -
trunk/include/qwindowdefs_pm.h
r8 r61 56 56 #include <os2.h> 57 57 58 // Innotek GCC lacks some API functions in its version of OS/2 Toolkit headers 59 60 #define QCRGN_ERROR 0 61 #define QCRGN_OK 1 62 #define QCRGN_NO_CLIP_REGION 2 63 64 LONG APIENTRY WinQueryClipRegion( HWND hwnd, HRGN hrgnClip ); 65 BOOL APIENTRY WinSetClipRegion( HWND hwnd, HRGN hrgnClip ); 66 58 67 #else 59 68 … … 71 80 typedef HWND WId; 72 81 73 //@@TODO (dmik): remove74 //Q_EXPORT HINSTANCE qWinAppInst();75 //Q_EXPORT HINSTANCE qWinAppPrevInst();76 //Q_EXPORT int qWinAppCmdShow();77 82 Q_EXPORT HPS qt_display_ps(); 78 83
Note:
See TracChangeset
for help on using the changeset viewer.