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>.
|
#include <qwaylandcompositor_p.h>
Static Public Member Functions | |
static QWaylandCompositorPrivate * | get (QWaylandCompositor *compositor) |
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) |
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 |
Definition at line 48 of file qwaylandcompositor_p.h.
QWaylandCompositorPrivate::QWaylandCompositorPrivate | ( | QWaylandCompositor * | compositor | ) |
Definition at line 137 of file qwaylandcompositor.cpp.
References compositor, QScopedPointer< T, Cleanup >::data(), eventHandler, QWindowSystemInterfacePrivate::installWindowSystemEventHandler(), ownsDisplay, QGuiApplication::platformNativeInterface(), qWarning, QScopedPointer< T, Cleanup >::reset(), QStandardPaths::RuntimeLocation, QElapsedTimer::start(), timer, and QStandardPaths::writableLocation().
|
override |
Definition at line 232 of file qwaylandcompositor.cpp.
References client_buffer_integrations, clients, outputs, ownsDisplay, and qDeleteAll().
|
inline |
Definition at line 169 of file qwaylandcompositor_p.h.
References QList< T >::append(), clients, QListSpecialMethodsBase< T >::contains(), and Q_ASSERT.
|
inline |
Definition at line 181 of file qwaylandcompositor_p.h.
References QList< T >::append(), QListSpecialMethodsBase< T >::contains(), emit, output, outputs, and Q_ASSERT.
Definition at line 286 of file qwaylandcompositor.cpp.
References initialized, QEvent::Polish, polish_objects, and QCoreApplication::postEvent().
|
inline |
Definition at line 74 of file qwaylandcompositor_p.h.
|
inline |
Definition at line 79 of file qwaylandcompositor_p.h.
|
inline |
Definition at line 77 of file qwaylandcompositor_p.h.
|
inline |
Definition at line 81 of file qwaylandcompositor_p.h.
|
inline |
Definition at line 155 of file qwaylandcompositor_p.h.
References client_buffer_integrations.
|
overrideprotected |
Definition at line 327 of file qwaylandcompositor.cpp.
|
overrideprotected |
Definition at line 305 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 295 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 347 of file qwaylandcompositor.cpp.
Referenced by compositor_create_surface().
|
inline |
Definition at line 66 of file qwaylandcompositor_p.h.
void QWaylandCompositorPrivate::destroySurface | ( | QWaylandSurface * | surface | ) |
Definition at line 265 of file qwaylandcompositor.cpp.
Definition at line 279 of file qwaylandcompositor.cpp.
References retainSelection.
|
inlinestatic |
Definition at line 51 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 164 of file qwaylandcompositor.cpp.
References QGuiApplication::applicationStateChanged(), 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, qgetenv(), QSocketNotifier::Read, QCoreApplication::sendEvent(), shmFormats, SIGNAL, QList< T >::size(), SLOT, and socket_name.
|
protected |
|
protected |
Definition at line 370 of file qwaylandcompositor.cpp.
References client_buffer_integrations, loadClientBufferIntegration(), loadServerBufferIntegration(), and QList< T >::prepend().
Referenced by init().
|
protected |
Definition at line 387 of file qwaylandcompositor.cpp.
References seats.
Referenced by init().
|
protected |
Definition at line 393 of file qwaylandcompositor.cpp.
References QList< T >::append(), client_buffer_integrations, QtWayland::ClientBufferIntegrationFactory::create(), QString::fromLatin1(), QString::fromLocal8Bit(), QByteArray::isEmpty(), keys, QtWayland::ClientBufferIntegrationFactory::keys(), qgetenv(), and QByteArray::split().
Referenced by initializeHardwareIntegration().
|
protected |
Definition at line 435 of file qwaylandcompositor.cpp.
References QtWayland::ServerBufferIntegrationFactory::create(), QString::fromLocal8Bit(), keys, QtWayland::ServerBufferIntegrationFactory::keys(), qCDebug, qCWarning, qgetenv(), and serverBufferIntegration().
Referenced by initializeHardwareIntegration().
void QWaylandCompositorPrivate::preInit | ( | ) |
Definition at line 252 of file qwaylandcompositor.cpp.
References QList< T >::append(), QList< T >::empty(), preInitialized, and seats.
|
inline |
Definition at line 175 of file qwaylandcompositor_p.h.
References clients, QListSpecialMethodsBase< T >::contains(), Q_ASSERT, and QList< T >::removeOne().
|
inline |
Definition at line 191 of file qwaylandcompositor_p.h.
References QList< T >::count(), emit, output, outputs, Q_ASSERT, and QList< T >::removeOne().
|
virtual |
Definition at line 466 of file qwaylandcompositor.cpp.
References QList< T >::at(), i, QWaylandSeat::isOwner(), seats, and QList< T >::size().
|
inline |
Definition at line 160 of file qwaylandcompositor_p.h.
Referenced by loadServerBufferIntegration().
|
overrideprotected |
Definition at line 332 of file qwaylandcompositor.cpp.
References QWaylandSurface::client, emit, QWaylandSurface::fromResource(), QWaylandSurfacePrivate::get(), and QObjectData::parent.
void QWaylandCompositorPrivate::unregisterSurface | ( | QWaylandSurface * | surface | ) |
Definition at line 273 of file qwaylandcompositor.cpp.
References all_surfaces, Q_FUNC_INFO, qWarning, and QList< T >::removeOne().
|
protected |
Definition at line 120 of file qwaylandcompositor_p.h.
Referenced by compositor_create_surface(), and unregisterSurface().
|
protected |
Definition at line 125 of file qwaylandcompositor_p.h.
Referenced by init().
|
protected |
Definition at line 138 of file qwaylandcompositor_p.h.
Referenced by ~QWaylandCompositorPrivate(), clientBufferIntegrations(), initializeHardwareIntegration(), and loadClientBufferIntegration().
|
protected |
Definition at line 131 of file qwaylandcompositor_p.h.
Referenced by ~QWaylandCompositorPrivate(), addClient(), and removeClient().
|
protected |
Definition at line 113 of file qwaylandcompositor_p.h.
|
protected |
Definition at line 140 of file qwaylandcompositor_p.h.
Referenced by QWaylandCompositorPrivate().
|
protected |
Definition at line 112 of file qwaylandcompositor_p.h.
Referenced by connectToExternalSockets().
|
protected |
Definition at line 144 of file qwaylandcompositor_p.h.
Referenced by addPolishObject(), and init().
|
protected |
Definition at line 129 of file qwaylandcompositor_p.h.
Referenced by init().
|
protected |
Definition at line 118 of file qwaylandcompositor_p.h.
Referenced by ~QWaylandCompositorPrivate(), addOutput(), and removeOutput().
|
protected |
Definition at line 114 of file qwaylandcompositor_p.h.
Referenced by QWaylandCompositorPrivate(), and ~QWaylandCompositorPrivate().
Definition at line 145 of file qwaylandcompositor_p.h.
Referenced by addPolishObject(), and init().
|
protected |
Definition at line 143 of file qwaylandcompositor_p.h.
Referenced by preInit().
|
protected |
Definition at line 142 of file qwaylandcompositor_p.h.
Referenced by feedRetainedSelectionData().
|
protected |
Definition at line 117 of file qwaylandcompositor_p.h.
Referenced by initializeSeats(), preInit(), and seatFor().
|
protected |
Definition at line 115 of file qwaylandcompositor_p.h.
Referenced by init().
|
protected |
Definition at line 111 of file qwaylandcompositor_p.h.
Referenced by init().
|
protected |
Definition at line 127 of file qwaylandcompositor_p.h.
Referenced by QWaylandCompositorPrivate().