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>.
Loading...
Searching...
No Matches
QWaylandSurfacePrivate Class Reference

#include <qwaylandsurface_p.h>

+ Inheritance diagram for QWaylandSurfacePrivate:
+ Collaboration diagram for QWaylandSurfacePrivate:

Classes

class  Subsurface
 

Public Member Functions

 QWaylandSurfacePrivate ()
 
 ~QWaylandSurfacePrivate () override
 
void ref ()
 
void deref ()
 
void refView (QWaylandView *view)
 
void derefView (QWaylandView *view)
 
void removeFrameCallback (QtWayland::FrameCallback *callback)
 
void notifyViewsAboutDestruction ()
 
void initSubsurface (QWaylandSurface *parent, struct ::wl_client *client, int id, int version)
 
bool isSubsurface () const
 
QWaylandSurfacePrivateparentSurface () const
 
- Public Member Functions inherited from QObjectPrivate
void ensureExtraData ()
 
 QObjectPrivate (int version=QObjectPrivateVersion)
 
virtual ~QObjectPrivate ()
 
void deleteChildren ()
 
void clearBindingStorage ()
 
void checkForIncompatibleLibraryVersion (int version) const
 
void setParent_helper (QObject *)
 
void moveToThread_helper ()
 
void setThreadData_helper (QThreadData *currentData, QThreadData *targetData, QBindingStatus *status)
 
QObjectList receiverList (const char *signal) const
 
void ensureConnectionData ()
 
void addConnection (int signal, Connection *c)
 
int signalIndex (const char *signalName, const QMetaObject **meta=nullptr) const
 
bool isSignalConnected (uint signalIdx, bool checkDeclarative=true) const
 
bool maybeSignalConnected (uint signalIndex) const
 
bool isDeclarativeSignalConnected (uint signalIdx) const
 
void connectNotify (const QMetaMethod &signal)
 
void disconnectNotify (const QMetaMethod &signal)
 
void reinitBindingStorageAfterThreadMove ()
 
virtual std::string flagsForDumping () const
 
virtual void writeToDebugStream (QDebug &) const
 
QtPrivate::QPropertyAdaptorSlotObjectgetPropertyAdaptorSlotObject (const QMetaProperty &property)
 
- Public Member Functions inherited from QObjectData
 QObjectData ()=default
 
virtual ~QObjectData ()=0
 
QMetaObjectdynamicMetaObject () const
 

Static Public Member Functions

