KWin
Loading...
Searching...
No Matches
xcb_scaling_mock.cpp
Go to the documentation of this file.
1/*
2 KWin - the KDE window manager
3 This file is part of the KDE project.
4
5 SPDX-FileCopyrightText: 2022 Aleix Pol Gonzalez <aleixpol@kde.org>
6
7 SPDX-License-Identifier: GPL-2.0-or-later
8*/
9
10#include <utils/xcbutils.h>
11
12namespace KWin
13{
14
15uint32_t Xcb::toXNative(qreal value)
16{
17 return value;
18}
19
20qreal Xcb::fromXNative(int value)
21{
22 return value;
23}
24
25QSizeF Xcb::fromXNative(const QSize &value)
26{
27 return value;
28}
29
30QRectF Xcb::nativeFloor(const QRectF &value)
31{
32 return value;
33}
34}
qreal fromXNative(int value)
Definition xcbutils.cpp:632
uint32_t toXNative(qreal value)
Definition xcbutils.cpp:618