7#include <QtWaylandCompositor/QWaylandCompositor>
8#include <QtWaylandCompositor/QWaylandSurface>
9#include <QtWaylandCompositor/QWaylandIviSurface>
10#include <QtWaylandCompositor/QWaylandResource>
85 qWarning() <<
"Failed to find QWaylandCompositor when initializing QWaylandIviApplication";
97 return QWaylandIviApplicationPrivate::interface();
105 return QWaylandIviApplicationPrivate::interfaceName();
150 uint32_t ivi_id, wl_resource *surfaceResource, uint32_t
id)
156 wl_resource_post_error(resource->handle, IVI_APPLICATION_ERROR_IVI_ID,
157 "Given ivi_id, %d, is already assigned to wl_surface@%d", ivi_id,
158 wl_resource_get_id(
m_iviSurfaces[ivi_id]->surface()->resource()));
165 QWaylandResource iviSurfaceResource(wl_resource_create(resource->client(), &ivi_surface_interface,
166 wl_resource_get_version(resource->handle),
id));
168 emit q->iviSurfaceRequested(surface, ivi_id, iviSurfaceResource);
177 emit q->iviSurfaceCreated(iviSurface);
182#include "moc_qwaylandiviapplication.cpp"
bool remove(const Key &key)
Removes the item that has the key from the hash.
bool contains(const Key &key) const noexcept
Returns true if the hash contains an item with the key; otherwise returns false.
iterator insert(const Key &key, const T &value)
Inserts a new item with the key and a value of value.
\inmodule QtWaylandCompositor
virtual void initialize()
Initializes the QWaylandCompositorExtension.
QWaylandObject * extensionContainer() const
\qmltype WaylandCompositor \instantiates QWaylandCompositor \inqmlmodule QtWayland....
QWaylandIviApplicationPrivate()
void ivi_application_surface_create(Resource *resource, uint32_t ivi_id, wl_resource *surface, uint32_t id) override
QHash< uint, QWaylandIviSurface * > m_iviSurfaces
void unregisterIviSurface(QWaylandIviSurface *iviSurface)
\qmltype IviApplication \instantiates QWaylandIviApplication \inqmlmodule QtWayland....
static const struct wl_interface * interface()
Returns the Wayland interface for the QWaylandIviApplication.
QWaylandIviApplication()
Constructs a QWaylandIviApplication object.
static QByteArray interfaceName()
void initialize() override
Initializes the shell extension.
\qmltype IviSurface \instantiates QWaylandIviSurface \inqmlmodule QtWayland.Compositor....
static QWaylandSurfaceRole * role()
Returns the surface role for the QWaylandIviSurface.
uint iviId
\qmlproperty int IviSurface::iviId \readonly
static QWaylandIviSurface * fromResource(::wl_resource *resource)
Returns the QWaylandIviSurface corresponding to the resource.
\inmodule QtWaylandCompositor
wl_resource * resource() const
\qmltype WaylandSurface \instantiates QWaylandSurface \inqmlmodule QtWayland.Compositor
static QWaylandSurface * fromResource(::wl_resource *resource)
Returns the QWaylandSurface corresponding to the Wayland resource resource.
bool setRole(QWaylandSurfaceRole *role, wl_resource *errorResource, uint32_t errorCode)
Sets a role on the surface.
Combined button and popup list for selecting options.
static QOpenGLCompositor * compositor
GLdouble GLdouble GLdouble GLdouble q