Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qwindowsuiaexpandcollapseprovider.h
Go to the documentation of this file.
1// Copyright (C) 2020 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QWINDOWSUIAEXPANDCOLLAPSEPROVIDER_H
5#define QWINDOWSUIAEXPANDCOLLAPSEPROVIDER_H
6
7#include <QtGui/qtguiglobal.h>
8#if QT_CONFIG(accessibility)
9
11
13
14// Implements the Expand/Collapse control pattern provider. Used for menu items with submenus.
15class QWindowsUiaExpandCollapseProvider : public QWindowsUiaBaseProvider,
16 public QWindowsComBase<IExpandCollapseProvider>
17{
18 Q_DISABLE_COPY_MOVE(QWindowsUiaExpandCollapseProvider)
19public:
20 explicit QWindowsUiaExpandCollapseProvider(QAccessible::Id id);
21 virtual ~QWindowsUiaExpandCollapseProvider() override;
22
23 // IExpandCollapseProvider
24 HRESULT STDMETHODCALLTYPE Expand() override;
25 HRESULT STDMETHODCALLTYPE Collapse() override;
26 HRESULT STDMETHODCALLTYPE get_ExpandCollapseState(__RPC__out ExpandCollapseState *pRetVal) override;
27};
28
30
31#endif // QT_CONFIG(accessibility)
32
33#endif // QWINDOWSUIAEXPANDCOLLAPSEPROVIDER_H
Combined button and popup list for selecting options.
long HRESULT
virtual HRESULT STDMETHODCALLTYPE Collapse()=0
IRawElementProviderFragment __RPC__deref_out_opt IRawElementProviderFragment ** pRetVal
virtual HRESULT STDMETHODCALLTYPE get_ExpandCollapseState(__RPC__out enum ExpandCollapseState *pRetVal)=0
ExpandCollapseState
Definition uiatypes_p.h:122