[]Struct qmetaobject::qttypes::QColor

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

Wrapper around QColor

Methods

impl QColor[src]

pub fn from_name(name: &str) -> Self[src]

Construct a QColor from a string. Refer to the Qt documentation of QColor::setNamedColor

pub fn from_rgb_f(r: f64, g: f64, b: f64) -> Self[src]

Refer to the Qt documentation of QColor::fromRgbF

pub fn from_rgba_f(r: f64, g: f64, b: f64, a: f64) -> Self[src]

Same as from_rgb_f, but accept an alpha value.

pub fn get_rgba(&self) -> (f64, f64, f64, f64)[src]

Returns the individual component as floating point. Refer to the Qt documentation of QColor::getRgbF.

Trait Implementations

impl QMetaType for QColor[src]

impl Clone for QColor

impl Copy for QColor

impl Default for QColor

impl PartialEq<QColor> for QColor

Auto Trait Implementations

impl Send for QColor

impl Sync for QColor

impl Unpin for QColor

impl UnwindSafe for QColor

impl RefUnwindSafe for QColor

Blanket Implementations

impl<T> QMetaType for T where
    T: QGadget + Clone + Default + 'static, 
[src]

impl<T> PropertyType for T where
    T: QMetaType
[src]

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.

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

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

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