Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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
5
6#include <QtWaylandClient/private/qwaylanddisplay_p.h>
7#include <QtWaylandClient/private/qwaylandwindow_p.h>
8#include <QtWaylandClient/private/qwaylandscreen_p.h>
9#include <QtWaylandClient/private/qwaylandextendedsurface_p.h>
10
12
13namespace QtWaylandClient {
14
16 : QtWayland::ivi_surface(ivi_surface)
18 , m_window(window)
19{
20 createExtendedSurface(window);
21}
22
24 struct ::ivi_controller_surface *iviControllerSurface)
25 : QtWayland::ivi_surface(ivi_surface)
27 , QtWayland::ivi_controller_surface(iviControllerSurface)
28 , m_window(window)
29{
30 createExtendedSurface(window);
31}
32
34{
35 ivi_surface::destroy();
36 if (QtWayland::ivi_controller_surface::object())
37 QtWayland::ivi_controller_surface::destroy(0);
38
39 delete m_extendedWindow;
40}
41
43{
44 m_window->resizeFromApplyConfigure(m_pendingSize);
45}
46
47void QWaylandIviSurface::createExtendedSurface(QWaylandWindow *window)
48{
50 m_extendedWindow = new QWaylandExtendedSurface(window);
51}
52
54{
55 m_pendingSize = {width, height};
57}
58
60{
61 this->m_window->window()->setVisible(visibility != 0);
62}
63
64}
65
QWindow * window() const
Returns the window which belongs to the QPlatformWindow.
QWaylandIviSurface()
Constructs a QWaylandIviSurface.
void setVisible(bool visible)
Definition qwindow.cpp:689
QtWayland::qt_surface_extension * windowExtension() const
void ivi_surface_configure(int32_t width, int32_t height) override
void ivi_controller_surface_visibility(int32_t visibility) override
QWaylandDisplay * display() const
void resizeFromApplyConfigure(const QSize &sizeWithMargins, const QPoint &offset={0, 0})
Combined button and popup list for selecting options.
GLint GLsizei GLsizei height
GLint GLsizei width
aWidget window() -> setWindowTitle("New Window Title")
[2]