Struct qt_gui::QColorTransform
source · #[repr(C)]pub struct QColorTransform { /* private fields */ }
Expand description
QColorTransform is an instantiation of a transformation between color spaces. It can be applied on color and pixels to convert them from one color space to another.
C++ class: QColorTransform
.
QColorTransform is an instantiation of a transformation between color spaces. It can be applied on color and pixels to convert them from one color space to another.
Setting up a QColorTransform takes some preprocessing, so keeping around QColorTransforms that you need often is recommended, instead of generating them on the fly.
Implementations§
source§impl QColorTransform
impl QColorTransform
sourcepub unsafe fn copy_from(
&self,
other: impl CastInto<Ref<QColorTransform>>
) -> Ref<QColorTransform>
Available on cpp_lib_version="5.14.0"
only.
pub unsafe fn copy_from( &self, other: impl CastInto<Ref<QColorTransform>> ) -> Ref<QColorTransform>
cpp_lib_version="5.14.0"
only.Calls C++ function: QColorTransform& QColorTransform::operator=(const QColorTransform& other)
.
sourcepub unsafe fn map_uint(&self, argb: c_uint) -> c_uint
Available on cpp_lib_version="5.14.0"
only.
pub unsafe fn map_uint(&self, argb: c_uint) -> c_uint
cpp_lib_version="5.14.0"
only.sourcepub unsafe fn map_q_rgba64(
&self,
rgba64: impl CastInto<Ref<QRgba64>>
) -> CppBox<QRgba64>
Available on cpp_lib_version="5.14.0"
only.
pub unsafe fn map_q_rgba64( &self, rgba64: impl CastInto<Ref<QRgba64>> ) -> CppBox<QRgba64>
cpp_lib_version="5.14.0"
only.sourcepub unsafe fn map_q_color(
&self,
color: impl CastInto<Ref<QColor>>
) -> CppBox<QColor>
Available on cpp_lib_version="5.14.0"
only.
pub unsafe fn map_q_color( &self, color: impl CastInto<Ref<QColor>> ) -> CppBox<QColor>
cpp_lib_version="5.14.0"
only.sourcepub unsafe fn new() -> CppBox<QColorTransform>
Available on cpp_lib_version="5.14.0"
only.
pub unsafe fn new() -> CppBox<QColorTransform>
cpp_lib_version="5.14.0"
only.Calls C++ function: [constructor] void QColorTransform::QColorTransform()
.
sourcepub unsafe fn new_copy(
color_transform: impl CastInto<Ref<QColorTransform>>
) -> CppBox<QColorTransform>
Available on cpp_lib_version="5.14.0"
only.
pub unsafe fn new_copy( color_transform: impl CastInto<Ref<QColorTransform>> ) -> CppBox<QColorTransform>
cpp_lib_version="5.14.0"
only.Calls C++ function: [constructor] void QColorTransform::QColorTransform(const QColorTransform& colorTransform)
.
sourcepub unsafe fn swap(&self, other: impl CastInto<Ref<QColorTransform>>)
Available on cpp_lib_version="5.14.0"
only.
pub unsafe fn swap(&self, other: impl CastInto<Ref<QColorTransform>>)
cpp_lib_version="5.14.0"
only.Calls C++ function: void QColorTransform::swap(QColorTransform& other)
.
Trait Implementations§
source§impl CppDeletable for QColorTransform
Available on cpp_lib_version="5.14.0"
only.
impl CppDeletable for QColorTransform
cpp_lib_version="5.14.0"
only.