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
QtWaylandClient::QWaylandDisplay Class Reference

#include <qwaylanddisplay_p.h>

Inheritance diagram for QtWaylandClient::QWaylandDisplay:
Collaboration diagram for QtWaylandClient::QWaylandDisplay:

Classes

struct  RegistryGlobal

Public Slots

void flushRequests ()
Public Slots inherited from QObject
void deleteLater ()
 \threadsafe

Signals

void connected ()
void globalAdded (const RegistryGlobal &global)
void globalRemoved (const RegistryGlobal &global)
Signals inherited from QObject
void destroyed (QObject *=nullptr)
 This signal is emitted immediately before the object obj is destroyed, after any instances of QPointer have been notified, and cannot be blocked.
void objectNameChanged (const QString &objectName, QPrivateSignal)
 This signal is emitted after the object's name has been changed.

Public Member Functions

 QWaylandDisplay (QWaylandIntegration *waylandIntegration)
 ~QWaylandDisplay (void) override
bool initialize ()
QList< QWaylandScreen * > screens () const
QPlatformPlaceholderScreenplaceholderScreen () const
void ensureScreen ()
QWaylandScreenscreenForOutput (struct wl_output *output) const
void handleScreenInitialized (QWaylandScreen *screen)
struct wl_surface * createSurface (void *handle)
struct::wl_region * createRegion (const QRegion &qregion)
struct::wl_subsurface * createSubSurface (QWaylandWindow *window, QWaylandWindow *parent)
struct::wp_viewport * createViewport (QWaylandWindow *window)
QWaylandShellIntegrationshellIntegration () const
QWaylandClientBufferIntegrationclientBufferIntegration () const
QWaylandWindowManagerIntegrationwindowManagerIntegration () const
struct wl_display * wl_display () const
struct::wl_registry * wl_registry ()
QtWayland::wl_compositor * compositor ()
QList< QWaylandInputDevice * > inputDevices () const
QWaylandInputDevicedefaultInputDevice () const
QWaylandInputDevicecurrentInputDevice () const
QWaylandPointerGesturespointerGestures () const
QtWayland::qt_text_input_method_manager_v1 * textInputMethodManager () const
QtWayland::zwp_text_input_manager_v1 * textInputManagerv1 () const
QtWayland::zwp_text_input_manager_v2 * textInputManagerv2 () const
QtWayland::zwp_text_input_manager_v3 * textInputManagerv3 () const
QWaylandHardwareIntegrationhardwareIntegration () const
QWaylandXdgOutputManagerV1xdgOutputManager () const
QtWayland::wp_fractional_scale_manager_v1 * fractionalScaleManager () const
QtWayland::wp_viewporter * viewporter () const
QtWayland::wp_cursor_shape_manager_v1 * cursorShapeManager () const
QtWayland::xdg_toplevel_drag_manager_v1 * xdgToplevelDragManager () const
QtWayland::xx_session_manager_v1 * xxSessionManager () const
QtWayland::xdg_system_bell_v1 * systemBell () const
QWaylandAppMenuManagerappMenuManager () const
ColorManagercolorManager () const
QtWayland::wp_pointer_warp_v1 * pointerWarp () const
QList< RegistryGlobalglobals () const
bool hasRegistryGlobal (QStringView interfaceName) const
void addRegistryListener (RegistryListener listener, void *data)
void removeListener (RegistryListener listener, void *data)
QWaylandShmshm () const
void forceRoundTrip ()
bool supportsWindowDecoration () const
uint32_t lastInputSerial () const
QWaylandInputDevicelastInputDevice () const
QWaylandWindowlastInputWindow () const
void setLastInputDevice (QWaylandInputDevice *device, uint32_t serial, QWaylandWindow *window)
bool isWindowActivated (const QWaylandWindow *window)
void handleWindowActivated (QWaylandWindow *window)
void handleWindowDeactivated (QWaylandWindow *window)
void handleKeyboardFocusChanged (QWaylandInputDevice *inputDevice)
void handleWindowDestroyed (QWaylandWindow *window)
wl_event_queue * frameEventQueue ()
bool isKeyboardAvailable () const
bool isWaylandInputContextRequested () const
void initEventThread ()
Public Member Functions inherited from QObject
Q_INVOKABLE QObject (QObject *parent=nullptr)
 Constructs an object with parent object parent.
