You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
574 B
39 lines
574 B
/* |
|
KWin - the KDE window manager |
|
This file is part of the KDE project. |
|
|
|
SPDX-FileCopyrightText: 2022 Aleix Pol Gonzalez <aleixpol@kde.org> |
|
|
|
SPDX-License-Identifier: GPL-2.0-or-later |
|
*/ |
|
|
|
#include <utils/xcbutils.h> |
|
|
|
namespace KWin |
|
{ |
|
|
|
uint32_t Xcb::toXNative(qreal value) |
|
{ |
|
return value; |
|
} |
|
|
|
QRect Xcb::toXNative(const QRectF &rect) |
|
{ |
|
return rect.toRect(); |
|
} |
|
|
|
qreal Xcb::fromXNative(int value) |
|
{ |
|
return value; |
|
} |
|
|
|
QSizeF Xcb::fromXNative(const QSize &value) |
|
{ |
|
return value; |
|
} |
|
|
|
QRectF Xcb::nativeFloor(const QRectF &value) |
|
{ |
|
return value; |
|
} |
|
}
|
|
|