[−][src]Struct qt_gui::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.
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.
Methods
impl QColorTransform
[src]
pub unsafe fn copy_from(
&mut self,
other: impl CastInto<Ref<QColorTransform>>
) -> MutRef<QColorTransform>
[src]
&mut self,
other: impl CastInto<Ref<QColorTransform>>
) -> MutRef<QColorTransform>
Calls C++ function: QColorTransform& QColorTransform::operator=(const QColorTransform& other)
.
This item is available if cpp_lib_version="5.14.0"
.
pub unsafe fn map_uint(&self, argb: c_uint) -> c_uint
[src]
Applies the color transformation on the QRgb value argb.
Calls C++ function: unsigned int QColorTransform::map(unsigned int argb) const
.
Applies the color transformation on the QRgb value argb.
The input should be opaque or unpremultiplied.
This item is available if cpp_lib_version="5.14.0"
.
pub unsafe fn map_q_rgba64(
&self,
rgba64: impl CastInto<Ref<QRgba64>>
) -> CppBox<QRgba64>
[src]
&self,
rgba64: impl CastInto<Ref<QRgba64>>
) -> CppBox<QRgba64>
Applies the color transformation on the QRgba64 value rgba64.
Calls C++ function: QRgba64 QColorTransform::map(QRgba64 rgba64) const
.
Applies the color transformation on the QRgba64 value rgba64.
The input should be opaque or unpremultiplied.
This item is available if cpp_lib_version="5.14.0"
.
pub unsafe fn map_q_color(
&self,
color: impl CastInto<Ref<QColor>>
) -> CppBox<QColor>
[src]
&self,
color: impl CastInto<Ref<QColor>>
) -> CppBox<QColor>
Applies the color transformation on the QColor value color.
Calls C++ function: QColor QColorTransform::map(const QColor& color) const
.
Applies the color transformation on the QColor value color.
This item is available if cpp_lib_version="5.14.0"
.
pub unsafe fn new() -> CppBox<QColorTransform>
[src]
Calls C++ function: [constructor] void QColorTransform::QColorTransform()
.
This item is available if cpp_lib_version="5.14.0"
.
pub unsafe fn new_copy(
color_transform: impl CastInto<Ref<QColorTransform>>
) -> CppBox<QColorTransform>
[src]
color_transform: impl CastInto<Ref<QColorTransform>>
) -> CppBox<QColorTransform>
Calls C++ function: [constructor] void QColorTransform::QColorTransform(const QColorTransform& colorTransform)
.
This item is available if cpp_lib_version="5.14.0"
.
pub unsafe fn swap(&mut self, other: impl CastInto<MutRef<QColorTransform>>)
[src]
Calls C++ function: void QColorTransform::swap(QColorTransform& other)
.
This item is available if cpp_lib_version="5.14.0"
.
Trait Implementations
impl CppDeletable for QColorTransform
[src]
Auto Trait Implementations
impl RefUnwindSafe for QColorTransform
impl Send for QColorTransform
impl Sync for QColorTransform
impl Unpin for QColorTransform
impl UnwindSafe for QColorTransform
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> CastInto<U> for T where
U: CastFrom<T>,
[src]
U: CastFrom<T>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> StaticUpcast<T> for T
[src]
unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
[src]
unsafe fn static_upcast_mut(ptr: MutPtr<T>) -> MutPtr<T>
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,