virtual ~QObject ()
 Destroys the object, deleting all its child objects.
virtual bool event (QEvent *event)
 This virtual function receives events to an object and should return true if the event e was recognized and processed.
virtual bool eventFilter (QObject *watched, QEvent *event)
 Filters events if this object has been installed as an event filter for the watched object.
QString objectName () const
Q_WEAK_OVERLOAD void setObjectName (const QString &name)
 Sets the object's name to name.
void setObjectName (QAnyStringView name)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
QBindable< QStringbindableObjectName ()
bool isWidgetType () const
 Returns true if the object is a widget; otherwise returns false.
bool isWindowType () const
 Returns true if the object is a window; otherwise returns false.
bool isQuickItemType () const
 Returns true if the object is a QQuickItem; otherwise returns false.
bool isQmlObjectType () const
 Returns whether the object has been created by the QML engine or ownership has been explicitly set via QJSEngine::setObjectOwnership().
bool signalsBlocked () const noexcept
 Returns true if signals are blocked; otherwise returns false.
bool blockSignals (bool b) noexcept
 If block is true, signals emitted by this object are blocked (i.e., emitting a signal will not invoke anything connected to it).
QThreadthread () const
 Returns the thread in which the object lives.
bool moveToThread (QThread *thread QT6_DECL_NEW_OVERLOAD_TAIL)
 Changes the thread affinity for this object and its children and returns true on success.
int startTimer (int interval, Qt::TimerType timerType=Qt::CoarseTimer)
 This is an overloaded function that will start a timer of type timerType and a timeout of interval milliseconds.
int startTimer (std::chrono::nanoseconds time, Qt::TimerType timerType=Qt::CoarseTimer)
void killTimer (int id)
 Kills the timer with timer identifier, id.
void killTimer (Qt::TimerId id)
template<typename T>
findChild (QAnyStringView aName, Qt::FindChildOptions options=Qt::FindChildrenRecursively) const
 Returns the child of this object that can be cast into type T and that is called name, or \nullptr if there is no such object.
template<typename T>
QList< T > findChildren (QAnyStringView aName, Qt::FindChildOptions options=Qt::FindChildrenRecursively) const
 Returns all children of this object with the given name that can be cast to type T, or an empty list if there are no such objects.
template<typename T>
findChild (Qt::FindChildOptions options=Qt::FindChildrenRecursively) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
template<typename T>
QList< T > findChildren (Qt::FindChildOptions options=Qt::FindChildrenRecursively) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
const QObjectListchildren () const
 Returns a list of child objects.
void setParent (QObject *parent)
 Makes the object a child of parent.
void installEventFilter (QObject *filterObj)
 Installs an event filter filterObj on this object.
void removeEventFilter (QObject *obj)
 Removes an event filter object obj from this object.
QMetaObject::Connection connect (const QObject *sender, const char *signal, const char *member, Qt::ConnectionType type=Qt::AutoConnection) const
bool disconnect (const char *signal=nullptr, const QObject *receiver=nullptr, const char *member=nullptr) const
bool disconnect (const QObject *receiver, const char *member=nullptr) const
void dumpObjectTree () const
 Dumps a tree of children to the debug output.
void dumpObjectInfo () const
 Dumps information about signal connections, etc.
bool setProperty (const char *name, const QVariant &value)
 Sets the value of the object's name property to value.
bool setProperty (const char *name, QVariant &&value)
QVariant property (const char *name) const
 Returns the value of the object's name property.
