![]() |
Qt 6.x
The Qt SDK
|
#include <qwaylandcompositor_p.h>
Static Public Member Functions | |
static QWaylandCompositorPrivate * | get (QWaylandCompositor *compositor) |
![]() | |
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) |
Protected Member Functions | |
void | compositor_create_surface (wl_compositor::Resource *resource, uint32_t id) override |
void | compositor_create_region (wl_compositor::Resource *resource, uint32_t id) override |
void | subcompositor_get_subsurface (wl_subcompositor::Resource *resource, uint32_t id, struct ::wl_resource *surface, struct ::wl_resource *parent) override |
virtual QWaylandSurface * | createDefaultSurface () |
void | initializeHardwareIntegration () |
void | initializeExtensions () |
void | initializeSeats () |
void | loadClientBufferIntegration () |
void | loadServerBufferIntegration () |
Protected Attributes | |
QByteArray | socket_name |
QList< int > | externally_added_socket_fds |
struct wl_display * | display = nullptr |
bool | ownsDisplay = false |
QVector< QWaylandCompositor::ShmFormat > | shmFormats |
QList< QWaylandSeat * > | seats |
QList< QWaylandOutput * > | outputs |
QList< QWaylandSurface * > | all_surfaces |
QtWayland::BufferManager * | buffer_manager = nullptr |
QElapsedTimer | timer |
wl_event_loop * | loop = nullptr |
QList< QWaylandClient * > | clients |
QList< QtWayland::ClientBufferIntegration * > | client_buffer_integrations |
QScopedPointer< QWindowSystemEventHandler > | eventHandler |
bool | retainSelection = false |
bool | preInitialized = false |
bool | initialized = false |
std::vector< QPointer< QObject > > | polish_objects |
Additional Inherited Members | ||
![]() | ||
typedef void(* | StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **) | |
using | ConnectionDataPointer = QExplicitlySharedDataPointer< ConnectionData > | |
![]() | ||
ExtraData * | extraData | |
QAtomicPointer< QThreadData > | threadData | |
QAtomicPointer< ConnectionData > | connections | |
union { | ||
QObject * currentChildBeingDeleted | ||
QAbstractDeclarativeData * declarativeData | ||
}; | ||
QAtomicPointer< QtSharedPointer::ExternalRefCountData > | sharedRefcount | |
![]() | ||
QObject * | q_ptr | |
QObject * | parent | |
QObjectList | children | |
uint | isWidget: 1 | |
uint | blockSig: 1 | |
uint | wasDeleted: 1 | |
uint | isDeletingChildren: 1 | |
uint | sendChildEvents: 1 | |
uint | receiveChildEvents: 1 | |
uint | isWindow: 1 | |
uint | deleteLaterCalled: 1 | |
uint | isQuickItem: 1 | |
uint | willBeWidget: 1 | |
uint | wasWidget: 1 | |
uint | unused: 21 | |
QAtomicInt | postedEvents | |
QDynamicMetaObjectData * | metaObject | |
QBindingStorage | bindingStorage | |
Definition at line 46 of file qwaylandcompositor_p.h.
QWaylandCompositorPrivate::QWaylandCompositorPrivate | ( | QWaylandCompositor * | compositor | ) |
Definition at line 138 of file qwaylandcompositor.cpp.
References compositor, QScopedPointer< T, Cleanup >::data(), eventHandler, QWindowSystemInterfacePrivate::installWindowSystemEventHandler(), QPlatformNativeInterface::nativeResourceForIntegration(), ownsDisplay, QGuiApplication::platformNativeInterface(), qWarning, QScopedPointer< T, Cleanup >::reset(), QElapsedTimer::start(), and timer.
|
override |
Definition at line 228 of file qwaylandcompositor.cpp.
References client_buffer_integrations, clients, outputs, ownsDisplay, and qDeleteAll().
|
inline |
Definition at line 167 of file qwaylandcompositor_p.h.
References QList< T >::append(), clients, QListSpecialMethodsBase< T >::contains(), and Q_ASSERT.
|
inline |
Definition at line 179 of file qwaylandcompositor_p.h.
References QList< T >::append(), QListSpecialMethodsBase< T >::contains(), emit, output, outputs, and Q_ASSERT.
Referenced by QWaylandOutput::initialize().
Definition at line 282 of file qwaylandcompositor.cpp.
References initialized, QEvent::Polish, polish_objects, and QCoreApplication::postEvent().
Referenced by QWaylandOutput::QWaylandOutput(), and QWaylandOutput::setCompositor().
|
inline |
Definition at line 72 of file qwaylandcompositor_p.h.
Referenced by WaylandEglStreamClientBufferIntegration::attachEglStreamConsumer(), and QWaylandSurfacePrivate::getBuffer().
|
inline |
Definition at line 77 of file qwaylandcompositor_p.h.
Referenced by QWaylandSeat::initialize(), and QWaylandSeatPrivate::setCapabilities().
|
inline |
Definition at line 75 of file qwaylandcompositor_p.h.
Referenced by QWaylandSeat::initialize(), and QWaylandSeatPrivate::setCapabilities().
|
inline |
Definition at line 79 of file qwaylandcompositor_p.h.
Referenced by QWaylandSeat::initialize(), and QWaylandSeatPrivate::setCapabilities().
|
inline |
Definition at line 153 of file qwaylandcompositor_p.h.
References client_buffer_integrations.
Referenced by QtWayland::BufferManager::getBuffer().
|
overrideprotected |
Definition at line 323 of file qwaylandcompositor.cpp.
|
overrideprotected |
Definition at line 301 of file qwaylandcompositor.cpp.
References all_surfaces, QList< T >::append(), arg, QWaylandClient::client(), createDefaultSurface(), emit, QWaylandSurface::fromResource(), QWaylandClient::fromWlClient(), QWaylandSurfacePrivate::hasUninitializedSurface(), QWaylandSurface::initialize(), Q_ASSERT, Q_ASSERT_X, QStringLiteral, and toLocal8Bit().
void QWaylandCompositorPrivate::connectToExternalSockets | ( | ) |
Definition at line 291 of file qwaylandcompositor.cpp.
References QList< T >::clear(), externally_added_socket_fds, and qWarning.
Referenced by init().
|
protectedvirtual |
Used to create a fallback QWaylandSurface when no surface was created by emitting the QWaylandCompositor::createSurface signal.
Reimplemented in QWaylandQuickCompositorPrivate.
Definition at line 343 of file qwaylandcompositor.cpp.
Referenced by compositor_create_surface().
|
inline |
Definition at line 64 of file qwaylandcompositor_p.h.
void QWaylandCompositorPrivate::destroySurface | ( | QWaylandSurface * | surface | ) |
Definition at line 261 of file qwaylandcompositor.cpp.
Referenced by QWaylandSurfacePrivate::deref().
Definition at line 275 of file qwaylandcompositor.cpp.
References retainSelection.
Referenced by QtWayland::DataDeviceManager::overrideSelection().
|
inlinestatic |
Definition at line 49 of file qwaylandcompositor_p.h.
References compositor.
Referenced by QWaylandOutput::QWaylandOutput(), QWaylandClient::~QWaylandClient(), QWaylandOutput::~QWaylandOutput(), QWaylandSurface::~QWaylandSurface(), WaylandEglStreamClientBufferIntegration::attachEglStreamConsumer(), QWaylandQuickCompositor::classBegin(), QtWayland::DataDevice::data_device_set_selection(), QWaylandSurfacePrivate::deref(), QWaylandSurfacePrivate::getBuffer(), QtWayland::BufferManager::getBuffer(), QWaylandOutput::initialize(), QWaylandSeat::initialize(), QtWayland::DataDeviceManager::overrideSelection(), QWaylandSeatPrivate::setCapabilities(), and QWaylandOutput::setCompositor().
void QWaylandCompositorPrivate::init | ( | ) |
Definition at line 162 of file qwaylandcompositor.cpp.
References QGuiApplication::applicationStateChanged(), QCoreApplication::arguments(), arguments, QList< T >::at(), buffer_manager, QObject::connect(), connectToExternalSockets(), QByteArray::constData(), emit, QCoreApplicationPrivate::eventDispatcher, QListSpecialMethodsBase< T >::indexOf(), initialized, initializeHardwareIntegration(), initializeSeats(), QCoreApplication::instance(), QByteArray::isEmpty(), loop, QEvent::Polish, polish_objects, qFatal, QSocketNotifier::Read, QCoreApplication::sendEvent(), shmFormats, SIGNAL, QList< T >::size(), SLOT, and socket_name.
|
protected |
|
protected |
Definition at line 366 of file qwaylandcompositor.cpp.
References client_buffer_integrations, loadClientBufferIntegration(), loadServerBufferIntegration(), and QList< T >::prepend().
Referenced by init().
|
protected |
Definition at line 383 of file qwaylandcompositor.cpp.
References seats.
Referenced by init().
|
protected |
Definition at line 389 of file qwaylandcompositor.cpp.
References QList< T >::append(), client_buffer_integrations, QtWayland::ClientBufferIntegrationFactory::create(), QString::fromLatin1(), QString::fromLocal8Bit(), QString::isEmpty(), QByteArray::isEmpty(), keys, QtWayland::ClientBufferIntegrationFactory::keys(), qgetenv(), and QByteArray::split().
Referenced by initializeHardwareIntegration().
|
protected |
Definition at line 431 of file qwaylandcompositor.cpp.
References QtWayland::ServerBufferIntegrationFactory::create(), QString::fromLocal8Bit(), QString::isEmpty(), keys, QtWayland::ServerBufferIntegrationFactory::keys(), qCDebug, qCWarning, qgetenv(), and serverBufferIntegration().
Referenced by initializeHardwareIntegration().
void QWaylandCompositorPrivate::preInit | ( | ) |
Definition at line 248 of file qwaylandcompositor.cpp.
References QList< T >::append(), QList< T >::empty(), preInitialized, and seats.
Referenced by QWaylandQuickCompositor::classBegin().
|
inline |
Definition at line 173 of file qwaylandcompositor_p.h.
References clients, QListSpecialMethodsBase< T >::contains(), Q_ASSERT, and QList< T >::removeOne().
Referenced by QWaylandClient::~QWaylandClient().
|
inline |
Definition at line 189 of file qwaylandcompositor_p.h.
References QList< T >::count(), emit, output, outputs, Q_ASSERT, and QList< T >::removeOne().
Referenced by QWaylandOutput::~QWaylandOutput().
|
virtual |
Definition at line 462 of file qwaylandcompositor.cpp.
References QList< T >::at(), i, QWaylandSeat::isOwner(), seats, and QList< T >::size().
|
inline |
Definition at line 158 of file qwaylandcompositor_p.h.
Referenced by loadServerBufferIntegration().
|
overrideprotected |
Definition at line 328 of file qwaylandcompositor.cpp.
References QList< T >::append(), QWaylandSurface::client, emit, QWaylandSurface::fromResource(), QWaylandSurfacePrivate::get(), QWaylandSurfacePrivate::initSubsurface(), QObjectData::parent, and QWaylandSurfacePrivate::subsurfaceChildren.
void QWaylandCompositorPrivate::unregisterSurface | ( | QWaylandSurface * | surface | ) |
Definition at line 269 of file qwaylandcompositor.cpp.
References all_surfaces, Q_FUNC_INFO, qWarning, and QList< T >::removeOne().
Referenced by QWaylandSurface::~QWaylandSurface().
|
protected |
Definition at line 118 of file qwaylandcompositor_p.h.
Referenced by compositor_create_surface(), and unregisterSurface().
|
protected |
Definition at line 123 of file qwaylandcompositor_p.h.
Referenced by init().
|
protected |
Definition at line 136 of file qwaylandcompositor_p.h.
Referenced by ~QWaylandCompositorPrivate(), clientBufferIntegrations(), initializeHardwareIntegration(), and loadClientBufferIntegration().
|
protected |
Definition at line 129 of file qwaylandcompositor_p.h.
Referenced by ~QWaylandCompositorPrivate(), addClient(), and removeClient().
|
protected |
Definition at line 111 of file qwaylandcompositor_p.h.
|
protected |
Definition at line 138 of file qwaylandcompositor_p.h.
Referenced by QWaylandCompositorPrivate().
|
protected |
Definition at line 110 of file qwaylandcompositor_p.h.
Referenced by connectToExternalSockets().
|
protected |
Definition at line 142 of file qwaylandcompositor_p.h.
Referenced by addPolishObject(), and init().
|
protected |
Definition at line 127 of file qwaylandcompositor_p.h.
Referenced by init().
|
protected |
Definition at line 116 of file qwaylandcompositor_p.h.
Referenced by ~QWaylandCompositorPrivate(), addOutput(), and removeOutput().
|
protected |
Definition at line 112 of file qwaylandcompositor_p.h.
Referenced by QWaylandCompositorPrivate(), and ~QWaylandCompositorPrivate().
Definition at line 143 of file qwaylandcompositor_p.h.
Referenced by addPolishObject(), and init().
|
protected |
Definition at line 141 of file qwaylandcompositor_p.h.
Referenced by preInit().
|
protected |
Definition at line 140 of file qwaylandcompositor_p.h.
Referenced by feedRetainedSelectionData().
|
protected |
Definition at line 115 of file qwaylandcompositor_p.h.
Referenced by initializeSeats(), preInit(), and seatFor().
|
protected |
Definition at line 113 of file qwaylandcompositor_p.h.
Referenced by init().
|
protected |
Definition at line 109 of file qwaylandcompositor_p.h.
Referenced by init().
|
protected |
Definition at line 125 of file qwaylandcompositor_p.h.
Referenced by QWaylandCompositorPrivate().