![]() |
Qt 6.x
The Qt SDK
|
#include <qwaylandxdgshell_p.h>
Classes | |
struct | ConfigureEvent |
Static Public Member Functions | |
static QWaylandXdgToplevelPrivate * | get (QWaylandXdgToplevel *toplevel) |
static Qt::Edges | convertToEdges (resize_edge edge) |
![]() | |
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) |
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 | |
![]() | |
typedef void(* | StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **) |
using | ConnectionDataPointer = QExplicitlySharedDataPointer< ConnectionData > |
Definition at line 102 of file qwaylandxdgshell_p.h.
QWaylandXdgToplevelPrivate::QWaylandXdgToplevelPrivate | ( | QWaylandXdgSurface * | xdgSurface, |
const QWaylandResource & | resource | ||
) |
Definition at line 1262 of file qwaylandxdgshell.cpp.
References init(), and QWaylandResource::resource().
|
static |
Definition at line 1332 of file qwaylandxdgshell.cpp.
Referenced by xdg_toplevel_resize().
|
inlinestatic |
Definition at line 124 of file qwaylandxdgshell_p.h.
Referenced by QWaylandXdgToplevelDecorationV1::QWaylandXdgToplevelDecorationV1(), QWaylandXdgToplevelDecorationV1::~QWaylandXdgToplevelDecorationV1(), QWaylandXdgSurfacePrivate::handleFocusLost(), QWaylandXdgSurfacePrivate::handleFocusReceived(), QWaylandXdgSurfacePrivate::xdg_surface_ack_configure(), and QWaylandXdgDecorationManagerV1Private::zxdg_decoration_manager_v1_get_toplevel_decoration().
Definition at line 1268 of file qwaylandxdgshell.cpp.
References QList< T >::begin(), emit, QList< T >::empty(), QList< T >::end(), m_lastAckedConfigure, m_pendingConfigures, Q_FOREVER, qWarning, state, and QWaylandXdgToplevelPrivate::ConfigureEvent::states.
Referenced by QWaylandXdgSurfacePrivate::xdg_surface_ack_configure().
void QWaylandXdgToplevelPrivate::handleFocusLost | ( | ) |
Definition at line 1314 of file qwaylandxdgshell.cpp.
References QWaylandXdgToplevel::ActivatedState, lastSentConfigure(), QList< T >::removeOne(), QWaylandXdgToplevelPrivate::ConfigureEvent::size, and QWaylandXdgToplevelPrivate::ConfigureEvent::states.
Referenced by QWaylandXdgSurfacePrivate::handleFocusLost().
void QWaylandXdgToplevelPrivate::handleFocusReceived | ( | ) |
Definition at line 1322 of file qwaylandxdgshell.cpp.
References QWaylandXdgToplevel::ActivatedState, QListSpecialMethodsBase< T >::contains(), lastSentConfigure(), QList< T >::push_back(), QWaylandXdgToplevelPrivate::ConfigureEvent::size, and QWaylandXdgToplevelPrivate::ConfigureEvent::states.
Referenced by QWaylandXdgSurfacePrivate::handleFocusReceived().
|
inline |
Definition at line 119 of file qwaylandxdgshell_p.h.
Referenced by handleFocusLost(), and handleFocusReceived().
|
overrideprotected |
Definition at line 1344 of file qwaylandxdgshell.cpp.
References m_decoration, Q_UNLIKELY, and qWarning.
|
overrideprotected |
Definition at line 1337 of file qwaylandxdgshell.cpp.
References Q_UNUSED.
|
overrideprotected |
Definition at line 1404 of file qwaylandxdgshell.cpp.
References emit, QWaylandSeat::fromSeatResource(), and Q_UNUSED.
|
overrideprotected |
Definition at line 1413 of file qwaylandxdgshell.cpp.
References convertToEdges(), emit, QWaylandSeat::fromSeatResource(), and Q_UNUSED.
|
overrideprotected |
Definition at line 1384 of file qwaylandxdgshell.cpp.
|
overrideprotected |
Definition at line 1496 of file qwaylandxdgshell.cpp.
References emit, QWaylandOutput::fromResource(), output, and Q_UNUSED.
|
overrideprotected |
Definition at line 1422 of file qwaylandxdgshell.cpp.
References emit, QSize::height(), QSize::isValid(), m_maxSize, m_minSize, Q_UNUSED, qWarning, and QSize::width().
|
overrideprotected |
Definition at line 1482 of file qwaylandxdgshell.cpp.
|
overrideprotected |
Definition at line 1452 of file qwaylandxdgshell.cpp.
References emit, QSize::height(), QSize::isValid(), m_maxSize, m_minSize, Q_UNUSED, qWarning, and QSize::width().
|
overrideprotected |
Definition at line 1511 of file qwaylandxdgshell.cpp.
|
overrideprotected |
Definition at line 1353 of file qwaylandxdgshell.cpp.
References emit, QWaylandXdgToplevel::fromResource(), QWaylandXdgSurfacePrivate::get(), m_parentToplevel, m_xdgSurface, QObjectData::parent, Q_UNUSED, QWaylandXdgSurfacePrivate::setWindowType(), Qt::SubWindow, Qt::Window, and QWaylandXdgSurface::windowType().
|
overrideprotected |
Definition at line 1394 of file qwaylandxdgshell.cpp.
References emit, QWaylandSeat::fromSeatResource(), position(), and Q_UNUSED.
|
overrideprotected |
Definition at line 1504 of file qwaylandxdgshell.cpp.
|
overrideprotected |
Definition at line 1489 of file qwaylandxdgshell.cpp.
QString QWaylandXdgToplevelPrivate::m_appId |
Definition at line 152 of file qwaylandxdgshell_p.h.
Referenced by xdg_toplevel_set_app_id().
QWaylandXdgToplevelDecorationV1* QWaylandXdgToplevelPrivate::m_decoration = nullptr |
Definition at line 155 of file qwaylandxdgshell_p.h.
Referenced by QWaylandXdgToplevelDecorationV1::~QWaylandXdgToplevelDecorationV1(), and xdg_toplevel_destroy().
ConfigureEvent QWaylandXdgToplevelPrivate::m_lastAckedConfigure |
Definition at line 150 of file qwaylandxdgshell_p.h.
Referenced by handleAckConfigure().
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().
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().
QWaylandXdgToplevel* QWaylandXdgToplevelPrivate::m_parentToplevel = nullptr |
Definition at line 148 of file qwaylandxdgshell_p.h.
Referenced by xdg_toplevel_set_parent().
QList<ConfigureEvent> QWaylandXdgToplevelPrivate::m_pendingConfigures |
Definition at line 149 of file qwaylandxdgshell_p.h.
Referenced by handleAckConfigure().
QString QWaylandXdgToplevelPrivate::m_title |
Definition at line 151 of file qwaylandxdgshell_p.h.
Referenced by xdg_toplevel_set_title().
QWaylandXdgSurface* QWaylandXdgToplevelPrivate::m_xdgSurface = nullptr |
Definition at line 147 of file qwaylandxdgshell_p.h.
Referenced by xdg_toplevel_set_parent().
|
static |
Definition at line 157 of file qwaylandxdgshell_p.h.
Referenced by QWaylandXdgToplevel::role().