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
QWaylandXdgToplevelPrivate Class Reference

#include <qwaylandxdgshell_p.h>

+ Inheritance diagram for QWaylandXdgToplevelPrivate:
+ Collaboration diagram for QWaylandXdgToplevelPrivate:

Classes

struct  ConfigureEvent
 

Public Member Functions

 QWaylandXdgToplevelPrivate (QWaylandXdgSurface *xdgSurface, const QWaylandResource &resource)
 
ConfigureEvent lastSentConfigure () const
 
void handleAckConfigure (uint serial)
 
void handleFocusLost ()
 
void handleFocusReceived ()
 
- 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 QWaylandXdgToplevelPrivateget (QWaylandXdgToplevel *toplevel)
 
static Qt::Edges convertToEdges (resize_edge edge)
 
- 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

QWaylandXdgSurfacem_xdgSurface = nullptr
 
QWaylandXdgToplevelm_parentToplevel = nullptr
 
QList< ConfigureEventm_pendingConfigures
 
ConfigureEvent m_lastAckedConfigure
 
QString m_title
 
QString m_appId
 
QSize m_maxSize
 
QSize m_minSize = {0, 0}
 
QWaylandXdgToplevelDecorationV1m_decoration = nullptr
 
bool m_modal = false
 
- 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 QWaylandSurfaceRole s_role
 

Protected Member Functions

void xdg_toplevel_destroy_resource (Resource *resource) override
 
void xdg_toplevel_destroy (Resource *resource) override
 
void xdg_toplevel_set_parent (Resource *resource, struct ::wl_resource *parent) override
 
void xdg_toplevel_set_title (Resource *resource, const QString &title) override
 
void xdg_toplevel_set_app_id (Resource *resource, const QString &app_id) override
 
void xdg_toplevel_show_window_menu (Resource *resource, struct ::wl_resource *seat, uint32_t serial, int32_t x, int32_t y) override
 
void xdg_toplevel_move (Resource *resource, struct ::wl_resource *seatResource, uint32_t serial) override
 
void xdg_toplevel_resize (Resource *resource, struct ::wl_resource *seat, uint32_t serial, uint32_t edges) override
 
void xdg_toplevel_set_max_size (Resource *resource, int32_t width, int32_t height) override
 
void xdg_toplevel_set_min_size (Resource *resource, int32_t width, int32_t height) override
 
void xdg_toplevel_set_maximized (Resource *resource) override
 
void xdg_toplevel_unset_maximized (Resource *resource) override
 
void xdg_toplevel_set_fullscreen (Resource *resource, struct ::wl_resource *output) override
 
void xdg_toplevel_unset_fullscreen (Resource *resource) override
 
void xdg_toplevel_set_minimized (Resource *resource) override
 

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 102 of file qwaylandxdgshell_p.h.

Constructor & Destructor Documentation

◆ QWaylandXdgToplevelPrivate()

QWaylandXdgToplevelPrivate::QWaylandXdgToplevelPrivate ( QWaylandXdgSurface * xdgSurface,
const QWaylandResource & resource )

Definition at line 1299 of file qwaylandxdgshell.cpp.

References init(), and QWaylandResource::resource().

+ Here is the call graph for this function:

Member Function Documentation

◆ convertToEdges()

Qt::Edges QWaylandXdgToplevelPrivate::convertToEdges ( resize_edge edge)
static

Definition at line 1369 of file qwaylandxdgshell.cpp.

Referenced by xdg_toplevel_resize().

+ Here is the caller graph for this function:

◆ get()

◆ handleAckConfigure()

void QWaylandXdgToplevelPrivate::handleAckConfigure ( uint serial)

Definition at line 1305 of file qwaylandxdgshell.cpp.

References QList< T >::begin(), emit, QList< T >::end(), m_lastAckedConfigure, m_pendingConfigures, Q_FOREVER, qWarning, state, and QWaylandXdgToplevelPrivate::ConfigureEvent::states.

+ Here is the call graph for this function:

◆ handleFocusLost()

void QWaylandXdgToplevelPrivate::handleFocusLost ( )

Definition at line 1351 of file qwaylandxdgshell.cpp.

References QWaylandXdgToplevel::ActivatedState, lastSentConfigure(), QList< T >::removeOne(), QWaylandXdgToplevelPrivate::ConfigureEvent::size, and QWaylandXdgToplevelPrivate::ConfigureEvent::states.

+ Here is the call graph for this function:

◆ handleFocusReceived()

void QWaylandXdgToplevelPrivate::handleFocusReceived ( )

Definition at line 1359 of file qwaylandxdgshell.cpp.

References QWaylandXdgToplevel::ActivatedState, QListSpecialMethodsBase< T >::contains(), lastSentConfigure(), QList< T >::push_back(), QWaylandXdgToplevelPrivate::ConfigureEvent::size, and QWaylandXdgToplevelPrivate::ConfigureEvent::states.

+ Here is the call graph for this function:

◆ lastSentConfigure()

ConfigureEvent QWaylandXdgToplevelPrivate::lastSentConfigure ( ) const
inline

Definition at line 119 of file qwaylandxdgshell_p.h.

Referenced by handleFocusLost(), and handleFocusReceived().

+ Here is the caller graph for this function:

◆ xdg_toplevel_destroy()

void QWaylandXdgToplevelPrivate::xdg_toplevel_destroy ( Resource * resource)
overrideprotected

Definition at line 1381 of file qwaylandxdgshell.cpp.

References m_decoration, Q_UNLIKELY, and qWarning.

◆ xdg_toplevel_destroy_resource()

void QWaylandXdgToplevelPrivate::xdg_toplevel_destroy_resource ( Resource * resource)
overrideprotected

Definition at line 1374 of file qwaylandxdgshell.cpp.

References Q_UNUSED.

◆ xdg_toplevel_move()

void QWaylandXdgToplevelPrivate::xdg_toplevel_move ( Resource * resource,
struct ::wl_resource * seatResource,
uint32_t serial )
overrideprotected

Definition at line 1441 of file qwaylandxdgshell.cpp.

References emit, QWaylandSeat::fromSeatResource(), and Q_UNUSED.

+ Here is the call graph for this function:

◆ xdg_toplevel_resize()

void QWaylandXdgToplevelPrivate::xdg_toplevel_resize ( Resource * resource,
struct ::wl_resource * seat,
uint32_t serial,
uint32_t edges )
overrideprotected

Definition at line 1450 of file qwaylandxdgshell.cpp.

References convertToEdges(), emit, QWaylandSeat::fromSeatResource(), and Q_UNUSED.

+ Here is the call graph for this function:

◆ xdg_toplevel_set_app_id()

void QWaylandXdgToplevelPrivate::xdg_toplevel_set_app_id ( Resource * resource,
const QString & app_id )
overrideprotected

Definition at line 1421 of file qwaylandxdgshell.cpp.

References emit, m_appId, and Q_UNUSED.

◆ xdg_toplevel_set_fullscreen()

void QWaylandXdgToplevelPrivate::xdg_toplevel_set_fullscreen ( Resource * resource,
struct ::wl_resource * output )
overrideprotected

Definition at line 1533 of file qwaylandxdgshell.cpp.

References emit, QWaylandOutput::fromResource(), output, and Q_UNUSED.

+ Here is the call graph for this function:

◆ xdg_toplevel_set_max_size()

void QWaylandXdgToplevelPrivate::xdg_toplevel_set_max_size ( Resource * resource,
int32_t width,
int32_t height )
overrideprotected

Definition at line 1459 of file qwaylandxdgshell.cpp.

References emit, QSize::height(), QSize::isValid(), m_maxSize, m_minSize, Q_UNUSED, qWarning, and QSize::width().

+ Here is the call graph for this function:

◆ xdg_toplevel_set_maximized()

void QWaylandXdgToplevelPrivate::xdg_toplevel_set_maximized ( Resource * resource)
overrideprotected

Definition at line 1519 of file qwaylandxdgshell.cpp.

References emit, and Q_UNUSED.

◆ xdg_toplevel_set_min_size()

void QWaylandXdgToplevelPrivate::xdg_toplevel_set_min_size ( Resource * resource,
int32_t width,
int32_t height )
overrideprotected

Definition at line 1489 of file qwaylandxdgshell.cpp.

References emit, QSize::height(), QSize::isValid(), m_maxSize, m_minSize, Q_UNUSED, qWarning, and QSize::width().

+ Here is the call graph for this function:

◆ xdg_toplevel_set_minimized()

void QWaylandXdgToplevelPrivate::xdg_toplevel_set_minimized ( Resource * resource)
overrideprotected

Definition at line 1548 of file qwaylandxdgshell.cpp.

References emit, and Q_UNUSED.

◆ xdg_toplevel_set_parent()