QList< QByteArraydynamicPropertyNames () const
QBindingStoragebindingStorage ()
const QBindingStoragebindingStorage () const
QObjectparent () const
 Returns a pointer to the parent object.
bool inherits (const char *classname) const
 Returns true if this object is an instance of a class that inherits className or a QObject subclass that inherits className; otherwise returns false.

Private Member Functions

void registry_global (uint32_t id, const QString &interface, uint32_t version) override
void registry_global_remove (uint32_t id) override

Friends

class QWaylandIntegration

Additional Inherited Members

Static Public Member Functions inherited from QObject
static QMetaObject::Connection connect (const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
 \threadsafe
static QMetaObject::Connection connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type=Qt::AutoConnection)
template<typename Func1, typename Func2>
static QMetaObject::Connection connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::ContextTypeForFunctor< Func2 >::ContextType *context, Func2 &&slot, Qt::ConnectionType type=Qt::AutoConnection)
template<typename Func1, typename Func2>
static QMetaObject::Connection connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, Func2 &&slot)
static bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *member)
 \threadsafe
static bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &member)
static bool disconnect (const QMetaObject::Connection &)
 Disconnect a connection.
template<typename Func1, typename Func2>
static bool disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiver, Func2 slot)
template<typename Func1>
static bool disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const QObject *receiver, void **zero)
Protected Member Functions inherited from QObject
QObjectsender () const
 Returns a pointer to the object that sent the signal, if called in a slot activated by a signal; otherwise it returns \nullptr.
int senderSignalIndex () const
int receivers (const char *signal) const
 Returns the number of receivers connected to the signal.
bool isSignalConnected (const QMetaMethod &signal) const
virtual void timerEvent (QTimerEvent *event)
 This event handler can be reimplemented in a subclass to receive timer events for the object.
virtual void childEvent (QChildEvent *event)
 This event handler can be reimplemented in a subclass to receive child events.
virtual void customEvent (QEvent *event)
 This event handler can be reimplemented in a subclass to receive custom events.
virtual void connectNotify (const QMetaMethod &signal)
virtual void disconnectNotify (const QMetaMethod &signal)
 QObject (QObjectPrivate &dd, QObject *parent=nullptr)
Protected Attributes inherited from QObject
QScopedPointer< QObjectDatad_ptr
Properties inherited from QObject
QString objectName
 the name of this object

Detailed Description

Definition at line 104 of file qwaylanddisplay_p.h.

Constructor & Destructor Documentation

◆ QWaylandDisplay()

QtWaylandClient::QWaylandDisplay::QWaylandDisplay ( QWaylandIntegration * waylandIntegration)

Definition at line 322 of file qwaylanddisplay.cpp.

◆ ~QWaylandDisplay()

QtWaylandClient::QWaylandDisplay::~QWaylandDisplay ( void )
override

Definition at line 352 of file qwaylanddisplay.cpp.

Member Function Documentation

◆ addRegistryListener()

void QtWaylandClient::QWaylandDisplay::addRegistryListener ( RegistryListener listener,
void * data )

Definition at line 903 of file qwaylanddisplay.cpp.

◆ appMenuManager()

QWaylandAppMenuManager * QtWaylandClient::QWaylandDisplay::appMenuManager ( ) const
inline

Definition at line 227 of file qwaylanddisplay_p.h.

◆ clientBufferIntegration()

QWaylandClientBufferIntegration * QtWaylandClient::QWaylandDisplay::clientBufferIntegration ( ) const

Definition at line 312 of file qwaylanddisplay.cpp.

◆ colorManager()

ColorManager * QtWaylandClient::QWaylandDisplay::colorManager ( ) const
inline

Definition at line 231 of file qwaylanddisplay_p.h.

◆ compositor()

QtWayland::wl_compositor * QtWaylandClient::QWaylandDisplay::compositor ( )
inline

