GXDE Bernese
Loading...
Searching...
No Matches
backdrop_origin.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 BACKDROP_ORIGIN_BACKDROP_ORIGIN_H_
19#define BACKDROP_ORIGIN_BACKDROP_ORIGIN_H_
20
21#include "QPoint"
22#include "QRect"
23#include "QSize"
24#include "QString"
25
26#include "bernese/export.h"
27
28namespace bernese {
29namespace wayland {
30
42BERNESE_EXPORT QRect LogicalWorkArea(const QRect& native_output,
43 const QRect& native_area, const QRect& logical_output);
44
55BERNESE_EXPORT QRect XwaylandWorkArea(
56 const QString& output_name, const QRect& logical_output);
57
68BERNESE_EXPORT QPoint BackdropOrigin(const QRect& screen, const QSize& surface,
69 const QRect& available, const QPoint& fallback);
70
71} // namespace wayland
72} // namespace bernese
73
74#endif // BACKDROP_ORIGIN_BACKDROP_ORIGIN_H_