1 Star 0 Fork 1

iceleaf/kwin

forked from Jingling/kwin 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
globalpinchgestures.h 995 Bytes
一键复制 编辑 原始数据 按行查看 历史
jingos 提交于 2021-11-30 16:22 . JingOS V1.1.0
/*
KWin - the KDE window manager
This file is part of the KDE project.
SPDX-FileCopyrightText: 2021 yongrui li <liyongrui@jingos.com>
SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef GLOBALPINCHGESTUREMGRS_H
#define GLOBALPINCHGESTUREMGRS_H
#include "gestures.h"
#include <QObject>
namespace KWin {
class PinchGesture;
class GestureRecognizer;
class GlobalPinchGestures : public QObject
{
Q_OBJECT
public:
explicit GlobalPinchGestures(QObject *parent = nullptr);
void registerGesture(GestureRecognizer *recongnizer);
void unregisterGesture(GestureRecognizer *recongnizer);
protected:
void init5FingersPinchGesture();
private slots:
void on5FingersPinchTriggered(quint32 time, const qreal &lastSpeed);
void on5FingersPinchCancelled(quint32 time, const qreal &lastSpeed);
private:
void showTaskPanel();
PinchGesture *m_5FingersPinchGesture = nullptr;
}; // GlobalPinchGesture
} // namespace
#endif // GLOBALPINCHGESTUREMGR_H
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/iceleaf/kwin.git
git@gitee.com:iceleaf/kwin.git
iceleaf
kwin
kwin
master

搜索帮助