GXDE Bernese
Loading...
Searching...
No Matches
window_effects.h
1/*
2 * Copyright (C) 2026 CharOfString <root@charofstring.cc>
3 *
4 * This program is free software: you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License as published by the Free
6 * Software Foundation, either version 3 of the License, or (at your option)
7 * any later version.
8 *
9 * This program is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12 * more details.
13 *
14 * You should have received a copy of the GNU General Public License along with
15 * this program. If not, see <https://www.gnu.org/licenses/>.
16 */
17
18#ifndef WINDOW_EFFECTS_WINDOW_EFFECTS_H_
19#define WINDOW_EFFECTS_WINDOW_EFFECTS_H_
20
21#include "QList"
22#include "QRect"
23#include "QWindow"
24
25#include "bernese/export.h"
26
27namespace bernese {
28namespace window_effects {
29
52BERNESE_EXPORT bool SetBlurBehind(
53 QWindow* window, const QList<QRect>& areas = {}, int radius = 0);
54
63BERNESE_EXPORT bool ClearBlurBehind(QWindow* window);
64
79BERNESE_EXPORT bool SetWindowRadius(QWindow* window, int radius);
80
88BERNESE_EXPORT bool SetNoTitleBar(QWindow* window, bool no_title_bar);
89
99BERNESE_EXPORT bool HasCompositingManager();
100
112BERNESE_EXPORT bool IsBlurBehindSupported();
113
114} // namespace window_effects
115} // namespace bernese
116
117#endif // WINDOW_EFFECTS_WINDOW_EFFECTS_H_