![]() |
Qt 6.x
The Qt SDK
|
#include <qwaylandsurface_p.h>
Inheritance diagram for QWaylandSurfacePrivate:
Collaboration diagram for QWaylandSurfacePrivate:Classes | |
| class | Subsurface |
Static Public Member Functions | |
| static QWaylandSurfacePrivate * | get (QWaylandSurface *surface) |
| static void | addUninitializedSurface (QWaylandSurfacePrivate *surface) |
| static void | removeUninitializedSurface (QWaylandSurfacePrivate *surface) |
| static bool | hasUninitializedSurface () |
Static Public Member Functions inherited from QObjectPrivate | |
| static bool | removeConnection (Connection *c) |
| static QObjectPrivate * | get (QObject *o) |
| static const QObjectPrivate * | get (const QObject *o) |
| template<typename Func1 , typename Func2 > | |
| static QMetaObject::Connection | connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot, Qt::ConnectionType type=Qt::AutoConnection) |
| template<typename Func1 , typename Func2 > | |
| static bool | disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot) |
| static QMetaObject::Connection | connectImpl (const QObject *sender, int signal_index, const QObject *receiver, void **slot, QtPrivate::QSlotObjectBase *slotObj, int type, const int *types, const QMetaObject *senderMetaObject) |
| static QMetaObject::Connection | connect (const QObject *sender, int signal_index, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type) |
| static QMetaObject::Connection | connect (const QObject *sender, int signal_index, const QObject *receiver, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type) |
| static bool | disconnect (const QObject *sender, int signal_index, void **slot) |
| static bool | disconnect (const QObject *sender, int signal_index, const QObject *receiver, void **slot) |
Static Public Attributes | |
| static QList< QWaylandSurfacePrivate * > | uninitializedSurfaces |
Protected Member Functions | |
| void | surface_destroy_resource (Resource *resource) override |
| void | surface_destroy (Resource *resource) override |
| void | surface_attach (Resource *resource, struct wl_resource *buffer, int x, int y) override |
| void | surface_damage (Resource *resource, int32_t x, int32_t y, int32_t width, int32_t height) override |
| void | surface_damage_buffer (Resource *resource, int32_t x, int32_t y, int32_t width, int32_t height) override |
| void | surface_frame (Resource *resource, uint32_t callback) override |
| void | surface_set_opaque_region (Resource *resource, struct wl_resource *region) override |
| void | surface_set_input_region (Resource *resource, struct wl_resource *region) override |
| void | surface_commit (Resource *resource) override |
| void | surface_set_buffer_transform (Resource *resource, int32_t transform) override |
| void | surface_set_buffer_scale (Resource *resource, int32_t bufferScale) override |
| QtWayland::ClientBuffer * | getBuffer (struct ::wl_resource *buffer) |
Additional Inherited Members | |
Public Types inherited from QObjectPrivate | |
| typedef void(* | StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **) |
| using | ConnectionDataPointer = QExplicitlySharedDataPointer< ConnectionData > |
Definition at line 54 of file qwaylandsurface_p.h.
| QWaylandSurfacePrivate::QWaylandSurfacePrivate | ( | ) |
Definition at line 83 of file qwaylandsurface.cpp.
References addUninitializedSurface(), infiniteRegion(), and pending.
Here is the call graph for this function:
|
override |
Definition at line 95 of file qwaylandsurface.cpp.
References QList< T >::at(), bufferRef, QList< T >::clear(), frameCallbacks, QWaylandViewPrivate::get(), i, QWaylandViewPrivate::markSurfaceAsDestroyed(), pendingFrameCallbacks, QList< T >::size(), and views.
Here is the call graph for this function:
|
static |
Definition at line 130 of file qwaylandsurface.cpp.
References QList< T >::append(), QListSpecialMethodsBase< T >::contains(), isInitialized, Q_ASSERT, and uninitializedSurfaces.
Referenced by QWaylandSurfacePrivate().
Here is the call graph for this function:
Here is the caller graph for this function:| void QWaylandSurfacePrivate::deref | ( | ) |
Definition at line 1006 of file qwaylandsurface.cpp.
References compositor, QWaylandCompositorPrivate::destroySurface(), QWaylandCompositorPrivate::get(), and refCount.
Referenced by derefView().
Here is the call graph for this function:
Here is the caller graph for this function:| void QWaylandSurfacePrivate::derefView | ( | QWaylandView * | view | ) |
Definition at line 1022 of file qwaylandsurface.cpp.
References deref(), i, QList< T >::removeAll(), view, and views.
Referenced by QWaylandView::~QWaylandView(), and QWaylandViewPrivate::setSurface().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 996 of file qwaylandsurface.cpp.
Referenced by QWaylandView::~QWaylandView(), QWaylandViewporterPrivate::Viewport::~Viewport(), QWaylandViewporterPrivate::Viewport::checkCommittedState(), QtWayland::FrameCallback::destroyCallback(), QWaylandSurfaceGrabber::grab(), QWaylandViewPrivate::setSurface(), QWaylandCompositorPrivate::subcompositor_get_subsurface(), QWaylandOutput::surfaceEnter(), QWaylandOutput::surfaceLeave(), QWaylandViewporterPrivate::Viewport::wp_viewport_destroy(), QWaylandViewporterPrivate::Viewport::wp_viewport_set_destination(), QWaylandViewporterPrivate::Viewport::wp_viewport_set_source(), QWaylandViewporterPrivate::wp_viewporter_get_viewport(), QWaylandIdleInhibitManagerV1Private::zwp_idle_inhibit_manager_v1_create_inhibitor(), and QWaylandIdleInhibitManagerV1Private::Inhibitor::zwp_idle_inhibitor_v1_destroy().
Here is the caller graph for this function:
|
protected |
Definition at line 334 of file qwaylandsurface.cpp.
References QWaylandCompositorPrivate::bufferManager(), compositor, QWaylandCompositorPrivate::get(), and QtWayland::BufferManager::getBuffer().
Referenced by surface_attach().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 144 of file qwaylandsurface.cpp.
References QList< T >::size(), and uninitializedSurfaces.
Referenced by QWaylandCompositorPrivate::compositor_create_surface().
Here is the call graph for this function:
Here is the caller graph for this function:| void QWaylandSurfacePrivate::initSubsurface | ( | QWaylandSurface * | parent, |
| struct ::wl_client * | client, | ||
| int | id, | ||
| int | version | ||
| ) |
Definition at line 1031 of file qwaylandsurface.cpp.
References client, emit, QObjectData::parent, and subsurface.
Referenced by QWaylandCompositorPrivate::subcompositor_get_subsurface().
Here is the caller graph for this function:
|
inline |
Definition at line 81 of file qwaylandsurface_p.h.
| void QWaylandSurfacePrivate::notifyViewsAboutDestruction | ( | ) |
Definition at line 116 of file qwaylandsurface.cpp.
References emit, QWaylandViewPrivate::get(), hasContent, QWaylandViewPrivate::markSurfaceAsDestroyed(), view, and views.
Referenced by surface_destroy_resource().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 82 of file qwaylandsurface_p.h.
References parentSurface().
Referenced by parentSurface().
Here is the call graph for this function:
Here is the caller graph for this function:| void QWaylandSurfacePrivate::ref | ( | ) |
Definition at line 1001 of file qwaylandsurface.cpp.
References refCount.
Referenced by refView().
Here is the caller graph for this function:| void QWaylandSurfacePrivate::refView | ( | QWaylandView * | view | ) |
Definition at line 1012 of file qwaylandsurface.cpp.
References QList< T >::append(), bufferRef, QListSpecialMethodsBase< T >::contains(), ref(), QWaylandBufferRef::size(), view, and views.
Referenced by QWaylandViewPrivate::setSurface().
Here is the call graph for this function:
Here is the caller graph for this function:| void QWaylandSurfacePrivate::removeFrameCallback | ( | QtWayland::FrameCallback * | callback | ) |
Definition at line 110 of file qwaylandsurface.cpp.
References frameCallbacks, pendingFrameCallbacks, and QList< T >::removeOne().
Referenced by QtWayland::FrameCallback::destroyCallback().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 137 of file qwaylandsurface.cpp.
References isInitialized, Q_ASSERT, QList< T >::removeOne(), and uninitializedSurfaces.
Referenced by QWaylandSurface::initialize().
Here is the call graph for this function:
Here is the caller graph for this function:
|
overrideprotected |
Definition at line 165 of file qwaylandsurface.cpp.
References getBuffer(), and pending.
Here is the call graph for this function:
|
overrideprotected |
Definition at line 209 of file qwaylandsurface.cpp.
References QRegion::boundingRect(), bufferRef, bufferScale, bufferSize, QWaylandViewporterPrivate::Viewport::checkCommittedState(), QList< T >::clear(), QRect::contains(), damage, destinationSize, emit, frameCallbacks, QWaylandBufferRef::hasContent(), hasContent, inputRegion, QPoint::isNull(), isOpaque, opaqueRegion, pending, pendingFrameCallbacks, QWaylandBufferRef::size(), QRectF::size(), sourceGeometry, QSizeF::toSize(), view, viewport, views, QPoint::x(), and xform.
Here is the call graph for this function:
|
overrideprotected |
Definition at line 178 of file qwaylandsurface.cpp.
References pending.
|
overrideprotected |
Definition at line 183 of file qwaylandsurface.cpp.
References pending.
|
overrideprotected |
Definition at line 160 of file qwaylandsurface.cpp.
|
overrideprotected |
Definition at line 150 of file qwaylandsurface.cpp.
References destroyed, emit, and notifyViewsAboutDestruction().
Here is the call graph for this function:
|
overrideprotected |
Definition at line 188 of file qwaylandsurface.cpp.
References pendingFrameCallbacks.
|
overrideprotected |
Definition at line 328 of file qwaylandsurface.cpp.
|
overrideprotected |
Definition at line 304 of file qwaylandsurface.cpp.
References contentOrientation, emit, Qt::InvertedLandscapeOrientation, Qt::InvertedPortraitOrientation, Qt::LandscapeOrientation, Qt::PortraitOrientation, Qt::PrimaryOrientation, QScreen::primaryOrientation, QGuiApplication::primaryScreen, Q_UNUSED, and screen.
|
overrideprotected |
Definition at line 200 of file qwaylandsurface.cpp.
References QtWayland::Region::fromResource(), infiniteRegion(), pending, and QtWayland::Region::region().
Here is the call graph for this function:
|
overrideprotected |
Definition at line 195 of file qwaylandsurface.cpp.
References QtWayland::Region::fromResource(), pending, and QtWayland::Region::region().
Here is the call graph for this function:| QWaylandBufferRef QWaylandSurfacePrivate::buffer |
Definition at line 116 of file qwaylandsurface_p.h.
| QRegion QWaylandSurfacePrivate::bufferDamage |
Definition at line 118 of file qwaylandsurface_p.h.
| QWaylandBufferRef QWaylandSurfacePrivate::bufferRef |
Definition at line 111 of file qwaylandsurface_p.h.
Referenced by ~QWaylandSurfacePrivate(), QWaylandSurfaceGrabber::grab(), refView(), and surface_commit().
| int QWaylandSurfacePrivate::bufferScale = 1 |
Definition at line 122 of file qwaylandsurface_p.h.
Referenced by surface_commit().
| QSize QWaylandSurfacePrivate::bufferSize |
Definition at line 143 of file qwaylandsurface_p.h.
Referenced by surface_commit().
| QWaylandClient* QWaylandSurfacePrivate::client = nullptr |
Definition at line 108 of file qwaylandsurface_p.h.
Referenced by initSubsurface().
| QWaylandCompositor* QWaylandSurfacePrivate::compositor = nullptr |
Definition at line 106 of file qwaylandsurface_p.h.
Referenced by deref(), and getBuffer().
| Qt::ScreenOrientation QWaylandSurfacePrivate::contentOrientation = Qt::PrimaryOrientation |
Definition at line 150 of file qwaylandsurface_p.h.
Referenced by surface_set_buffer_transform().
| QRegion QWaylandSurfacePrivate::damage |
Definition at line 110 of file qwaylandsurface_p.h.
Referenced by surface_commit().
| QSize QWaylandSurfacePrivate::destinationSize |
Definition at line 124 of file qwaylandsurface_p.h.
Referenced by surface_commit().
| bool QWaylandSurfacePrivate::destroyed = false |
Definition at line 146 of file qwaylandsurface_p.h.
Referenced by surface_destroy_resource().
| QList<QtWayland::FrameCallback *> QWaylandSurfacePrivate::frameCallbacks |
Definition at line 132 of file qwaylandsurface_p.h.
Referenced by ~QWaylandSurfacePrivate(), removeFrameCallback(), and surface_commit().
| bool QWaylandSurfacePrivate::hasContent = false |
Definition at line 147 of file qwaylandsurface_p.h.
Referenced by notifyViewsAboutDestruction(), and surface_commit().
| QList<QWaylandIdleInhibitManagerV1Private::Inhibitor *> QWaylandSurfacePrivate::idleInhibitors |
Definition at line 136 of file qwaylandsurface_p.h.
| QRegion QWaylandSurfacePrivate::inputRegion |
Definition at line 121 of file qwaylandsurface_p.h.
Referenced by surface_commit().
| bool QWaylandSurfacePrivate::isCursorSurface = false |
Definition at line 145 of file qwaylandsurface_p.h.
| bool QWaylandSurfacePrivate::isInitialized = false |
Definition at line 148 of file qwaylandsurface_p.h.
Referenced by addUninitializedSurface(), and removeUninitializedSurface().
| bool QWaylandSurfacePrivate::isOpaque = false |
Definition at line 149 of file qwaylandsurface_p.h.
Referenced by surface_commit().
| QPoint QWaylandSurfacePrivate::lastGlobalMousePos |
Definition at line 129 of file qwaylandsurface_p.h.
| QPoint QWaylandSurfacePrivate::lastLocalMousePos |
Definition at line 128 of file qwaylandsurface_p.h.
| bool QWaylandSurfacePrivate::newlyAttached = false |
Definition at line 120 of file qwaylandsurface_p.h.
| QPoint QWaylandSurfacePrivate::offset |
Definition at line 119 of file qwaylandsurface_p.h.
| QRegion QWaylandSurfacePrivate::opaqueRegion |
Definition at line 125 of file qwaylandsurface_p.h.
Referenced by surface_commit().
| struct { ... } QWaylandSurfacePrivate::pending |
| QList<QtWayland::FrameCallback *> QWaylandSurfacePrivate::pendingFrameCallbacks |
Definition at line 131 of file qwaylandsurface_p.h.
Referenced by ~QWaylandSurfacePrivate(), removeFrameCallback(), surface_commit(), and surface_frame().
| int QWaylandSurfacePrivate::refCount = 1 |
Definition at line 107 of file qwaylandsurface_p.h.
| QWaylandSurfaceRole* QWaylandSurfacePrivate::role = nullptr |
Definition at line 112 of file qwaylandsurface_p.h.
| QRectF QWaylandSurfacePrivate::sourceGeometry |
Definition at line 123 of file qwaylandsurface_p.h.
Referenced by surface_commit().
| Subsurface* QWaylandSurfacePrivate::subsurface = nullptr |
Definition at line 176 of file qwaylandsurface_p.h.
Referenced by initSubsurface().
| QList<QPointer<QWaylandSurface> > QWaylandSurfacePrivate::subsurfaceChildren |
Definition at line 134 of file qwaylandsurface_p.h.
Referenced by QWaylandCompositorPrivate::subcompositor_get_subsurface().
| QRegion QWaylandSurfacePrivate::surfaceDamage |
Definition at line 117 of file qwaylandsurface_p.h.
|
static |
Definition at line 179 of file qwaylandsurface_p.h.
Referenced by addUninitializedSurface(), hasUninitializedSurface(), and removeUninitializedSurface().
| QWaylandViewporterPrivate::Viewport* QWaylandSurfacePrivate::viewport = nullptr |
Definition at line 113 of file qwaylandsurface_p.h.
Referenced by surface_commit().
| QList<QWaylandView *> QWaylandSurfacePrivate::views |
Definition at line 109 of file qwaylandsurface_p.h.
Referenced by ~QWaylandSurfacePrivate(), derefView(), notifyViewsAboutDestruction(), refView(), and surface_commit().
| QWindow::Visibility QWaylandSurfacePrivate::visibility |
Definition at line 151 of file qwaylandsurface_p.h.