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
qwaylandivisurface.cpp
Go to the documentation of this file.
1
// Copyright (C) 2017 ITAGE Corporation, author: <yusuke.binsaki@itage.co.jp>
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:critical reason:network-protocol
4
5
#
include
"qwaylandivisurface_p.h"
6
7
#
include
<
QtWaylandClient
/
private
/
qwaylanddisplay_p
.
h
>
8
#
include
<
QtWaylandClient
/
private
/
qwaylandwindow_p
.
h
>
9
#
include
<
QtWaylandClient
/
private
/
qwaylandscreen_p
.
h
>
10
11
QT_BEGIN_NAMESPACE
12
13
namespace
QtWaylandClient
{
14
15
QWaylandIviSurface
::
QWaylandIviSurface
(
struct
::ivi_surface *
ivi_surface
,
QWaylandWindow
*
window
)
16
:
QtWayland
::
ivi_surface
(
ivi_surface
)
17
,
QWaylandShellSurface
(
window
)
18
,
m_window
(
window
)
19
{
20
}
21
22
QWaylandIviSurface
::
QWaylandIviSurface
(
struct
::ivi_surface *
ivi_surface
,
QWaylandWindow
*
window
,
23
struct
::ivi_controller_surface *
iviControllerSurface
)
24
:
QtWayland
::
ivi_surface
(
ivi_surface
)
25
,
QWaylandShellSurface
(
window
)
26
,
QtWayland
::
ivi_controller_surface
(
iviControllerSurface
)
27
,
m_window
(
window
)
28
{
29
}
30
31
QWaylandIviSurface
::~
QWaylandIviSurface
()
32
{
33
ivi_surface
::
destroy
();
34
if
(
QtWayland
::
ivi_controller_surface
::
object
())
35
QtWayland
::
ivi_controller_surface
::
destroy
(0);
36
}
37
38
void
QWaylandIviSurface
::
applyConfigure
()
39
{
40
m_window
->
resizeFromApplyConfigure
(
m_pendingSize
);
41
}
42
43
void
QWaylandIviSurface
::
ivi_surface_configure
(
int32_t
width
,
int32_t
height
)
44
{
45
m_pendingSize
= {
width
,
height
};
46
m_window
->
applyConfigureWhenPossible
();
47
}
48
49
void
QWaylandIviSurface
::
ivi_controller_surface_visibility
(
int32_t
visibility
)
50
{
51
this
->
m_window
->
window
()->
setVisible
(
visibility
!= 0);
52
}
53
54
}
55
56
QT_END_NAMESPACE
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
QtWaylandClient
Definition
qwaylandclientextension.h:16
qtwayland
src
plugins
shellintegration
ivi-shell
qwaylandivisurface.cpp
Generated on
for Qt by
1.16.1