// 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 #ifdef CXX_QT_GUI_FEATURE #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; QImage qimageInitFromData(const rust::Slice data, rust::Str format); } // namespace cxxqtlib1 } // namespace rust #endif