File indexing completed on 2025-01-26 04:57:25

0001 /*
0002    SPDX-FileCopyrightText: 2016-2024 Laurent Montel <montel@kde.org>
0003 
0004    SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 #pragma once
0007 
0008 #include "webengineviewer_export.h"
0009 #include <QPoint>
0010 #include <QString>
0011 
0012 namespace WebEngineViewer
0013 {
0014 namespace WebEngineScript
0015 {
0016 [[nodiscard]] WEBENGINEVIEWER_EXPORT QString findAllImages();
0017 [[nodiscard]] WEBENGINEVIEWER_EXPORT QString findAllScripts();
0018 [[nodiscard]] WEBENGINEVIEWER_EXPORT QString findAllAnchors();
0019 [[nodiscard]] WEBENGINEVIEWER_EXPORT QString findAllAnchorsAndForms();
0020 [[nodiscard]] WEBENGINEVIEWER_EXPORT QString searchElementPosition(const QString &elementStr);
0021 [[nodiscard]] WEBENGINEVIEWER_EXPORT QString scrollToPosition(const QPoint &pos);
0022 [[nodiscard]] WEBENGINEVIEWER_EXPORT QString setElementByIdVisible(const QString &elementStr, bool visibility);
0023 [[nodiscard]] WEBENGINEVIEWER_EXPORT QString setStyleToElement(const QString &elementStr, const QString &style);
0024 [[nodiscard]] WEBENGINEVIEWER_EXPORT QString scrollDown(int pixel);
0025 [[nodiscard]] WEBENGINEVIEWER_EXPORT QString scrollUp(int pixel);
0026 [[nodiscard]] WEBENGINEVIEWER_EXPORT QString scrollPercentage(int percent);
0027 [[nodiscard]] WEBENGINEVIEWER_EXPORT QString scrollToRelativePosition(qreal pos);
0028 [[nodiscard]] WEBENGINEVIEWER_EXPORT QString removeStyleToElement(const QString &element);
0029 [[nodiscard]] WEBENGINEVIEWER_EXPORT QString isScrolledToBottom();
0030 }
0031 }