Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qwindowsuiarangevalueprovider.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// Qt-Security score:significant reason:default
4
5#ifndef QWINDOWSUIARANGEVALUEPROVIDER_H
6#define QWINDOWSUIARANGEVALUEPROVIDER_H
7
8#include <QtGui/qtguiglobal.h>
9#if QT_CONFIG(accessibility)
10
11#include "qwindowsuiabaseprovider.h"
12
13QT_BEGIN_NAMESPACE
14
15// Implements the Range Value control pattern provider.
16class QWindowsUiaRangeValueProvider : public QWindowsUiaBaseProvider,
17 public QComObject<IRangeValueProvider>
18{
19 Q_DISABLE_COPY_MOVE(QWindowsUiaRangeValueProvider)
20public:
21 explicit QWindowsUiaRangeValueProvider(QAccessible::Id id);
22 virtual ~QWindowsUiaRangeValueProvider();
23
24 // IRangeValueProvider
25 HRESULT STDMETHODCALLTYPE SetValue(double val) override;
26 HRESULT STDMETHODCALLTYPE get_Value(double *pRetVal) override;
27 HRESULT STDMETHODCALLTYPE get_IsReadOnly(BOOL *pRetVal) override;
28 HRESULT STDMETHODCALLTYPE get_Maximum(double *pRetVal) override;
29 HRESULT STDMETHODCALLTYPE get_Minimum(double *pRetVal) override;
30 HRESULT STDMETHODCALLTYPE get_LargeChange(double *pRetVal) override;
31 HRESULT STDMETHODCALLTYPE get_SmallChange(double *pRetVal) override;
32};
33
34QT_END_NAMESPACE
35
36#endif // QT_CONFIG(accessibility)
37
38#endif // QWINDOWSUIARANGEVALUEPROVIDER_H