kwin/effects/zoom/accessibilityintegration.h

47 lines
1.1 KiB
C
Raw Normal View History

2020-08-02 22:22:19 +00:00
/*
KWin - the KDE window manager
This file is part of the KDE project.
2020-08-02 22:22:19 +00:00
SPDX-FileCopyrightText: 2020 Vlad Zahorodnii <vlad.zahorodnii@kde.org>
2020-08-02 22:22:19 +00:00
SPDX-License-Identifier: GPL-2.0-or-later
*/
#pragma once
#include <qaccessibilityclient/registry.h>
namespace KWin
{
class ZoomAccessibilityIntegration : public QObject
{
Q_OBJECT
public:
explicit ZoomAccessibilityIntegration(QObject *parent = nullptr);
void setFocusTrackingEnabled(bool enabled);
bool isFocusTrackingEnabled() const;
void setTextCaretTrackingEnabled(bool enabled);
bool isTextCaretTrackingEnabled() const;
Q_SIGNALS:
void focusPointChanged(const QPoint &point);
private Q_SLOTS:
void slotFocusChanged(const QAccessibleClient::AccessibleObject &object);
private:
void createAccessibilityRegistry();
void destroyAccessibilityRegistry();
void updateAccessibilityRegistry();
QAccessibleClient::Registry *m_accessibilityRegistry = nullptr;
bool m_isFocusTrackingEnabled = false;
bool m_isTextCaretTrackingEnabled = false;
};
} // namespace KWin