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
4
#
include
"qwaylandviewport_p.h"
5
6
QT_BEGIN_NAMESPACE
7
8
namespace
QtWaylandClient
{
9
10
QWaylandViewport
::
QWaylandViewport
(::wp_viewport *viewport)
11
:
QtWayland
::
wp_viewport
(
viewport
)
12
{
13
}
14
15
QWaylandViewport
::~
QWaylandViewport
()
16
{
17
destroy();
18
}
19
20
void
QWaylandViewport
::
setSource
(
const
QRectF &source)
21
{
22
set_source(wl_fixed_from_double(source.x()),
23
wl_fixed_from_double(source.y()),
24
wl_fixed_from_double(source.width()),
25
wl_fixed_from_double(source.height()));
26
}
27
28
void
QWaylandViewport
::
setDestination
(
const
QSize &destination)
29
{
30
set_destination(destination.width(), destination.height());
31
}
32
33
}
34
35
QT_END_NAMESPACE
QtWaylandClient::QWaylandViewport
Definition
qwaylandviewport_p.h:28
QtWaylandClient::QWaylandViewport::~QWaylandViewport
~QWaylandViewport() override
Definition
qwaylandviewport.cpp:15
QtWaylandClient::QWaylandViewport::setDestination
void setDestination(const QSize &destination)
Definition
qwaylandviewport.cpp:28
QtWaylandClient::QWaylandViewport::QWaylandViewport
QWaylandViewport(::wp_viewport *viewport)
Definition
qwaylandviewport.cpp:10
QtWaylandClient::QWaylandViewport::setSource
void setSource(const QRectF &source)
Definition
qwaylandviewport.cpp:20
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qstandardpaths_haiku.cpp:21
QtWaylandClient
Definition
qwaylandclientextension.h:15
qtwayland
src
client
qwaylandviewport.cpp
Generated on Tue Apr 22 2025 17:12:12 for Qt by
1.13.2