KWin
Loading...
Searching...
No Matches
autotests
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
12
namespace
KWin
13
{
14
15
uint32_t
Xcb::toXNative
(qreal value)
16
{
17
return
value;
18
}
19
20
qreal
Xcb::fromXNative
(
int
value)
21
{
22
return
value;
23
}
24
25
QSizeF
Xcb::fromXNative
(
const
QSize &value)
26
{
27
return
value;
28
}
29
30
QRectF Xcb::nativeFloor(
const
QRectF &value)
31
{
32
return
value;
33
}
34
}
KWin::Xcb::fromXNative
qreal fromXNative(int value)
Definition
xcbutils.cpp:632
KWin::Xcb::toXNative
uint32_t toXNative(qreal value)
Definition
xcbutils.cpp:618
KWin
Definition
activation_test.cpp:20
xcbutils.h
Generated on Sat Feb 17 2024 01:42:09 for KWin by
1.10.0