Skip to main content

QColor

Struct QColor 

Source
pub struct QColor { /* private fields */ }
Expand description

C++ class: QColor.

Implementations§

Source§

impl QColor

Source

pub unsafe fn alpha(&self) -> c_int

Calls C++ function: int QColor::alpha() const.

Source

pub unsafe fn alpha_f(&self) -> c_double

Calls C++ function: double QColor::alphaF() const.

Source

pub unsafe fn black(&self) -> c_int

Calls C++ function: int QColor::black() const.

Source

pub unsafe fn black_f(&self) -> c_double

Calls C++ function: double QColor::blackF() const.

Source

pub unsafe fn blue(&self) -> c_int

Calls C++ function: int QColor::blue() const.

Source

pub unsafe fn blue_f(&self) -> c_double

Calls C++ function: double QColor::blueF() const.

Source

pub unsafe fn color_names() -> CppBox<QStringList>

Calls C++ function: static QStringList QColor::colorNames().

Source

pub unsafe fn convert_to(&self, color_spec: Spec) -> CppBox<QColor>

Calls C++ function: QColor QColor::convertTo(QColor::Spec colorSpec) const.

Source

pub unsafe fn copy_from_q_color( &self, arg1: impl CastInto<Ref<QColor>>, ) -> Ref<QColor>

Calls C++ function: QColor& QColor::operator=(const QColor& arg1).

Source

pub unsafe fn copy_from_global_color(&self, color: GlobalColor) -> Ref<QColor>

Calls C++ function: QColor& QColor::operator=(Qt::GlobalColor color).

Source

pub unsafe fn cyan(&self) -> c_int

Calls C++ function: int QColor::cyan() const.

Source

pub unsafe fn cyan_f(&self) -> c_double

Calls C++ function: double QColor::cyanF() const.

Source

pub unsafe fn dark_1a(&self, f: c_int) -> CppBox<QColor>

Calls C++ function: QColor QColor::dark(int f = …) const.

Source

pub unsafe fn dark_0a(&self) -> CppBox<QColor>

Calls C++ function: QColor QColor::dark() const.

Source

pub unsafe fn darker_1a(&self, f: c_int) -> CppBox<QColor>

Calls C++ function: QColor QColor::darker(int f = …) const.

Source

pub unsafe fn darker_0a(&self) -> CppBox<QColor>

Calls C++ function: QColor QColor::darker() const.

Source

pub unsafe fn from_cmyk_5a( c: c_int, m: c_int, y: c_int, k: c_int, a: c_int, ) -> CppBox<QColor>

Calls C++ function: static QColor QColor::fromCmyk(int c, int m, int y, int k, int a = …).

Source

pub unsafe fn from_cmyk_4a( c: c_int, m: c_int, y: c_int, k: c_int, ) -> CppBox<QColor>

Calls C++ function: static QColor QColor::fromCmyk(int c, int m, int y, int k).

Source

pub unsafe fn from_cmyk_f_5a( c: c_double, m: c_double, y: c_double, k: c_double, a: c_double, ) -> CppBox<QColor>

Calls C++ function: static QColor QColor::fromCmykF(double c, double m, double y, double k, double a = …).

Source

pub unsafe fn from_cmyk_f_4a( c: c_double, m: c_double, y: c_double, k: c_double, ) -> CppBox<QColor>

Calls C++ function: static QColor QColor::fromCmykF(double c, double m, double y, double k).

Source

pub unsafe fn from_hsl_4a( h: c_int, s: c_int, l: c_int, a: c_int, ) -> CppBox<QColor>

Calls C++ function: static QColor QColor::fromHsl(int h, int s, int l, int a = …).

Source

pub unsafe fn from_hsl_3a(h: c_int, s: c_int, l: c_int) -> CppBox<QColor>

Calls C++ function: static QColor QColor::fromHsl(int h, int s, int l).

Source

pub unsafe fn from_hsl_f_4a( h: c_double, s: c_double, l: c_double, a: c_double, ) -> CppBox<QColor>

Calls C++ function: static QColor QColor::fromHslF(double h, double s, double l, double a = …).

Source

pub unsafe fn from_hsl_f_3a( h: c_double, s: c_double, l: c_double, ) -> CppBox<QColor>

Calls C++ function: static QColor QColor::fromHslF(double h, double s, double l).

Source

pub unsafe fn from_hsv_4a( h: c_int, s: c_int, v: c_int, a: c_int, ) -> CppBox<QColor>

Calls C++ function: static QColor QColor::fromHsv(int h, int s, int v, int a = …).

Source

pub unsafe fn from_hsv_3a(h: c_int, s: c_int, v: c_int) -> CppBox<QColor>

Calls C++ function: static QColor QColor::fromHsv(int h, int s, int v).

Source

pub unsafe fn from_hsv_f_4a( h: c_double, s: c_double, v: c_double, a: c_double, ) -> CppBox<QColor>

Calls C++ function: static QColor QColor::fromHsvF(double h, double s, double v, double a = …).

Source

pub unsafe fn from_hsv_f_3a( h: c_double, s: c_double, v: c_double, ) -> CppBox<QColor>

Calls C++ function: static QColor QColor::fromHsvF(double h, double s, double v).

Source

pub unsafe fn from_rgb_1a(rgb: c_uint) -> CppBox<QColor>

Calls C++ function: static QColor QColor::fromRgb(unsigned int rgb).

Source

pub unsafe fn from_rgb_4a( r: c_int, g: c_int, b: c_int, a: c_int, ) -> CppBox<QColor>

Calls C++ function: static QColor QColor::fromRgb(int r, int g, int b, int a = …).

Source

pub unsafe fn from_rgb_3a(r: c_int, g: c_int, b: c_int) -> CppBox<QColor>

Calls C++ function: static QColor QColor::fromRgb(int r, int g, int b).

Source

pub unsafe fn from_rgb_f_4a( r: c_double, g: c_double, b: c_double, a: c_double, ) -> CppBox<QColor>

Calls C++ function: static QColor QColor::fromRgbF(double r, double g, double b, double a = …).

Source

pub unsafe fn from_rgb_f_3a( r: c_double, g: c_double, b: c_double, ) -> CppBox<QColor>

Calls C++ function: static QColor QColor::fromRgbF(double r, double g, double b).

Source

pub unsafe fn from_rgba(rgba: c_uint) -> CppBox<QColor>

Calls C++ function: static QColor QColor::fromRgba(unsigned int rgba).

Source

pub unsafe fn from_rgba64_4a( r: c_ushort, g: c_ushort, b: c_ushort, a: c_ushort, ) -> CppBox<QColor>

Calls C++ function: static QColor QColor::fromRgba64(unsigned short r, unsigned short g, unsigned short b, unsigned short a = …).

Source

pub unsafe fn from_rgba64_1a( rgba: impl CastInto<Ref<QRgba64>>, ) -> CppBox<QColor>

Calls C++ function: static QColor QColor::fromRgba64(QRgba64 rgba).

Source

pub unsafe fn from_rgba64_3a( r: c_ushort, g: c_ushort, b: c_ushort, ) -> CppBox<QColor>

Calls C++ function: static QColor QColor::fromRgba64(unsigned short r, unsigned short g, unsigned short b).

Source

pub unsafe fn get_cmyk_5a_mut( &self, c: *mut c_int, m: *mut c_int, y: *mut c_int, k: *mut c_int, a: *mut c_int, )

Calls C++ function: void QColor::getCmyk(int* c, int* m, int* y, int* k, int* a = …).

Source

pub unsafe fn get_cmyk_5a( &self, c: *mut c_int, m: *mut c_int, y: *mut c_int, k: *mut c_int, a: *mut c_int, )

Calls C++ function: void QColor::getCmyk(int* c, int* m, int* y, int* k, int* a = …) const.

Source

pub unsafe fn get_cmyk_4a_mut( &self, c: *mut c_int, m: *mut c_int, y: *mut c_int, k: *mut c_int, )

Calls C++ function: void QColor::getCmyk(int* c, int* m, int* y, int* k).

Source

pub unsafe fn get_cmyk_4a( &self, c: *mut c_int, m: *mut c_int, y: *mut c_int, k: *mut c_int, )

Calls C++ function: void QColor::getCmyk(int* c, int* m, int* y, int* k) const.

Source

pub unsafe fn get_cmyk_f_5a_mut( &self, c: *mut c_double, m: *mut c_double, y: *mut c_double, k: *mut c_double, a: *mut c_double, )

Calls C++ function: void QColor::getCmykF(double* c, double* m, double* y, double* k, double* a = …).

Source

pub unsafe fn get_cmyk_f_5a( &self, c: *mut c_double, m: *mut c_double, y: *mut c_double, k: *mut c_double, a: *mut c_double, )

Calls C++ function: void QColor::getCmykF(double* c, double* m, double* y, double* k, double* a = …) const.

Source

pub unsafe fn get_cmyk_f_4a_mut( &self, c: *mut c_double, m: *mut c_double, y: *mut c_double, k: *mut c_double, )

Calls C++ function: void QColor::getCmykF(double* c, double* m, double* y, double* k).

Source

pub unsafe fn get_cmyk_f_4a( &self, c: *mut c_double, m: *mut c_double, y: *mut c_double, k: *mut c_double, )

Calls C++ function: void QColor::getCmykF(double* c, double* m, double* y, double* k) const.

Source

pub unsafe fn get_hsl_4a( &self, h: *mut c_int, s: *mut c_int, l: *mut c_int, a: *mut c_int, )

Calls C++ function: void QColor::getHsl(int* h, int* s, int* l, int* a = …) const.

Source

pub unsafe fn get_hsl_3a(&self, h: *mut c_int, s: *mut c_int, l: *mut c_int)

Calls C++ function: void QColor::getHsl(int* h, int* s, int* l) const.

Source

pub unsafe fn get_hsl_f_4a( &self, h: *mut c_double, s: *mut c_double, l: *mut c_double, a: *mut c_double, )

Calls C++ function: void QColor::getHslF(double* h, double* s, double* l, double* a = …) const.

Source

pub unsafe fn get_hsl_f_3a( &self, h: *mut c_double, s: *mut c_double, l: *mut c_double, )

Calls C++ function: void QColor::getHslF(double* h, double* s, double* l) const.

Source

pub unsafe fn get_hsv_4a( &self, h: *mut c_int, s: *mut c_int, v: *mut c_int, a: *mut c_int, )

Calls C++ function: void QColor::getHsv(int* h, int* s, int* v, int* a = …) const.

Source

pub unsafe fn get_hsv_3a(&self, h: *mut c_int, s: *mut c_int, v: *mut c_int)

Calls C++ function: void QColor::getHsv(int* h, int* s, int* v) const.

Source

pub unsafe fn get_hsv_f_4a( &self, h: *mut c_double, s: *mut c_double, v: *mut c_double, a: *mut c_double, )

Calls C++ function: void QColor::getHsvF(double* h, double* s, double* v, double* a = …) const.

Source

pub unsafe fn get_hsv_f_3a( &self, h: *mut c_double, s: *mut c_double, v: *mut c_double, )

Calls C++ function: void QColor::getHsvF(double* h, double* s, double* v) const.

Source

pub unsafe fn get_rgb_4a( &self, r: *mut c_int, g: *mut c_int, b: *mut c_int, a: *mut c_int, )

Calls C++ function: void QColor::getRgb(int* r, int* g, int* b, int* a = …) const.

Source

pub unsafe fn get_rgb_3a(&self, r: *mut c_int, g: *mut c_int, b: *mut c_int)

Calls C++ function: void QColor::getRgb(int* r, int* g, int* b) const.

Source

pub unsafe fn get_rgb_f_4a( &self, r: *mut c_double, g: *mut c_double, b: *mut c_double, a: *mut c_double, )

Calls C++ function: void QColor::getRgbF(double* r, double* g, double* b, double* a = …) const.

Source

pub unsafe fn get_rgb_f_3a( &self, r: *mut c_double, g: *mut c_double, b: *mut c_double, )

Calls C++ function: void QColor::getRgbF(double* r, double* g, double* b) const.

Source

pub unsafe fn green(&self) -> c_int

Calls C++ function: int QColor::green() const.

Source

pub unsafe fn green_f(&self) -> c_double

Calls C++ function: double QColor::greenF() const.

Source

pub unsafe fn hsl_hue(&self) -> c_int

Calls C++ function: int QColor::hslHue() const.

Source

pub unsafe fn hsl_hue_f(&self) -> c_double

Calls C++ function: double QColor::hslHueF() const.

Source

pub unsafe fn hsl_saturation(&self) -> c_int

Calls C++ function: int QColor::hslSaturation() const.

Source

pub unsafe fn hsl_saturation_f(&self) -> c_double

Calls C++ function: double QColor::hslSaturationF() const.

Source

pub unsafe fn hsv_hue(&self) -> c_int

Calls C++ function: int QColor::hsvHue() const.

Source

pub unsafe fn hsv_hue_f(&self) -> c_double

Calls C++ function: double QColor::hsvHueF() const.

Source

pub unsafe fn hsv_saturation(&self) -> c_int

Calls C++ function: int QColor::hsvSaturation() const.

Source

pub unsafe fn hsv_saturation_f(&self) -> c_double

Calls C++ function: double QColor::hsvSaturationF() const.

Source

pub unsafe fn hue(&self) -> c_int

Calls C++ function: int QColor::hue() const.

Source

pub unsafe fn hue_f(&self) -> c_double

Calls C++ function: double QColor::hueF() const.

Source

pub unsafe fn is_valid(&self) -> bool

Calls C++ function: bool QColor::isValid() const.

Source

pub unsafe fn is_valid_color_q_string(name: impl CastInto<Ref<QString>>) -> bool

Calls C++ function: static bool QColor::isValidColor(const QString& name).

Source

pub unsafe fn is_valid_color_q_string_view( arg1: impl CastInto<Ref<QStringView>>, ) -> bool

Calls C++ function: static bool QColor::isValidColor(QStringView arg1).

Source

pub unsafe fn is_valid_color_q_latin1_string( arg1: impl CastInto<Ref<QLatin1String>>, ) -> bool

Calls C++ function: static bool QColor::isValidColor(QLatin1String arg1).

Source

pub unsafe fn light_1a(&self, f: c_int) -> CppBox<QColor>

Calls C++ function: QColor QColor::light(int f = …) const.

Source

pub unsafe fn light_0a(&self) -> CppBox<QColor>

Calls C++ function: QColor QColor::light() const.

Source

pub unsafe fn lighter_1a(&self, f: c_int) -> CppBox<QColor>

Calls C++ function: QColor QColor::lighter(int f = …) const.

Source

pub unsafe fn lighter_0a(&self) -> CppBox<QColor>

Calls C++ function: QColor QColor::lighter() const.

Source

pub unsafe fn lightness(&self) -> c_int

Calls C++ function: int QColor::lightness() const.

Source

pub unsafe fn lightness_f(&self) -> c_double

Calls C++ function: double QColor::lightnessF() const.

Source

pub unsafe fn magenta(&self) -> c_int

Calls C++ function: int QColor::magenta() const.

Source

pub unsafe fn magenta_f(&self) -> c_double

Calls C++ function: double QColor::magentaF() const.

Source

pub unsafe fn name_0a(&self) -> CppBox<QString>

Calls C++ function: QString QColor::name() const.

Source

pub unsafe fn name_1a(&self, format: NameFormat) -> CppBox<QString>

Calls C++ function: QString QColor::name(QColor::NameFormat format) const.

Source

pub unsafe fn new() -> CppBox<QColor>

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

Source

pub unsafe fn from_global_color(color: GlobalColor) -> CppBox<QColor>

Calls C++ function: [constructor] void QColor::QColor(Qt::GlobalColor color).

Source

pub unsafe fn from_4_int( r: c_int, g: c_int, b: c_int, a: c_int, ) -> CppBox<QColor>

Calls C++ function: [constructor] void QColor::QColor(int r, int g, int b, int a = …).

Source

pub unsafe fn from_uint(rgb: c_uint) -> CppBox<QColor>

Calls C++ function: [constructor] void QColor::QColor(unsigned int rgb).

Source

pub unsafe fn from_q_rgba64( rgba64: impl CastInto<Ref<QRgba64>>, ) -> CppBox<QColor>

Calls C++ function: [constructor] void QColor::QColor(QRgba64 rgba64).

Source

pub unsafe fn from_q_string(name: impl CastInto<Ref<QString>>) -> CppBox<QColor>

Calls C++ function: [constructor] void QColor::QColor(const QString& name).

Source

pub unsafe fn from_q_string_view( name: impl CastInto<Ref<QStringView>>, ) -> CppBox<QColor>

Calls C++ function: [constructor] void QColor::QColor(QStringView name).

Source

pub unsafe fn from_char(aname: *const c_char) -> CppBox<QColor>

Calls C++ function: [constructor] void QColor::QColor(const char* aname).

Source

pub unsafe fn from_q_latin1_string( name: impl CastInto<Ref<QLatin1String>>, ) -> CppBox<QColor>

Calls C++ function: [constructor] void QColor::QColor(QLatin1String name).

Source

pub unsafe fn from_spec(spec: Spec) -> CppBox<QColor>

Calls C++ function: [constructor] void QColor::QColor(QColor::Spec spec).

Source

pub unsafe fn from_spec5_ushort( spec: Spec, a1: c_ushort, a2: c_ushort, a3: c_ushort, a4: c_ushort, a5: c_ushort, ) -> CppBox<QColor>

