Ignore:
Timestamp:
Aug 17, 2009, 7:06:32 AM (16 years ago)
Author:
Dmitry A. Kuminov
Message:

gui: Added OS/2 support to QRasterWindowSurface and to QNativeImage (this gives us rendering of the widget contents in double-buffer mode).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gui/kernel/qwidget.cpp

    r112 r115  
    1035910359        qErrnoWarning("QWidget::releaseDC(): failed to release HDC");
    1036010360}
     10361#elif defined (Q_WS_PM)
     10362/*!
     10363    Returns the window system handle of the widget, for low-level
     10364    access. Using this function is not portable.
     10365
     10366    An HPS acquired with getPS() has to be released with releasePS().
     10367
     10368    \warning Using this function is not portable.
     10369*/
     10370HPS QWidget::getPS() const
     10371{
     10372    Q_D(const QWidget);
     10373    if (d->hd != NULLHANDLE)
     10374        return (HPS) d->hd;
     10375    return WinGetPS(winId());
     10376}
     10377
     10378/*!
     10379    Releases the HPS \a hdc acquired by a previous call to getPS().
     10380
     10381    \warning Using this function is not portable.
     10382*/
     10383void QWidget::releasePS(HPS hps) const
     10384{
     10385    Q_D(const QWidget);
     10386    // If there is a widget's own ps, the release operation is ignored because
     10387    // it will be released elsewhere. Otherwise, we assume that the given hps
     10388    // was acquired by WinGetPS in the getPS() call and release it.
     10389    if (d->hd == NULLHANDLE)
     10390        WinReleasePS(hps);
     10391}
    1036110392#else
    1036210393/*!
Note: See TracChangeset for help on using the changeset viewer.