void ZFUIOnScreenKeyboardState::keyboardFixClientFrame(ZF_OUT ZFUIRect &clientFrame)
{
    zffloat scale = this->ownerSysWindow()->rootView()->scaleGetFixed();
    ZFPROTOCOL_ACCESS(ZFUIOnScreenKeyboardState)->keyboardFixClientFrame(
        this,
        ZFUIRectApplyScale(this->keyboardFrame(), scale),
        clientFrame);
    ZFUIRectApplyScaleReversely(clientFrame, clientFrame, scale);
}
static void _ZFP_ZFUISysWindowImpl_sys_Qt_updateWindowLayout(ZF_IN ZFUISysWindow *window, ZF_IN QWidget *nativeWindow)
{
    QRect screenRect = QApplication::desktop()->screenGeometry();
    ZFUIRect frame = ZFPROTOCOL_ACCESS(ZFUISysWindow)->notifyMeasureWindow(window, ZFUIRectMake(0, 0, screenRect.width(), screenRect.height()));
    nativeWindow->setGeometry(ZFImpl_sys_Qt_ZFUIKit_ZFUIRectToQRect(frame));
    if(nativeWindow->layout() != zfnull)
    {
        QRect t(0, 0, frame.size.width, frame.size.height);
        for(int i = 0; i < nativeWindow->layout()->count(); ++i)
        {
            nativeWindow->layout()->itemAt(i)->widget()->setGeometry(t);
        }
    }
}
Example #3
0
static void _ZFP_ZFObjectMutexImplCleanupCallback_ZFMutex(ZF_IN ZFObjectMutexImpl *mutexImpl)
{
    ZFPROTOCOL_ACCESS(ZFObjectMutex)->nativeMutexDestroy(mutexImpl);
}
Example #4
0
static ZFObjectMutexImpl *_ZFP_ZFObjectMutexImplInitCallback_ZFMutex(void)
{
    return ZFPROTOCOL_ACCESS(ZFObjectMutex)->nativeMutexCreate();
}