Skip to main content

cxx_qt_lib/qml/
qqmlimageproviderbase.rs

1// SPDX-FileCopyrightText: 2026 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
2// SPDX-FileContributor: Darshan Phaldesai <dev.darshanphaldesai@gmail.com>
3//
4// SPDX-License-Identifier: MIT OR Apache-2.0
5
6#[cxx_qt::bridge]
7mod ffi {
8    #[repr(i32)]
9    #[namespace = "rust::cxxqtlib1"]
10    #[derive(Debug)]
11    enum QQmlImageProviderBaseImageType {
12        Invalid = 0,
13        Image,
14        Pixmap,
15        Texture,
16        ImageResponse,
17    }
18
19    extern "C++Qt" {
20        include!("cxx-qt-lib/qqmlimageproviderbase.h");
21
22        #[qobject]
23        type QQmlImageProviderBase;
24    }
25
26    #[namespace = "rust::cxxqtlib1"]
27    unsafe extern "C++" {
28        type QQmlImageProviderBaseImageType;
29    }
30}
31
32pub use ffi::QQmlImageProviderBase;
33pub use ffi::QQmlImageProviderBaseImageType;