Definition at line 143 of file qwaylanddisplay_p.h.

◆ connected

void QtWaylandClient::QWaylandDisplay::connected ( )
signal

◆ createRegion()

struct::wl_region * QtWaylandClient::QWaylandDisplay::createRegion ( const QRegion & qregion)

Definition at line 272 of file qwaylanddisplay.cpp.

◆ createSubSurface()

wl_subsurface * QtWaylandClient::QWaylandDisplay::createSubSurface ( QWaylandWindow * window,
QWaylandWindow * parent )

Definition at line 282 of file qwaylanddisplay.cpp.

◆ createSurface()

struct wl_surface * QtWaylandClient::QWaylandDisplay::createSurface ( void * handle)

Definition at line 265 of file qwaylanddisplay.cpp.

◆ createViewport()

wp_viewport * QtWaylandClient::QWaylandDisplay::createViewport ( QWaylandWindow * window)

Definition at line 296 of file qwaylanddisplay.cpp.

◆ currentInputDevice()

QWaylandInputDevice * QtWaylandClient::QWaylandDisplay::currentInputDevice ( ) const
inline

Definition at line 150 of file qwaylanddisplay_p.h.

◆ cursorShapeManager()

QtWayland::wp_cursor_shape_manager_v1 * QtWaylandClient::QWaylandDisplay::cursorShapeManager ( ) const
inline

Definition at line 211 of file qwaylanddisplay_p.h.

◆ defaultInputDevice()

QWaylandInputDevice * QtWaylandClient::QWaylandDisplay::defaultInputDevice ( ) const

Definition at line 1050 of file qwaylanddisplay.cpp.

◆ ensureScreen()

void QtWaylandClient::QWaylandDisplay::ensureScreen ( )

Definition at line 408 of file qwaylanddisplay.cpp.

◆ flushRequests

void QtWaylandClient::QWaylandDisplay::flushRequests ( )
slot

Definition at line 521 of file qwaylanddisplay.cpp.

◆ forceRoundTrip()

void QtWaylandClient::QWaylandDisplay::forceRoundTrip ( )

Definition at line 920 of file qwaylanddisplay.cpp.

◆ fractionalScaleManager()

QtWayland::wp_fractional_scale_manager_v1 * QtWaylandClient::QWaylandDisplay::fractionalScaleManager ( ) const
inline

Definition at line 203 of file qwaylanddisplay_p.h.

◆ frameEventQueue()

wl_event_queue * QtWaylandClient::QWaylandDisplay::frameEventQueue ( )
inline

Definition at line 279 of file qwaylanddisplay_p.h.

◆ globalAdded

void QtWaylandClient::QWaylandDisplay::globalAdded ( const RegistryGlobal & global)
signal

◆ globalRemoved

void QtWaylandClient::QWaylandDisplay::globalRemoved ( const RegistryGlobal & global)
signal

◆ globals()

QList< RegistryGlobal > QtWaylandClient::QWaylandDisplay::globals ( ) const
inline

Definition at line 248 of file qwaylanddisplay_p.h.

◆ handleKeyboardFocusChanged()

void QtWaylandClient::QWaylandDisplay::handleKeyboardFocusChanged ( QWaylandInputDevice * inputDevice)

Definition at line 987 of file qwaylanddisplay.cpp.

◆ handleScreenInitialized()

void QtWaylandClient::QWaylandDisplay::handleScreenInitialized ( QWaylandScreen * screen)

Definition at line 605 of file qwaylanddisplay.cpp.

◆ handleWindowActivated()

void QtWaylandClient::QWaylandDisplay::handleWindowActivated ( QWaylandWindow * window)

Definition at line 959 of file qwaylanddisplay.cpp.

◆ handleWindowDeactivated()

void QtWaylandClient::QWaylandDisplay::handleWindowDeactivated ( QWaylandWindow * window)