static QWaylandSurfacePrivateget (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 QObjectPrivateget (QObject *o)
 
static const QObjectPrivateget (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)
 

Public Attributes

QWaylandCompositorcompositor = nullptr
 
int refCount = 1
 
QWaylandClientclient = nullptr
 
QList< QWaylandView * > views
 
QRegion damage
 
QWaylandBufferRef bufferRef
 
QWaylandSurfaceRolerole = nullptr
 
QWaylandViewporterPrivate::Viewportviewport = nullptr
 
struct { 
 
   QWaylandBufferRef   buffer 
 
   QRegion   surfaceDamage 
 
   QRegion   bufferDamage 
 
   QPoint   offset 
 
   bool   newlyAttached = false 
 
   QRegion   inputRegion 
 
   int   bufferScale = 1 
 
   QRectF   sourceGeometry 
 
   QSize   destinationSize 
 
   QRegion   opaqueRegion 
 
pending 
 
QPoint lastLocalMousePos
 
QPoint lastGlobalMousePos
 
QList< QtWayland::FrameCallback * > pendingFrameCallbacks
 
QList< QtWayland::FrameCallback * > frameCallbacks
 
QList< QPointer< QWaylandSurface > > subsurfaceChildren
 
QList< QWaylandIdleInhibitManagerV1Private::Inhibitor * > idleInhibitors
 
QSize bufferSize
 
bool isCursorSurface = false
 
bool destroyed = false
 
bool hasContent = false
 
bool isInitialized = false
 
bool isOpaque = false
 
Qt::ScreenOrientation contentOrientation = Qt::PrimaryOrientation
 
QWindow::Visibility visibility
 
Subsurfacesubsurface = nullptr
 
- Public Attributes inherited from QObjectPrivate
ExtraDataextraData
 
QAtomicPointer< QThreadDatathreadData
 
QAtomicPointer< ConnectionDataconnections
 
union { 
 
   QObject *   currentChildBeingDeleted 
 
   QAbstractDeclarativeData *   declarativeData 
 
};  
 
QAtomicPointer< QtSharedPointer::ExternalRefCountDatasharedRefcount
 
- Public Attributes inherited from QObjectData
QObjectq_ptr
 
QObjectparent
 
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 receiveParentEvents: 1
 
uint unused: 20
 
QAtomicInt postedEvents
 
QDynamicMetaObjectDatametaObject
 
QBindingStorage bindingStorage
 

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::ClientBuffergetBuffer (struct ::wl_resource *buffer)
 

Additional Inherited Members

- Public Types inherited from QObjectPrivate
typedef void(* StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **)
 
using ConnectionDataPointer = QExplicitlySharedDataPointer<ConnectionData>
 

Detailed Description

Definition at line 56 of file qwaylandsurface_p.h.

Constructor & Destructor Documentation

◆ QWaylandSurfacePrivate()

QWaylandSurfacePrivate::QWaylandSurfacePrivate ( )

Definition at line 83 of file qwaylandsurface.cpp.

References addUninitializedSurface(), infiniteRegion(), and pending.

+ Here is the call graph for this function:

◆ ~QWaylandSurfacePrivate()

QWaylandSurfacePrivate::~QWaylandSurfacePrivate ( )
override

Definition at line 95 of file qwaylandsurface.cpp.

References QList< T >::at(), bufferRef, QList< T >::clear(), frameCallbacks, QWaylandViewPrivate::get(), i, pendingFrameCallbacks, QList< T >::size(), and views.

+ Here is the call graph for this function:

Member Function Documentation

◆ addUninitializedSurface()

void QWaylandSurfacePrivate::addUninitializedSurface ( QWaylandSurfacePrivate * surface)
static

Definition at line 130 of file qwaylandsurface.cpp.

References isInitialized, Q_ASSERT, and uninitializedSurfaces.

Referenced by QWaylandSurfacePrivate().

+ Here is the caller graph for this function:

◆ deref()

void QWaylandSurfacePrivate::deref ( )

Definition at line 1006 of file qwaylandsurface.cpp.

References compositor, QWaylandCompositorPrivate::get(), and refCount.

Referenced by derefView().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ derefView()

void QWaylandSurfacePrivate::derefView ( QWaylandView * view)

Definition at line 1022 of file qwaylandsurface.cpp.

References deref(), i, QList< T >::removeAll(), view, and views.

+ Here is the call graph for this function:

◆ get()

◆ getBuffer()

QtWayland::ClientBuffer * QWaylandSurfacePrivate::getBuffer ( struct ::wl_resource * buffer)
protected

Definition at line 334 of file qwaylandsurface.cpp.

References compositor, and QWaylandCompositorPrivate::get().

Referenced by surface_attach().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ hasUninitializedSurface()

bool QWaylandSurfacePrivate::hasUninitializedSurface ( )
static

Definition at line 144 of file qwaylandsurface.cpp.

References uninitializedSurfaces.

Referenced by QWaylandCompositorPrivate::compositor_create_surface().

+ Here is the caller graph for this function:

◆ initSubsurface()

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.

◆ isSubsurface()

bool QWaylandSurfacePrivate::isSubsurface ( ) const
inline

Definition at line 83 of file qwaylandsurface_p.h.

◆ notifyViewsAboutDestruction()

void QWaylandSurfacePrivate::notifyViewsAboutDestruction ( )

Definition at line 116 of file qwaylandsurface.cpp.

References emit, QWaylandViewPrivate::get(), hasContent, view, and views.

Referenced by surface_destroy_resource().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ parentSurface()

QWaylandSurfacePrivate * QWaylandSurfacePrivate::parentSurface ( ) const
inline

Definition at line 84 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:

◆ ref()

void QWaylandSurfacePrivate::ref ( )

Definition at line 1001 of file qwaylandsurface.cpp.

References refCount.

Referenced by refView().

+ Here is the caller graph for this function:

◆ refView()

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.

+ Here is the call graph for this function:

◆ removeFrameCallback()

void QWaylandSurfacePrivate::removeFrameCallback ( QtWayland::FrameCallback * callback)

Definition at line 110 of file qwaylandsurface.cpp.

References frameCallbacks, pendingFrameCallbacks, and QList< T >::removeOne().

+ Here is the call graph for this function:

◆ removeUninitializedSurface()

void QWaylandSurfacePrivate::removeUninitializedSurface ( QWaylandSurfacePrivate * surface)
static

Definition at line 137 of file qwaylandsurface.cpp.

References isInitialized, Q_ASSERT, and uninitializedSurfaces.

Referenced by QWaylandSurface::initialize().

+ Here is the caller graph for this function:

◆ surface_attach()

void QWaylandSurfacePrivate::surface_attach ( Resource * resource,
struct wl_resource * buffer,
int x,
int y )
overrideprotected

Definition at line 165 of file qwaylandsurface.cpp.

References getBuffer(), and pending.

+ Here is the call graph for this function:

◆ surface_commit()

void QWaylandSurfacePrivate::surface_commit ( Resource * resource)
overrideprotected

◆ surface_damage()

void QWaylandSurfacePrivate::surface_damage ( Resource * resource,
int32_t x,
int32_t y,
int32_t width,
int32_t height )
overrideprotected

Definition at line 178 of file qwaylandsurface.cpp.

References pending.

◆ surface_damage_buffer()

void QWaylandSurfacePrivate::surface_damage_buffer ( Resource * resource,
int32_t x,
int32_t y,
int32_t width,
int32_t height )
overrideprotected

Definition at line 183 of file qwaylandsurface.cpp.

References pending.

◆ surface_destroy()

void QWaylandSurfacePrivate::surface_destroy ( Resource * resource)
overrideprotected

Definition at line 160 of file qwaylandsurface.cpp.

◆ surface_destroy_resource()

void QWaylandSurfacePrivate::surface_destroy_resource ( Resource * resource)
overrideprotected

Definition at line 150 of file qwaylandsurface.cpp.

References destroyed, emit, and notifyViewsAboutDestruction().

+ Here is the call graph for this function:

◆ surface_frame()

void QWaylandSurfacePrivate::surface_frame ( Resource * resource,
uint32_t callback )
overrideprotected

Definition at line 188 of file qwaylandsurface.cpp.

References pendingFrameCallbacks.

◆ surface_set_buffer_scale()

void QWaylandSurfacePrivate::surface_set_buffer_scale ( Resource * resource,
int32_t bufferScale )
overrideprotected

Definition at line 328 of file qwaylandsurface.cpp.

References pending, and Q_UNUSED.

◆ surface_set_buffer_transform()

void QWaylandSurfacePrivate::surface_set_buffer_transform ( Resource * resource,
int32_t transform )
overrideprotected

◆ surface_set_input_region()

void QWaylandSurfacePrivate::surface_set_input_region ( Resource * resource,
struct wl_resource * region )
overrideprotected

Definition at line 200 of file qwaylandsurface.cpp.

References QtWayland::Region::fromResource(), infiniteRegion(), and pending.

+ Here is the call graph for this function:

◆ surface_set_opaque_region()

void QWaylandSurfacePrivate::surface_set_opaque_region ( Resource * resource,
struct wl_resource * region )
overrideprotected

Definition at line 195 of file qwaylandsurface.cpp.

References QtWayland::Region::fromResource(), and pending.

+ Here is the call graph for this function:

Member Data Documentation

◆ buffer

QWaylandBufferRef QWaylandSurfacePrivate::buffer

Definition at line 118 of file qwaylandsurface_p.h.

◆ bufferDamage

QRegion QWaylandSurfacePrivate::bufferDamage

Definition at line 120 of file qwaylandsurface_p.h.

◆ bufferRef

QWaylandBufferRef QWaylandSurfacePrivate::bufferRef

Definition at line 113 of file qwaylandsurface_p.h.

Referenced by ~QWaylandSurfacePrivate(), refView(), and surface_commit().

◆ bufferScale

int QWaylandSurfacePrivate::bufferScale = 1

Definition at line 124 of file qwaylandsurface_p.h.

Referenced by surface_commit().

◆ bufferSize

QSize QWaylandSurfacePrivate::bufferSize

Definition at line 145 of file qwaylandsurface_p.h.

Referenced by surface_commit().

◆ client

QWaylandClient* QWaylandSurfacePrivate::client = nullptr

Definition at line 110 of file qwaylandsurface_p.h.

Referenced by initSubsurface().

◆ compositor

QWaylandCompositor* QWaylandSurfacePrivate::compositor = nullptr

Definition at line 108 of file qwaylandsurface_p.h.

Referenced by deref(), and getBuffer().

◆ contentOrientation

Qt::ScreenOrientation QWaylandSurfacePrivate::contentOrientation = Qt::PrimaryOrientation

Definition at line 152 of file qwaylandsurface_p.h.

Referenced by surface_set_buffer_transform().

◆ damage

QRegion QWaylandSurfacePrivate::damage

Definition at line 112 of file qwaylandsurface_p.h.

Referenced by surface_commit().

◆ destinationSize

QSize QWaylandSurfacePrivate::destinationSize

Definition at line 126 of file qwaylandsurface_p.h.

Referenced by surface_commit().

◆ destroyed

bool QWaylandSurfacePrivate::destroyed = false

Definition at line 148 of file qwaylandsurface_p.h.

Referenced by surface_destroy_resource().

◆ frameCallbacks

QList<QtWayland::FrameCallback *> QWaylandSurfacePrivate::frameCallbacks

◆ hasContent

bool QWaylandSurfacePrivate::hasContent = false

Definition at line 149 of file qwaylandsurface_p.h.

Referenced by notifyViewsAboutDestruction(), and surface_commit().

◆ idleInhibitors

QList<QWaylandIdleInhibitManagerV1Private::Inhibitor *> QWaylandSurfacePrivate::idleInhibitors

Definition at line 138 of file qwaylandsurface_p.h.

◆ inputRegion

QRegion QWaylandSurfacePrivate::inputRegion

Definition at line 123 of file qwaylandsurface_p.h.

Referenced by surface_commit().

◆ isCursorSurface

bool QWaylandSurfacePrivate::isCursorSurface = false

Definition at line 147 of file qwaylandsurface_p.h.

◆ isInitialized

bool QWaylandSurfacePrivate::isInitialized = false

Definition at line 150 of file qwaylandsurface_p.h.

Referenced by addUninitializedSurface(), and removeUninitializedSurface().

◆ isOpaque

bool QWaylandSurfacePrivate::isOpaque = false

Definition at line 151 of file qwaylandsurface_p.h.

Referenced by surface_commit().

◆ lastGlobalMousePos

QPoint QWaylandSurfacePrivate::lastGlobalMousePos

Definition at line 131 of file qwaylandsurface_p.h.

◆ lastLocalMousePos

QPoint QWaylandSurfacePrivate::lastLocalMousePos

Definition at line 130 of file qwaylandsurface_p.h.

◆ newlyAttached

bool QWaylandSurfacePrivate::newlyAttached = false

Definition at line 122 of file qwaylandsurface_p.h.

◆ offset

QPoint QWaylandSurfacePrivate::offset

Definition at line 121 of file qwaylandsurface_p.h.

◆ opaqueRegion

QRegion QWaylandSurfacePrivate::opaqueRegion

Definition at line 127 of file qwaylandsurface_p.h.

Referenced by surface_commit().

◆ [struct]

◆ pendingFrameCallbacks

QList<QtWayland::FrameCallback *> QWaylandSurfacePrivate::pendingFrameCallbacks

◆ refCount

int QWaylandSurfacePrivate::refCount = 1

Definition at line 109 of file qwaylandsurface_p.h.

Referenced by deref(), and ref().

◆ role

QWaylandSurfaceRole* QWaylandSurfacePrivate::role = nullptr

Definition at line 114 of file qwaylandsurface_p.h.

◆ sourceGeometry

QRectF QWaylandSurfacePrivate::sourceGeometry

Definition at line 125 of file qwaylandsurface_p.h.

Referenced by surface_commit().

◆ subsurface

Subsurface* QWaylandSurfacePrivate::subsurface = nullptr

Definition at line 178 of file qwaylandsurface_p.h.

Referenced by initSubsurface().

◆ subsurfaceChildren

QList<QPointer<QWaylandSurface> > QWaylandSurfacePrivate::subsurfaceChildren

Definition at line 136 of file qwaylandsurface_p.h.

◆ surfaceDamage

QRegion QWaylandSurfacePrivate::surfaceDamage

Definition at line 119 of file qwaylandsurface_p.h.

◆ uninitializedSurfaces

QList< QWaylandSurfacePrivate * > QWaylandSurfacePrivate::uninitializedSurfaces
static

◆ viewport

QWaylandViewporterPrivate::Viewport* QWaylandSurfacePrivate::viewport = nullptr

Definition at line 115 of file qwaylandsurface_p.h.

Referenced by surface_commit().

◆ views

QList<QWaylandView *> QWaylandSurfacePrivate::views

◆ visibility

QWindow::Visibility QWaylandSurfacePrivate::visibility

Definition at line 153 of file qwaylandsurface_p.h.


The documentation for this class was generated from the following files: