Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qwindowsuiaselectionitemprovider.h
Go to the documentation of this file.
1// Copyright (C) 2017 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 QWINDOWSUIASELECTIONITEMPROVIDER_H
5#define QWINDOWSUIASELECTIONITEMPROVIDER_H
6
7#include <QtGui/qtguiglobal.h>
8#if QT_CONFIG(accessibility)
9
11
13
14// Implements the Selection Item control pattern provider. Used for List items and radio buttons.
15class QWindowsUiaSelectionItemProvider : public QWindowsUiaBaseProvider,
16 public QWindowsComBase<ISelectionItemProvider>
17{
18 Q_DISABLE_COPY_MOVE(QWindowsUiaSelectionItemProvider)
19public:
20 explicit QWindowsUiaSelectionItemProvider(QAccessible::Id id);
21 virtual ~QWindowsUiaSelectionItemProvider();
22
23 // ISelectionItemProvider
24 HRESULT STDMETHODCALLTYPE Select() override;
25 HRESULT STDMETHODCALLTYPE AddToSelection() override;
26 HRESULT STDMETHODCALLTYPE RemoveFromSelection() override;
27 HRESULT STDMETHODCALLTYPE get_IsSelected(BOOL *pRetVal) override;
28 HRESULT STDMETHODCALLTYPE get_SelectionContainer(IRawElementProviderSimple **pRetVal) override;
29};
30
32
33#endif // QT_CONFIG(accessibility)
34
35#endif // QWINDOWSUIASELECTIONITEMPROVIDER_H
Combined button and popup list for selecting options.
long HRESULT
virtual HRESULT STDMETHODCALLTYPE get_SelectionContainer(__RPC__deref_out_opt IRawElementProviderSimple **pRetVal)=0
virtual HRESULT STDMETHODCALLTYPE Select()=0
IRawElementProviderFragment __RPC__deref_out_opt IRawElementProviderFragment ** pRetVal
virtual HRESULT STDMETHODCALLTYPE get_IsSelected(__RPC__out BOOL *pRetVal)=0
virtual HRESULT STDMETHODCALLTYPE AddToSelection()=0
virtual HRESULT STDMETHODCALLTYPE RemoveFromSelection()=0