Definition at line 971 of file qwaylanddisplay.cpp.

◆ handleWindowDestroyed()

void QtWaylandClient::QWaylandDisplay::handleWindowDestroyed ( QWaylandWindow * window)

Definition at line 1002 of file qwaylanddisplay.cpp.

◆ hardwareIntegration()

QWaylandHardwareIntegration * QtWaylandClient::QWaylandDisplay::hardwareIntegration ( ) const
inline

Definition at line 195 of file qwaylanddisplay_p.h.

◆ hasRegistryGlobal()

bool QtWaylandClient::QWaylandDisplay::hasRegistryGlobal ( QStringView interfaceName) const

Definition at line 894 of file qwaylanddisplay.cpp.

◆ initEventThread()

void QtWaylandClient::QWaylandDisplay::initEventThread ( )

Definition at line 530 of file qwaylanddisplay.cpp.

◆ initialize()

bool QtWaylandClient::QWaylandDisplay::initialize ( )

Definition at line 389 of file qwaylanddisplay.cpp.

◆ inputDevices()

QList< QWaylandInputDevice * > QtWaylandClient::QWaylandDisplay::inputDevices ( ) const
inline

Definition at line 148 of file qwaylanddisplay_p.h.

◆ isKeyboardAvailable()

bool QtWaylandClient::QWaylandDisplay::isKeyboardAvailable ( ) const

Definition at line 1055 of file qwaylanddisplay.cpp.

◆ isWaylandInputContextRequested()

bool QtWaylandClient::QWaylandDisplay::isWaylandInputContextRequested ( ) const

Definition at line 1062 of file qwaylanddisplay.cpp.

◆ isWindowActivated()

bool QtWaylandClient::QWaylandDisplay::isWindowActivated ( const QWaylandWindow * window)

Definition at line 954 of file qwaylanddisplay.cpp.

◆ lastInputDevice()

QWaylandInputDevice * QtWaylandClient::QWaylandDisplay::lastInputDevice ( ) const
inline

Definition at line 269 of file qwaylanddisplay_p.h.

◆ lastInputSerial()

uint32_t QtWaylandClient::QWaylandDisplay::lastInputSerial ( ) const
inline

Definition at line 268 of file qwaylanddisplay_p.h.

◆ lastInputWindow()

QWaylandWindow * QtWaylandClient::QWaylandDisplay::lastInputWindow ( ) const

Definition at line 942 of file qwaylanddisplay.cpp.

◆ placeholderScreen()

QPlatformPlaceholderScreen * QtWaylandClient::QWaylandDisplay::placeholderScreen ( ) const
inline

Definition at line 118 of file qwaylanddisplay_p.h.

◆ pointerGestures()

QWaylandPointerGestures * QtWaylandClient::QWaylandDisplay::pointerGestures ( ) const
inline

Definition at line 175 of file qwaylanddisplay_p.h.

◆ pointerWarp()

QtWayland::wp_pointer_warp_v1 * QtWaylandClient::QWaylandDisplay::pointerWarp ( ) const
inline

Definition at line 235 of file qwaylanddisplay_p.h.

◆ registry_global()

void QtWaylandClient::QWaylandDisplay::registry_global ( uint32_t id,
const QString & interface,
uint32_t version )
overrideprivate

Definition at line 630 of file qwaylanddisplay.cpp.

◆ registry_global_remove()

void QtWaylandClient::QWaylandDisplay::registry_global_remove ( uint32_t id)
overrideprivate

Definition at line 826 of file qwaylanddisplay.cpp.

◆ removeListener()

void QtWaylandClient::QWaylandDisplay::removeListener ( RegistryListener listener,
void * data )

Definition at line 912 of file qwaylanddisplay.cpp.

◆ screenForOutput()

QWaylandScreen * QtWaylandClient::QWaylandDisplay::screenForOutput ( struct wl_output * output) const

Definition at line 596 of file qwaylanddisplay.cpp.

