Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
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.

◆ ~QWaylandSurfacePrivate()

QWaylandSurfacePrivate::~QWaylandSurfacePrivate ( )
override

Definition at line 95 of file qwaylandsurface.cpp.

Member Function Documentation

◆ addUninitializedSurface()

void QWaylandSurfacePrivate::addUninitializedSurface ( QWaylandSurfacePrivate * surface)
static

Definition at line 130 of file qwaylandsurface.cpp.

◆ deref()

void QWaylandSurfacePrivate::deref ( )

Definition at line 1006 of file qwaylandsurface.cpp.

◆ derefView()

void QWaylandSurfacePrivate::derefView ( QWaylandView * view)

Definition at line 1022 of file qwaylandsurface.cpp.

◆ get()

QWaylandSurfacePrivate * QWaylandSurfacePrivate::get ( QWaylandSurface * surface)
static

Definition at line 996 of file qwaylandsurface.cpp.

◆ getBuffer()

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

Definition at line 334 of file qwaylandsurface.cpp.

◆ hasUninitializedSurface()

bool QWaylandSurfacePrivate::hasUninitializedSurface ( )
static

Definition at line 144 of file qwaylandsurface.cpp.

◆ initSubsurface()

void QWaylandSurfacePrivate::initSubsurface ( QWaylandSurface * parent,
struct ::wl_client * client,
int id,
int version )

Definition at line 1031 of file qwaylandsurface.cpp.

◆ 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.

◆ parentSurface()

QWaylandSurfacePrivate * QWaylandSurfacePrivate::parentSurface ( ) const
inline

Definition at line 84 of file qwaylandsurface_p.h.

◆ ref()

void QWaylandSurfacePrivate::ref ( )

Definition at line 1001 of file qwaylandsurface.cpp.

◆ refView()

void QWaylandSurfacePrivate::refView ( QWaylandView * view)

Definition at line 1012 of file qwaylandsurface.cpp.

◆ removeFrameCallback()

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

Definition at line 110 of file qwaylandsurface.cpp.

◆ removeUninitializedSurface()

void QWaylandSurfacePrivate::removeUninitializedSurface ( QWaylandSurfacePrivate * surface)
static

Definition at line 137 of file qwaylandsurface.cpp.

◆ 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.

◆ surface_commit()

void QWaylandSurfacePrivate::surface_commit ( Resource * resource)
overrideprotected

Definition at line 209 of file qwaylandsurface.cpp.

◆ 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.

◆ 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.

◆ 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.

◆ surface_frame()

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

Definition at line 188 of file qwaylandsurface.cpp.

◆ surface_set_buffer_scale()

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

Definition at line 328 of file qwaylandsurface.cpp.

◆ surface_set_buffer_transform()

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

Definition at line 304 of file qwaylandsurface.cpp.

◆ 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.

◆ 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.

Member Data Documentation

◆ buffer

◆ 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.

◆ bufferScale

int QWaylandSurfacePrivate::bufferScale = 1

Definition at line 124 of file qwaylandsurface_p.h.

◆ bufferSize

QSize QWaylandSurfacePrivate::bufferSize

Definition at line 145 of file qwaylandsurface_p.h.

◆ client

QWaylandClient* QWaylandSurfacePrivate::client = nullptr

Definition at line 110 of file qwaylandsurface_p.h.

◆ compositor

QWaylandCompositor* QWaylandSurfacePrivate::compositor = nullptr

Definition at line 108 of file qwaylandsurface_p.h.

◆ contentOrientation

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

Definition at line 152 of file qwaylandsurface_p.h.

◆ damage

QRegion QWaylandSurfacePrivate::damage

Definition at line 112 of file qwaylandsurface_p.h.

◆ destinationSize

QSize QWaylandSurfacePrivate::destinationSize

Definition at line 126 of file qwaylandsurface_p.h.

◆ destroyed

bool QWaylandSurfacePrivate::destroyed = false

Definition at line 148 of file qwaylandsurface_p.h.

◆ frameCallbacks

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

Definition at line 134 of file qwaylandsurface_p.h.

◆ hasContent

bool QWaylandSurfacePrivate::hasContent = false

Definition at line 149 of file qwaylandsurface_p.h.

◆ 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.

◆ 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.

◆ isOpaque

bool QWaylandSurfacePrivate::isOpaque = false

Definition at line 151 of file qwaylandsurface_p.h.

◆ 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

◆ opaqueRegion

QRegion QWaylandSurfacePrivate::opaqueRegion

Definition at line 127 of file qwaylandsurface_p.h.

◆ [struct]

struct { ... } QWaylandSurfacePrivate::pending

◆ pendingFrameCallbacks

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

Definition at line 133 of file qwaylandsurface_p.h.

◆ refCount

int QWaylandSurfacePrivate::refCount = 1

Definition at line 109 of file qwaylandsurface_p.h.

◆ 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.

◆ subsurface

Subsurface* QWaylandSurfacePrivate::subsurface = nullptr

Definition at line 178 of file qwaylandsurface_p.h.

◆ 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

Definition at line 181 of file qwaylandsurface_p.h.

◆ viewport

QWaylandViewporterPrivate::Viewport* QWaylandSurfacePrivate::viewport = nullptr

Definition at line 115 of file qwaylandsurface_p.h.

◆ views

QList<QWaylandView *> QWaylandSurfacePrivate::views

Definition at line 111 of file qwaylandsurface_p.h.

◆ 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: