[][src]Struct qt_gui::QColorTransform

#[repr(C)]pub struct QColorTransform { /* fields omitted */ }

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.

C++ documentation:

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(
    &self,
    other: impl CastInto<Ref<QColorTransform>>
) -> Ref<QColorTransform>
[src]

This is supported on cpp_lib_version="5.14.0" only.

Calls C++ function: QColorTransform& QColorTransform::operator=(const QColorTransform& other).

pub unsafe fn map_uint(&self, argb: c_uint) -> c_uint[src]

This is supported on cpp_lib_version="5.14.0" only.

Applies the color transformation on the QRgb value argb.

Calls C++ function: unsigned int QColorTransform::map(unsigned int argb) const.

C++ documentation:

Applies the color transformation on the QRgb value argb.

The input should be opaque or unpremultiplied.

pub unsafe fn map_q_rgba64(
    &self,
    rgba64: impl CastInto<Ref<QRgba64>>
) -> CppBox<QRgba64>
[src]

This is supported on cpp_lib_version="5.14.0" only.

Applies the color transformation on the QRgba64 value rgba64.

Calls C++ function: QRgba64 QColorTransform::map(QRgba64 rgba64) const.

C++ documentation:

Applies the color transformation on the QRgba64 value rgba64.

The input should be opaque or unpremultiplied.

pub unsafe fn map_q_color(
    &self,
    color: impl CastInto<Ref<QColor>>
) -> CppBox<QColor>
[src]

This is supported on cpp_lib_version="5.14.0" only.

Applies the color transformation on the QColor value color.

Calls C++ function: QColor QColorTransform::map(const QColor& color) const.

C++ documentation:

Applies the color transformation on the QColor value color.

pub unsafe fn new() -> CppBox<QColorTransform>[src]

This is supported on cpp_lib_version="5.14.0" only.

Calls C++ function: [constructor] void QColorTransform::QColorTransform().

pub unsafe fn new_copy(
    color_transform: impl CastInto<Ref<QColorTransform>>
) -> CppBox<QColorTransform>
[src]

This is supported on cpp_lib_version="5.14.0" only.

Calls C++ function: [constructor] void QColorTransform::QColorTransform(const QColorTransform& colorTransform).

pub unsafe fn swap(&self, other: impl CastInto<Ref<QColorTransform>>)[src]

This is supported on cpp_lib_version="5.14.0" only.

Calls C++ function: void QColorTransform::swap(QColorTransform& other).

Trait Implementations

impl CppDeletable for QColorTransform[src]

unsafe fn delete(&self)[src]

Calls C++ function: [destructor] void QColorTransform::~QColorTransform().

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T, U> CastInto<U> for T where
    U: CastFrom<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> StaticUpcast<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.