◆ screens()

QList< QWaylandScreen * > QtWaylandClient::QWaylandDisplay::screens ( ) const
inline

Definition at line 117 of file qwaylanddisplay_p.h.

◆ setLastInputDevice()

void QtWaylandClient::QWaylandDisplay::setLastInputDevice ( QWaylandInputDevice * device,
uint32_t serial,
QWaylandWindow * window )

Definition at line 947 of file qwaylanddisplay.cpp.

◆ shellIntegration()

QWaylandShellIntegration * QtWaylandClient::QWaylandDisplay::shellIntegration ( ) const

Definition at line 307 of file qwaylanddisplay.cpp.

◆ shm()

QWaylandShm * QtWaylandClient::QWaylandDisplay::shm ( ) const
inline

Definition at line 259 of file qwaylanddisplay_p.h.

◆ supportsWindowDecoration()

bool QtWaylandClient::QWaylandDisplay::supportsWindowDecoration ( ) const

Definition at line 925 of file qwaylanddisplay.cpp.

◆ systemBell()

QtWayland::xdg_system_bell_v1 * QtWaylandClient::QWaylandDisplay::systemBell ( ) const
inline

Definition at line 223 of file qwaylanddisplay_p.h.

◆ textInputManagerv1()

QtWayland::zwp_text_input_manager_v1 * QtWaylandClient::QWaylandDisplay::textInputManagerv1 ( ) const
inline

Definition at line 183 of file qwaylanddisplay_p.h.

◆ textInputManagerv2()

QtWayland::zwp_text_input_manager_v2 * QtWaylandClient::QWaylandDisplay::textInputManagerv2 ( ) const
inline

Definition at line 187 of file qwaylanddisplay_p.h.

◆ textInputManagerv3()

QtWayland::zwp_text_input_manager_v3 * QtWaylandClient::QWaylandDisplay::textInputManagerv3 ( ) const
inline

Definition at line 191 of file qwaylanddisplay_p.h.

◆ textInputMethodManager()

QtWayland::qt_text_input_method_manager_v1 * QtWaylandClient::QWaylandDisplay::textInputMethodManager ( ) const
inline

Definition at line 179 of file qwaylanddisplay_p.h.

◆ viewporter()

QtWayland::wp_viewporter * QtWaylandClient::QWaylandDisplay::viewporter ( ) const
inline

Definition at line 207 of file qwaylanddisplay_p.h.

◆ windowManagerIntegration()

QWaylandWindowManagerIntegration * QtWaylandClient::QWaylandDisplay::windowManagerIntegration ( ) const

Definition at line 317 of file qwaylanddisplay.cpp.

◆ wl_display()

struct wl_display * QtWaylandClient::QWaylandDisplay::wl_display ( ) const
inline

Definition at line 137 of file qwaylanddisplay_p.h.

◆ wl_registry()

struct::wl_registry * QtWaylandClient::QWaylandDisplay::wl_registry ( )
inline

Definition at line 141 of file qwaylanddisplay_p.h.

◆ xdgOutputManager()

QWaylandXdgOutputManagerV1 * QtWaylandClient::QWaylandDisplay::xdgOutputManager ( ) const
inline

Definition at line 199 of file qwaylanddisplay_p.h.

◆ xdgToplevelDragManager()

QtWayland::xdg_toplevel_drag_manager_v1 * QtWaylandClient::QWaylandDisplay::xdgToplevelDragManager ( ) const
inline

Definition at line 215 of file qwaylanddisplay_p.h.

◆ xxSessionManager()

QtWayland::xx_session_manager_v1 * QtWaylandClient::QWaylandDisplay::xxSessionManager ( ) const
inline

Definition at line 219 of file qwaylanddisplay_p.h.

◆ QWaylandIntegration

friend class QWaylandIntegration
friend

Definition at line 405 of file qwaylanddisplay_p.h.


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