Add blur strength for wayland.

This commit is contained in:
Mouse Zhang 2022-09-19 16:00:54 +08:00 committed by Mouse Zhang
parent 3d1b58de11
commit 2d7f043933
2 changed files with 9 additions and 0 deletions

View File

@ -1,6 +1,7 @@
/* /*
SPDX-FileCopyrightText: 2015 Martin Gräßlin <mgraesslin@kde.org> SPDX-FileCopyrightText: 2015 Martin Gräßlin <mgraesslin@kde.org>
SPDX-FileCopyrightText: 2015 Marco Martin <mart@kde.org> SPDX-FileCopyrightText: 2015 Marco Martin <mart@kde.org>
SPDX-FileCopyrightText: 2022 KylinSoft Co., Ltd.
SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
*/ */
@ -146,6 +147,11 @@ void Blur::setRegion(Region *region)
org_kde_kwin_blur_set_region(d->blur, *region); org_kde_kwin_blur_set_region(d->blur, *region);
} }
void Blur::setStrength(uint32_t strength)
{
org_kde_kwin_blur_set_strength(d->blur, strength);
}
Blur::operator org_kde_kwin_blur *() Blur::operator org_kde_kwin_blur *()
{ {
return d->blur; return d->blur;

View File

@ -1,6 +1,7 @@
/* /*
SPDX-FileCopyrightText: 2015 Martin Gräßlin <mgraesslin@kde.org> SPDX-FileCopyrightText: 2015 Martin Gräßlin <mgraesslin@kde.org>
SPDX-FileCopyrightText: 2015 Marco Martin <mart@kde.org> SPDX-FileCopyrightText: 2015 Marco Martin <mart@kde.org>
SPDX-FileCopyrightText: 2022 KylinSoft Co., Ltd.
SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
*/ */
@ -177,6 +178,8 @@ public:
*/ */
void setRegion(Region *region); void setRegion(Region *region);
void setStrength(uint32_t strength);
operator org_kde_kwin_blur *(); operator org_kde_kwin_blur *();
operator org_kde_kwin_blur *() const; operator org_kde_kwin_blur *() const;