Messagelib

webengineaccesskeyanchor.h
1/*
2 SPDX-FileCopyrightText: 2016-2024 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#pragma once
8
9#include <QRect>
10#include <QVariant>
11
12namespace WebEngineViewer
13{
14class WebEngineAccessKeyAnchor
15{
16public:
17 explicit WebEngineAccessKeyAnchor(const QVariant &result);
18 WebEngineAccessKeyAnchor();
19 [[nodiscard]] QRect boundingRect() const;
20
21 [[nodiscard]] QString accessKey() const;
22
23 [[nodiscard]] QString href() const;
24
25 [[nodiscard]] QString target() const;
26
27 [[nodiscard]] QString tagName() const;
28
29 [[nodiscard]] QString innerText() const;
30
31private:
32 void initialize(const QVariant &result);
33 QRect mBoundingRect;
34 QString mAccessKey;
35 QString mHref;
36 QString mTarget;
37 QString mTagName;
38 QString mInnerText;
39};
40}
41
42Q_DECLARE_TYPEINFO(WebEngineViewer::WebEngineAccessKeyAnchor, Q_RELOCATABLE_TYPE);
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 29 2024 11:50:55 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.