4#ifndef QWAYLANDSURFACEITEM_H
5#define QWAYLANDSURFACEITEM_H
7#include <QtWaylandCompositor/qtwaylandcompositorglobal.h>
9#include <QtQuick/QQuickItem>
10#include <QtQuick/qsgtexture.h>
12#include <QtQuick/qsgtextureprovider.h>
14#include <QtWaylandCompositor/qwaylandview.h>
15#include <QtWaylandCompositor/qwaylandquicksurface.h>
32 Q_PROPERTY(
bool paintEnabled READ isPaintEnabled WRITE setPaintEnabled NOTIFY paintEnabledChanged)
33 Q_PROPERTY(
bool touchEventsEnabled READ touchEventsEnabled WRITE setTouchEventsEnabled NOTIFY touchEventsEnabledChanged)
35 Q_PROPERTY(
bool inputEventsEnabled READ inputEventsEnabled WRITE setInputEventsEnabled NOTIFY inputEventsEnabledChanged)
36 Q_PROPERTY(
bool focusOnClick READ focusOnClick WRITE setFocusOnClick NOTIFY focusOnClickChanged)
37 Q_PROPERTY(
QObject *subsurfaceHandler READ subsurfaceHandler WRITE setSubsurfaceHandler NOTIFY subsurfaceHandlerChanged)
39 Q_PROPERTY(
bool bufferLocked READ isBufferLocked WRITE setBufferLocked NOTIFY bufferLockedChanged)
40 Q_PROPERTY(
bool allowDiscardFrontBuffer READ allowDiscardFrontBuffer WRITE setAllowDiscardFrontBuffer NOTIFY allowDiscardFrontBufferChanged)
58 bool isTextureProvider()
const override;
61 bool isPaintEnabled()
const;
62 bool touchEventsEnabled()
const;
64 void setTouchEventsEnabled(
bool enabled);
66 bool inputEventsEnabled()
const;
67 void setInputEventsEnabled(
bool enabled);
69 bool focusOnClick()
const;
70 void setFocusOnClick(
bool focus);
72 bool inputRegionContains(
const QPointF &localPosition)
const;
81 QObject *subsurfaceHandler()
const;
82 void setSubsurfaceHandler(
QObject*);
87 bool isBufferLocked()
const;
88 void setBufferLocked(
bool locked);
90 bool allowDiscardFrontBuffer()
const;
91 void setAllowDiscardFrontBuffer(
bool discard);
102#if QT_CONFIG(wheelevent)
103 void wheelEvent(QWheelEvent *
event)
override;
110 void touchUngrabEvent()
override;
119 void setPaintEnabled(
bool paintEnabled);
125 void surfaceMappedChanged();
126 void handleSurfaceChanged();
129 void updateBuffer(
bool hasBuffer);
134 void handleSubsurfacePosition(
const QPoint &
pos);
137#if QT_CONFIG(draganddrop)
141 void updateInputMethod(Qt::InputMethodQueries queries);
static void setSurface(JNIEnv *env, jobject, jint id, jobject jSurface, jint w, jint h)
static void updateWindow(JNIEnv *, jobject)
IOBluetoothDevice * device
The QKeyEvent class describes a key event.
\inmodule QtCore\reentrant
\inmodule QtCore\reentrant
The QQuickItem class provides the most basic of all visual items in \l {Qt Quick}.
\group qtquick-scenegraph-nodes \title Qt Quick Scene Graph Node classes
The QSGTextureProvider class encapsulates texture based entities in QML.
The QTouchEvent class contains parameters that describe a touch event.
\qmltype WaylandCompositor \instantiates QWaylandCompositor \inqmlmodule QtWayland....
\qmltype WaylandOutput \instantiates QWaylandOutput \inqmlmodule QtWayland.Compositor
\qmltype WaylandQuickItem \instantiates QWaylandQuickItem \inqmlmodule QtWayland.Compositor
void allowDiscardFrontBufferChanged()
void touchEventsEnabledChanged()
void inputEventsEnabledChanged()
void paintEnabledChanged()
void subsurfaceHandlerChanged()
void focusOnClickChanged()
void mouseMove(const QPointF &windowPosition)
void surfaceDestroyed()
\qmlsignal void QtWayland.Compositor::WaylandQuickItem::surfaceDestroyed()
Q_REVISION(1, 13) Q_INVOKABLE QPointF mapFromSurface(const QPointF &point) const
void bufferLockedChanged()
\qmltype WaylandSeat \instantiates QWaylandSeat \inqmlmodule QtWayland.Compositor
\qmltype WaylandSurface \instantiates QWaylandSurface \inqmlmodule QtWayland.Compositor
Origin
This enum type is used to specify the origin of a QWaylandSurface's buffer.
\qmltype WaylandView \instantiates QWaylandView \inqmlmodule QtWayland.Compositor
Combined button and popup list for selecting options.
static QOpenGLCompositor * compositor
GLenum GLenum GLsizei const GLuint GLboolean enabled
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
#define QML_NAMED_ELEMENT(NAME)
#define QML_ADDED_IN_VERSION(MAJOR, MINOR)
static qreal position(const QQuickItem *item, QQuickAnchors::Anchor anchorLine)
#define QT_REQUIRE_CONFIG(feature)
QT_BEGIN_NAMESPACE typedef uchar * output
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent