Qt Accessibility Client
7 #ifndef QACCESSIBILITYCLIENT_ACCESSIBLEOBJECT_H
8 #define QACCESSIBILITYCLIENT_ACCESSIBLEOBJECT_H
12 namespace QAccessibleClient {
13 class AccessibleObject;
17 #include <QSharedPointer>
20 #include "qaccessibilityclient_export.h"
22 namespace QAccessibleClient {
24 class AccessibleObjectPrivate;
25 class RegistryPrivate;
28 #ifndef QT_NO_DEBUG_STREAM
58 AccessibleInterface = 0x1,
60 ActionInterface = 0x4,
61 ApplicationInterface = 0x8,
62 CollectionInterface = 0x10,
63 ComponentInterface = 0x20,
64 DocumentInterface = 0x40,
65 EditableTextInterface = 0x80,
66 EventKeyboardInterface = 0x100,
67 EventMouseInterface = 0x200,
68 EventObjectInterface = 0x400,
69 HyperlinkInterface = 0x800,
70 HypertextInterface = 0x1000,
71 ImageInterface = 0x2000,
72 SelectionInterface = 0x4000,
73 TableInterface = 0x8000,
74 TextInterface = 0x10000,
75 ValueInterface = 0x20000,
76 SocketInterface = 0x40000,
77 EventWindowInterface = 0x80000,
78 EventFocusInterface = 0x100000,
80 InvalidInterface = 0x80000000
82 Q_DECLARE_FLAGS(Interfaces, Interface)
182 SentenceStartBoundary,
215 return !operator==(other);
241 bool isValid()
const;
253 int indexInParent()
const;
282 int childCount()
const;
333 QString localizedRoleName()
const;
347 int mdiZOrder()
const;
360 double alpha()
const;
369 QRect boundingRect()
const;
379 QRect characterRect(
int offset)
const;
390 Interfaces supportedInterfaces()
const;
400 int caretOffset()
const;
407 int characterCount()
const;
445 QString text(
int startOffset = 0,
int endOffset = -1)
const;
462 QString textWithBoundary(
int offset, TextBoundary boundary,
int *startOffset =
nullptr,
int *endOffset =
nullptr)
const;
470 bool setText(
const QString &text);
480 bool insertText(
const QString &text,
int position = 0,
int length = -1);
489 bool copyText(
int startPos,
int endPos);
498 bool cutText(
int startPos,
int endPos);
507 bool deleteText(
int startPos,
int endPos);
515 bool pasteText(
int position);
522 QPoint focusPoint()
const;
538 QString appToolkitName()
const;
575 QString appLocale(LocaleType lctype = LocaleTypeMessages)
const;
589 double minimumValue()
const;
598 double maximumValue()
const;
609 double minimumValueIncrement()
const;
616 double currentValue()
const;
624 bool setCurrentValue(
const double value);
642 QString imageDescription()
const;
667 QRect imageRect()
const;
678 bool isActive()
const;
680 bool isCheckable()
const;
682 bool isChecked()
const;
685 bool isDefunct()
const;
687 bool isEditable()
const;
689 bool isEnabled()
const;
691 bool isExpandable()
const;
693 bool isExpanded()
const;
695 bool isFocusable()
const;
697 bool isFocused()
const;
699 bool isMultiLine()
const;
701 bool isSelectable()
const;
703 bool isSelected()
const;
705 bool isSensitive()
const;
707 bool isSingleLine()
const;
727 bool isVisible()
const;
742 bool isDefault()
const;
746 bool hasSelectableText()
const;
748 bool hasToolTip()
const;
750 bool supportsAutocompletion()
const;
758 friend class RegistryPrivate;
759 friend class CacheWeakStrategy;
760 friend class CacheStrongStrategy;
761 #ifndef QT_NO_DEBUG_STREAM
765 return qHash(
object.d);
Role
The role indicates the type of UI element that an AccessibleObject represents.
QDataStream & operator<<(QDataStream &out, const KDateTime &dateTime)
bool operator!=(const AccessibleObject &other) const
Inequality operator.
LocaleType
The type of locale.
Interface
This enum describes the different interfaces that an AccessibleObject can implement.
KCALENDARCORE_EXPORT uint qHash(const KCalendarCore::Period &key)
This class represents an accessible object.
TextBoundary
The TextBoundaries enum represents the different boundaries when asking for text at a certain offset.
This class represents the global accessibility registry.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Nov 28 2023 04:00:38 by
doxygen 1.8.17 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.