void QWaylandXdgToplevelPrivate::xdg_toplevel_set_parent ( Resource * resource,
struct ::wl_resource * parent )
overrideprotected

Definition at line 1390 of file qwaylandxdgshell.cpp.

References emit, QWaylandXdgToplevel::fromResource(), QWaylandXdgSurfacePrivate::get(), m_parentToplevel, m_xdgSurface, QObjectData::parent, Q_UNUSED, Qt::SubWindow, Qt::Window, and QWaylandXdgSurface::windowType().

+ Here is the call graph for this function:

◆ xdg_toplevel_set_title()

void QWaylandXdgToplevelPrivate::xdg_toplevel_set_title ( Resource * resource,
const QString & title )
overrideprotected

Definition at line 1411 of file qwaylandxdgshell.cpp.

References emit, m_title, Q_UNUSED, and title.

◆ xdg_toplevel_show_window_menu()

void QWaylandXdgToplevelPrivate::xdg_toplevel_show_window_menu ( Resource * resource,
struct ::wl_resource * seat,
uint32_t serial,
int32_t x,
int32_t y )
overrideprotected

Definition at line 1431 of file qwaylandxdgshell.cpp.

References emit, QWaylandSeat::fromSeatResource(), position(), and Q_UNUSED.

+ Here is the call graph for this function:

◆ xdg_toplevel_unset_fullscreen()

void QWaylandXdgToplevelPrivate::xdg_toplevel_unset_fullscreen ( Resource * resource)
overrideprotected

Definition at line 1541 of file qwaylandxdgshell.cpp.

References emit, and Q_UNUSED.

◆ xdg_toplevel_unset_maximized()

void QWaylandXdgToplevelPrivate::xdg_toplevel_unset_maximized ( Resource * resource)
overrideprotected

Definition at line 1526 of file qwaylandxdgshell.cpp.

References emit, and Q_UNUSED.

Member Data Documentation

◆ m_appId

QString QWaylandXdgToplevelPrivate::m_appId

Definition at line 152 of file qwaylandxdgshell_p.h.

Referenced by xdg_toplevel_set_app_id().

◆ m_decoration

QWaylandXdgToplevelDecorationV1* QWaylandXdgToplevelPrivate::m_decoration = nullptr

Definition at line 155 of file qwaylandxdgshell_p.h.

Referenced by xdg_toplevel_destroy().

◆ m_lastAckedConfigure

ConfigureEvent QWaylandXdgToplevelPrivate::m_lastAckedConfigure

Definition at line 150 of file qwaylandxdgshell_p.h.

Referenced by handleAckConfigure().

◆ m_maxSize

QSize QWaylandXdgToplevelPrivate::m_maxSize

Definition at line 153 of file qwaylandxdgshell_p.h.

Referenced by xdg_toplevel_set_max_size(), and xdg_toplevel_set_min_size().

◆ m_minSize

QSize QWaylandXdgToplevelPrivate::m_minSize = {0, 0}

Definition at line 154 of file qwaylandxdgshell_p.h.

Referenced by xdg_toplevel_set_max_size(), and xdg_toplevel_set_min_size().

◆ m_modal

bool QWaylandXdgToplevelPrivate::m_modal = false

Definition at line 156 of file qwaylandxdgshell_p.h.

◆ m_parentToplevel

QWaylandXdgToplevel* QWaylandXdgToplevelPrivate::m_parentToplevel = nullptr

Definition at line 148 of file qwaylandxdgshell_p.h.

Referenced by xdg_toplevel_set_parent().

◆ m_pendingConfigures

QList<ConfigureEvent> QWaylandXdgToplevelPrivate::m_pendingConfigures

Definition at line 149 of file qwaylandxdgshell_p.h.

Referenced by handleAckConfigure().

◆ m_title

QString QWaylandXdgToplevelPrivate::m_title

Definition at line 151 of file qwaylandxdgshell_p.h.

Referenced by xdg_toplevel_set_title().

◆ m_xdgSurface

QWaylandXdgSurface* QWaylandXdgToplevelPrivate::m_xdgSurface = nullptr

Definition at line 147 of file qwaylandxdgshell_p.h.

Referenced by xdg_toplevel_set_parent().

◆ s_role

QWaylandSurfaceRole QWaylandXdgToplevelPrivate::s_role
static

Definition at line 158 of file qwaylandxdgshell_p.h.

Referenced by QWaylandXdgToplevel::role().


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