Calls C++ function: [constructor] void QColor::QColor(QColor::Spec spec, unsigned short a1, unsigned short a2, unsigned short a3, unsigned short a4, unsigned short a5 = …).

Source

pub unsafe fn from_3_int(r: c_int, g: c_int, b: c_int) -> CppBox<QColor>

Calls C++ function: [constructor] void QColor::QColor(int r, int g, int b).

Source

pub unsafe fn from_spec4_ushort( spec: Spec, a1: c_ushort, a2: c_ushort, a3: c_ushort, a4: c_ushort, ) -> CppBox<QColor>

Calls C++ function: [constructor] void QColor::QColor(QColor::Spec spec, unsigned short a1, unsigned short a2, unsigned short a3, unsigned short a4).

Source

pub unsafe fn new_copy(color: impl CastInto<Ref<QColor>>) -> CppBox<QColor>

Calls C++ function: [constructor] void QColor::QColor(const QColor& color).

Source

pub unsafe fn red(&self) -> c_int

Calls C++ function: int QColor::red() const.

Source

pub unsafe fn red_f(&self) -> c_double

Calls C++ function: double QColor::redF() const.

Source

pub unsafe fn rgb(&self) -> c_uint

Calls C++ function: unsigned int QColor::rgb() const.

Source

pub unsafe fn rgba(&self) -> c_uint

Calls C++ function: unsigned int QColor::rgba() const.

Source

pub unsafe fn rgba64(&self) -> CppBox<QRgba64>

Calls C++ function: QRgba64 QColor::rgba64() const.

Source

pub unsafe fn saturation(&self) -> c_int

Calls C++ function: int QColor::saturation() const.

Source

pub unsafe fn saturation_f(&self) -> c_double

Calls C++ function: double QColor::saturationF() const.

Source

pub unsafe fn set_alpha(&self, alpha: c_int)

Calls C++ function: void QColor::setAlpha(int alpha).

Source

pub unsafe fn set_alpha_f(&self, alpha: c_double)

Calls C++ function: void QColor::setAlphaF(double alpha).

Source

pub unsafe fn set_blue(&self, blue: c_int)

Calls C++ function: void QColor::setBlue(int blue).

Source

pub unsafe fn set_blue_f(&self, blue: c_double)

Calls C++ function: void QColor::setBlueF(double blue).

Source

pub unsafe fn set_cmyk_5a( &self, c: c_int, m: c_int, y: c_int, k: c_int, a: c_int, )

Calls C++ function: void QColor::setCmyk(int c, int m, int y, int k, int a = …).

Source

pub unsafe fn set_cmyk_4a(&self, c: c_int, m: c_int, y: c_int, k: c_int)

Calls C++ function: void QColor::setCmyk(int c, int m, int y, int k).

Source

pub unsafe fn set_cmyk_f_5a( &self, c: c_double, m: c_double, y: c_double, k: c_double, a: c_double, )

Calls C++ function: void QColor::setCmykF(double c, double m, double y, double k, double a = …).

Source

pub unsafe fn set_cmyk_f_4a( &self, c: c_double, m: c_double, y: c_double, k: c_double, )

Calls C++ function: void QColor::setCmykF(double c, double m, double y, double k).

Source

pub unsafe fn set_green(&self, green: c_int)

Calls C++ function: void QColor::setGreen(int green).

Source

pub unsafe fn set_green_f(&self, green: c_double)

Calls C++ function: void QColor::setGreenF(double green).

Source

pub unsafe fn set_hsl_4a(&self, h: c_int, s: c_int, l: c_int, a: c_int)

Calls C++ function: void QColor::setHsl(int h, int s, int l, int a = …).

Source

pub unsafe fn set_hsl_3a(&self, h: c_int, s: c_int, l: c_int)

Calls C++ function: void QColor::setHsl(int h, int s, int l).

Source

pub unsafe fn set_hsl_f_4a( &self, h: c_double, s: c_double, l: c_double, a: c_double, )

Calls C++ function: void QColor::setHslF(double h, double s, double l, double a = …).

Source

pub unsafe fn set_hsl_f_3a(&self, h: c_double, s: c_double, l: c_double)

Calls C++ function: void QColor::setHslF(double h, double s, double l).

Source

pub unsafe fn set_hsv_4a(&self, h: c_int, s: c_int, v: c_int, a: c_int)

Calls C++ function: void QColor::setHsv(int h, int s, int v, int a = …).

Source

pub unsafe fn set_hsv_3a(&self, h: c_int, s: c_int, v: c_int)

