Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/QtGui/qaccessibleobject.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 // Copyright (C) 2016 The Qt Company Ltd.
0002 // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
0003 
0004 #ifndef QACCESSIBLEOBJECT_H
0005 #define QACCESSIBLEOBJECT_H
0006 
0007 #include <QtGui/qtguiglobal.h>
0008 #include <QtGui/qaccessible.h>
0009 
0010 QT_BEGIN_NAMESPACE
0011 
0012 
0013 #if QT_CONFIG(accessibility)
0014 
0015 class QAccessibleObjectPrivate;
0016 class QObject;
0017 
0018 class Q_GUI_EXPORT QAccessibleObject : public QAccessibleInterface
0019 {
0020 public:
0021     explicit QAccessibleObject(QObject *object);
0022 
0023     bool isValid() const override;
0024     QObject *object() const override;
0025 
0026     // properties
0027     QRect rect() const override;
0028     void setText(QAccessible::Text t, const QString &text) override;
0029     QAccessibleInterface *childAt(int x, int y) const override;
0030 
0031 protected:
0032     ~QAccessibleObject();
0033 
0034 private:
0035     QAccessibleObjectPrivate *d;
0036     Q_DISABLE_COPY(QAccessibleObject)
0037 };
0038 
0039 class Q_GUI_EXPORT QAccessibleApplication : public QAccessibleObject
0040 {
0041 public:
0042     QAccessibleApplication();
0043 
0044     QWindow *window() const override;
0045     // relations
0046     int childCount() const override;
0047     int indexOfChild(const QAccessibleInterface*) const override;
0048     QAccessibleInterface *focusChild() const override;
0049 
0050     // navigation
0051     QAccessibleInterface *parent() const override;
0052     QAccessibleInterface *child(int index) const override;
0053 
0054     // properties and state
0055     QString text(QAccessible::Text t) const override;
0056     QAccessible::Role role() const override;
0057     QAccessible::State state() const override;
0058 };
0059 
0060 #endif // QT_CONFIG(accessibility)
0061 
0062 QT_END_NAMESPACE
0063 
0064 #endif // QACCESSIBLEOBJECT_H