#[cxx::bridge]
pub mod ffi {
unsafe extern "C++" {
include!("cxx-qt-lib/qobjectmutptr.h");
type QObjectMutPtr = crate::QObjectMutPtr;
include!("cxx-qt-lib/qvariant.h");
type QVariant = crate::QVariant;
}
#[namespace = "rust::cxxqtlib1::qvariant"]
unsafe extern "C++" {
#[rust_name = "can_convert_QObjectMutPtr"]
fn qvariantCanConvertQObjectMutPtr(variant: &QVariant) -> bool;
#[rust_name = "construct_QObjectMutPtr"]
fn qvariantConstruct(value: &QObjectMutPtr) -> QVariant;
#[rust_name = "value_or_default_QObjectMutPtr"]
fn qvariantValueOrDefault(variant: &QVariant) -> QObjectMutPtr;
}
}
pub(crate) fn can_convert(variant: &ffi::QVariant) -> bool {
ffi::can_convert_QObjectMutPtr(variant)
}
pub(crate) fn construct(value: &ffi::QObjectMutPtr) -> ffi::QVariant {
ffi::construct_QObjectMutPtr(value)
}
pub(crate) fn value_or_default(variant: &ffi::QVariant) -> ffi::QObjectMutPtr {
ffi::value_or_default_QObjectMutPtr(variant)
}