[][src]Struct qt_gui::q_color::Spec

#[repr(transparent)]
pub struct Spec(_);

The type of color specified, either RGB, HSV, CMYK or HSL.

C++ enum: QColor::Spec.

C++ documentation:

The type of color specified, either RGB, HSV, CMYK or HSL.

See also spec() and convertTo().

Methods

impl Spec[src]

pub fn to_int(&self) -> c_int[src]

impl Spec[src]

pub const Invalid: Spec[src]

C++ enum variant: Invalid = 0

pub const Rgb: Spec[src]

C++ enum variant: Rgb = 1

pub const Hsv: Spec[src]

C++ enum variant: Hsv = 2

pub const Cmyk: Spec[src]

C++ enum variant: Cmyk = 3

pub const Hsl: Spec[src]

C++ enum variant: Hsl = 4

Trait Implementations

impl Clone for Spec[src]

impl Copy for Spec[src]

impl Debug for Spec[src]

impl Eq for Spec[src]

impl From<Spec> for c_int[src]

impl From<i32> for Spec[src]

impl PartialEq<Spec> for Spec[src]

impl StructuralEq for Spec[src]

impl StructuralPartialEq for Spec[src]

Auto Trait Implementations

impl RefUnwindSafe for Spec

impl Send for Spec

impl Sync for Spec

impl Unpin for Spec

impl UnwindSafe for Spec

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> 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.