MauiKit Controls

android/windowhelper.h
1/*
2 * Copyright (C) 2021 CutefishOS Team.
3 *
4 * Author: cutefish <cutefishos@foxmail.com>
5 *
6 * This program is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, either version 3 of the License, or
9 * any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20#ifndef WINDOWHELPER_H
21#define WINDOWHELPER_H
22
23#include <QObject>
24#include <QWindow>
25
26class WindowHelper : public QObject
27{
29
30public:
31 explicit WindowHelper(QObject *parent = nullptr);
32
33 Q_INVOKABLE void startSystemMove(QWindow *w);
34 Q_INVOKABLE void startSystemResize(QWindow *w, Qt::Edges edges);
35
36 Q_INVOKABLE void minimizeWindow(QWindow *w);
37
38private:
39 void doStartSystemMoveResize(QWindow *w, int edges);
40
41private:
42};
43
44#endif // WINDOWHELPER_H
Q_INVOKABLEQ_INVOKABLE
Q_OBJECTQ_OBJECT
QObject * parent() const const
typedef Edges
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri May 17 2024 11:56:16 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.