Sonde v1.1.0
Embeddable Model Context Protocol server for Qt applications
Loading...
Searching...
No Matches
Sonde::anonymous_namespace{quickintegration.cpp}::QuickIntegration Class Reference

GuiIntegration for QQuickWindow and QQuickItem. More...

Inheritance diagram for Sonde::anonymous_namespace{quickintegration.cpp}::QuickIntegration:
Sonde::GuiIntegration

Public Member Functions

QString name () const override
 Unique name; registering another integration with the same name replaces this one.
Expected< QImage > grabWindow (QWindow *window) override
 Renders the window's contents.
Expected< ScreenRect > objectGeometry (QObject *object) override
 Where object is on screen.
Expected< QObjectList > children (QObject *object) override
 Visual children of object if they differ from QObject::children(), or notHandled().
Expected< QObject * > objectAt (QWindow *window, const QPointF &pos) override
 The deepest object at pos (window coordinates), or notHandled().
Expected< QAbstractItemModel * > model (QObject *object) override
 The item model object shows (it is a view, combo box, ...), or notHandled().
Expected< ScreenRect > cellGeometry (QObject *view, const QModelIndex &index, ScrollToCell scroll) override
 Where cell index of view view is on screen.
Expected< QJsonObject > layoutInfo (QObject *object) override
 Layout facts about object for layout_explain (size hints, policies, margins, clipping, ...), or notHandled().
Expected< OverflowFacts > overflowFacts (QObject *object) override
 What this integration knows about how object may overflow, or notHandled().
QList< OpenPopup > openPopups (QObject *root) override
 The open popups that belong to root or an object below it.
QObjectList movingViews (QWindow *window) override
 The views in window still scrolling on their own: a flick, kinetic scrolling, or an animated wheel scroll.
QJsonObject appInfo () override
 Fields this integration adds to app_info's answer, such as the state of a feature it provides.
Public Member Functions inherited from Sonde::GuiIntegration
virtual ~GuiIntegration ()
 Destroys the integration.
virtual Expected< QObject * > objectForWindow (QWindow *window)
 The object that represents a top-level window in the object tree (e.g.

Detailed Description

GuiIntegration for QQuickWindow and QQuickItem.

Member Function Documentation

◆ appInfo()

QJsonObject Sonde::anonymous_namespace{quickintegration.cpp}::QuickIntegration::appInfo ( )
inlineoverridevirtual

Fields this integration adds to app_info's answer, such as the state of a feature it provides.

Every integration is asked.

Reimplemented from Sonde::GuiIntegration.

◆ cellGeometry()

Expected< ScreenRect > Sonde::anonymous_namespace{quickintegration.cpp}::QuickIntegration::cellGeometry ( QObject * view,
const QModelIndex & index,
ScrollToCell scroll )
inlineoverridevirtual

Where cell index of view view is on screen.

Parameters
viewThe view showing the cell's model.
indexThe cell.
scrollWhether to scroll the view so the cell is visible first.
Returns
Its window and rectangle, notHandled(), or a failure that says why the cell isn't shown.

Reimplemented from Sonde::GuiIntegration.

◆ children()

Expected< QObjectList > Sonde::anonymous_namespace{quickintegration.cpp}::QuickIntegration::children ( QObject * object)
inlineoverridevirtual

Visual children of object if they differ from QObject::children(), or notHandled().

Reimplemented from Sonde::GuiIntegration.

◆ grabWindow()

Expected< QImage > Sonde::anonymous_namespace{quickintegration.cpp}::QuickIntegration::grabWindow ( QWindow * window)
inlineoverridevirtual

Renders the window's contents.

Returns
The image, notHandled(), or a failure; the platform's grab (QScreen::grabWindow()) is tried if no integration renders it.

Reimplemented from Sonde::GuiIntegration.

◆ layoutInfo()

Expected< QJsonObject > Sonde::anonymous_namespace{quickintegration.cpp}::QuickIntegration::layoutInfo ( QObject * object)
inlineoverridevirtual

Layout facts about object for layout_explain (size hints, policies, margins, clipping, ...), or notHandled().

Reimplemented from Sonde::GuiIntegration.

◆ model()

Expected< QAbstractItemModel * > Sonde::anonymous_namespace{quickintegration.cpp}::QuickIntegration::model ( QObject * object)
inlineoverridevirtual

The item model object shows (it is a view, combo box, ...), or notHandled().

Reimplemented from Sonde::GuiIntegration.

◆ movingViews()

QObjectList Sonde::anonymous_namespace{quickintegration.cpp}::QuickIntegration::movingViews ( QWindow * window)
inlineoverridevirtual

The views in window still scrolling on their own: a flick, kinetic scrolling, or an animated wheel scroll.

Every integration is asked.

A press on a moving view stops it instead of reaching what is under it, so the input tools wait for these to stop before they reply.

Reimplemented from Sonde::GuiIntegration.

◆ name()

QString Sonde::anonymous_namespace{quickintegration.cpp}::QuickIntegration::name ( ) const
inlineoverridevirtual

Unique name; registering another integration with the same name replaces this one.

Implements Sonde::GuiIntegration.

◆ objectAt()

Expected< QObject * > Sonde::anonymous_namespace{quickintegration.cpp}::QuickIntegration::objectAt ( QWindow * window,
const QPointF & pos )
inlineoverridevirtual

The deepest object at pos (window coordinates), or notHandled().

Reimplemented from Sonde::GuiIntegration.

◆ objectGeometry()

Expected< ScreenRect > Sonde::anonymous_namespace{quickintegration.cpp}::QuickIntegration::objectGeometry ( QObject * object)
inlineoverridevirtual

Where object is on screen.

Returns
Its window and rectangle, notHandled(), or a failure that says why it isn't shown (hidden, say).

Reimplemented from Sonde::GuiIntegration.

◆ openPopups()

QList< OpenPopup > Sonde::anonymous_namespace{quickintegration.cpp}::QuickIntegration::openPopups ( QObject * root)
inlineoverridevirtual

The open popups that belong to root or an object below it.

Every integration is asked, and the lists are joined.

Reimplemented from Sonde::GuiIntegration.

◆ overflowFacts()

Expected< OverflowFacts > Sonde::anonymous_namespace{quickintegration.cpp}::QuickIntegration::overflowFacts ( QObject * object)
inlineoverridevirtual

What this integration knows about how object may overflow, or notHandled().

Reimplemented from Sonde::GuiIntegration.


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