Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qwaylandviewport.cpp
Go to the documentation of this file.
1// Copyright (C) 2022 David Edmundson <davidedmundson@kde.org>
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3// Qt-Security score:significant reason:default
4
6
8
9namespace QtWaylandClient {
10
11QWaylandViewport::QWaylandViewport(::wp_viewport *viewport)
13{
14}
15
17{
18 destroy();
19}
20
21void QWaylandViewport::setSource(const QRectF &source)
22{
23 set_source(wl_fixed_from_double(source.x()),
24 wl_fixed_from_double(source.y()),
25 wl_fixed_from_double(source.width()),
26 wl_fixed_from_double(source.height()));
27}
28
29void QWaylandViewport::setDestination(const QSize &destination)
30{
31 set_destination(destination.width(), destination.height());
32}
33
34}
35
36QT_END_NAMESPACE
void setDestination(const QSize &destination)
QWaylandViewport(::wp_viewport *viewport)
void setSource(const QRectF &source)
Combined button and popup list for selecting options.