Calls C++ function: void QColor::setHsv(int h, int s, int v).

Source

pub unsafe fn set_hsv_f_4a( &self, h: c_double, s: c_double, v: c_double, a: c_double, )

Calls C++ function: void QColor::setHsvF(double h, double s, double v, double a = …).

Source

pub unsafe fn set_hsv_f_3a(&self, h: c_double, s: c_double, v: c_double)

Calls C++ function: void QColor::setHsvF(double h, double s, double v).

Source

pub unsafe fn set_named_color_q_string(&self, name: impl CastInto<Ref<QString>>)

Calls C++ function: void QColor::setNamedColor(const QString& name).

Source

pub unsafe fn set_named_color_q_string_view( &self, name: impl CastInto<Ref<QStringView>>, )

Calls C++ function: void QColor::setNamedColor(QStringView name).

Source

pub unsafe fn set_named_color_q_latin1_string( &self, name: impl CastInto<Ref<QLatin1String>>, )

Calls C++ function: void QColor::setNamedColor(QLatin1String name).

Source

pub unsafe fn set_red(&self, red: c_int)

Calls C++ function: void QColor::setRed(int red).

Source

pub unsafe fn set_red_f(&self, red: c_double)

Calls C++ function: void QColor::setRedF(double red).

Source

pub unsafe fn set_rgb_4a(&self, r: c_int, g: c_int, b: c_int, a: c_int)

Calls C++ function: void QColor::setRgb(int r, int g, int b, int a = …).

Source

pub unsafe fn set_rgb_1a(&self, rgb: c_uint)

Calls C++ function: void QColor::setRgb(unsigned int rgb).

Source

pub unsafe fn set_rgb_3a(&self, r: c_int, g: c_int, b: c_int)

Calls C++ function: void QColor::setRgb(int r, int g, int b).

Source

pub unsafe fn set_rgb_f_4a( &self, r: c_double, g: c_double, b: c_double, a: c_double, )

Calls C++ function: void QColor::setRgbF(double r, double g, double b, double a = …).

Source

pub unsafe fn set_rgb_f_3a(&self, r: c_double, g: c_double, b: c_double)

Calls C++ function: void QColor::setRgbF(double r, double g, double b).

Source

pub unsafe fn set_rgba(&self, rgba: c_uint)

Calls C++ function: void QColor::setRgba(unsigned int rgba).

Source

pub unsafe fn set_rgba64(&self, rgba: impl CastInto<Ref<QRgba64>>)

Calls C++ function: void QColor::setRgba64(QRgba64 rgba).

Source

pub unsafe fn spec(&self) -> Spec

Calls C++ function: QColor::Spec QColor::spec() const.

Source

pub unsafe fn to_cmyk(&self) -> CppBox<QColor>

Calls C++ function: QColor QColor::toCmyk() const.

Source

pub unsafe fn to_extended_rgb(&self) -> CppBox<QColor>

Calls C++ function: QColor QColor::toExtendedRgb() const.

Source

pub unsafe fn to_hsl(&self) -> CppBox<QColor>

Calls C++ function: QColor QColor::toHsl() const.

Source

pub unsafe fn to_hsv(&self) -> CppBox<QColor>

Calls C++ function: QColor QColor::toHsv() const.

Source

pub unsafe fn to_q_variant(&self) -> CppBox<QVariant>

Calls C++ function: QVariant QColor::operator QVariant() const.

Source

pub unsafe fn to_rgb(&self) -> CppBox<QColor>

Calls C++ function: QColor QColor::toRgb() const.

Source

pub unsafe fn value(&self) -> c_int

Calls C++ function: int QColor::value() const.

Source

pub unsafe fn value_f(&self) -> c_double

Calls C++ function: double QColor::valueF() const.

Source

pub unsafe fn yellow(&self) -> c_int

Calls C++ function: int QColor::yellow() const.

Source

pub unsafe fn yellow_f(&self) -> c_double

Calls C++ function: double QColor::yellowF() const.

Trait Implementations§

Source§

impl CppDeletable for QColor

Source§

unsafe fn delete(&self)

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

Source§

impl PartialEq<Ref<QColor>> for QColor

Source§

fn eq(&self, c: &Ref<QColor>) -> bool

Calls C++ function: bool QColor::operator==(const QColor& c) const.

1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T, U> CastInto<U> for T
where U: CastFrom<T>,

Source§

unsafe fn cast_into(self) -> U

Performs the conversion. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> StaticUpcast<T> for T

Source§

unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>

Convert type of a const pointer. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.