コード例 #1
0
ファイル: qeglfsintegration.cpp プロジェクト: ballock/qtbase
QPlatformWindow *QEglFSIntegration::createPlatformWindow(QWindow *window) const
{
    QEglFSWindow *w = new QEglFSWindow(window);
    w->create();
    w->requestActivateWindow();
    return w;
}
コード例 #2
0
ファイル: qeglfscontext.cpp プロジェクト: crobertd/qtbase
void QEglFSContext::swapBuffers(QPlatformSurface *surface)
{
    QEglFSWindow *window = static_cast<QEglFSWindow *>(surface);
    // draw the cursor
    if (QEglFSCursor *cursor = static_cast<QEglFSCursor *>(window->screen()->cursor()))
        cursor->paintOnScreen();

    QEGLPlatformContext::swapBuffers(surface);
}
コード例 #3
0
QPlatformWindow *QEglFSIntegration::createPlatformWindow(QWindow *window) const
{
    QWindowSystemInterface::flushWindowSystemEvents();
    QEglFSWindow *w = qt_egl_device_integration()->createWindow(window);
    w->create();
    if (window->type() != Qt::ToolTip)
        w->requestActivateWindow();
    return w;
}
コード例 #4
0
ファイル: qeglfscontext.cpp プロジェクト: crobertd/qtbase
EGLSurface QEglFSContext::eglSurfaceForPlatformSurface(QPlatformSurface *surface)
{
    QEglFSWindow *window = static_cast<QEglFSWindow *>(surface);
    return window->surface();
}