You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
617 B
31 lines
617 B
/* |
|
SPDX-FileCopyrightText: 2016 Martin Graesslin <mgraesslin@kde.org> |
|
|
|
SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL |
|
|
|
*/ |
|
|
|
#ifndef KWIN_OSD_H |
|
#define KWIN_OSD_H |
|
|
|
#include <QFlags> |
|
#include <QString> |
|
|
|
namespace KWin |
|
{ |
|
namespace OSD |
|
{ |
|
|
|
void show(const QString &message, const QString &iconName = QString()); |
|
void show(const QString &message, int timeout); |
|
void show(const QString &message, const QString &iconName, int timeout); |
|
enum class HideFlag { |
|
SkipCloseAnimation = 1 |
|
}; |
|
Q_DECLARE_FLAGS(HideFlags, HideFlag) |
|
void hide(HideFlags flags = HideFlags()); |
|
|
|
} |
|
} |
|
|
|
#endif
|
|
|