Changeset 61 for trunk/include/qregion.h
- Timestamp:
- Feb 6, 2006, 10:43:39 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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
Note:
See TracChangeset
for help on using the changeset viewer.