// clang-format off // SPDX-FileCopyrightText: 2023 Klarälvdalens Datakonsult AB, a KDAB Group company // clang-format on // SPDX-FileContributor: Leon Matthes // // SPDX-License-Identifier: MIT OR Apache-2.0 #pragma once #include #include "rust/cxx.h" #include namespace rust { // QImage has a move constructor, however it is basically trivial. template<> struct IsRelocatable : ::std::true_type {}; namespace cxxqtlib1 { using QImageFormat = QImage::Format; using QImageInvertMode = QImage::InvertMode; QImage qimageInitFromData(const rust::Slice data, rust::Str format); ::std::int64_t qimageCacheKey(const QImage& image); } // namespace cxxqtlib1 } // namespace rust