// Copyright (C) 2021 The Qt Company Ltd. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0 #pragma once #include #include #include #include #include #include namespace QmlDesigner { namespace ImageCache { class FontCollectorSizeAuxiliaryData { public: QSize size; QString colorName; QString text; }; class FontCollectorSizesAuxiliaryData { public: Utils::span sizes; QString colorName; QString text; }; class LibraryIconAuxiliaryData { public: bool enable; }; using AuxiliaryData = std::variant; enum class AbortReason : char { Abort, Failed, NoEntry }; using CaptureImageCallback = std::function; using CaptureImageWithScaledImagesCallback = std::function< void(const QImage &image, const QImage &midSizeImage, const QImage &smallImage)>; using AbortCallback = std::function; } // namespace ImageCache } // namespace QmlDesigner