Skip to main content

GlobalColor

Struct GlobalColor 

Source
#[repr(transparent)]
pub struct GlobalColor { pub repr: i32, }
Expand description

Qt’s predefined QColor objects.

Fields§

§repr: i32

Implementations§

Source§

impl GlobalColor

Source

pub const color0: Self

0 pixel value (for bitmaps)

Source

pub const color1: Self

1 pixel value (for bitmaps)

Source

pub const black: Self

Black (#000000)

Source

pub const white: Self

White (#ffffff)

Source

pub const darkGray: Self

Dark gray (#808080)

Source

pub const gray: Self

Gray (#a0a0a4)

Source

pub const lightGray: Self

Light gray (#c0c0c0)

Source

pub const red: Self

Red (#ff0000)

Source

pub const green: Self

Green (#00ff00)

Source

pub const blue: Self

Blue (#0000ff)

Source

pub const cyan: Self

Cyan (#00ffff)

Source

pub const magenta: Self

Magenta (#ff00ff)

Source

pub const yellow: Self

Yellow (#ffff00)

Source

pub const darkRed: Self

Dark red (#800000)

Source

pub const darkGreen: Self

Dark green (#008000)

Source

pub const darkBlue: Self

Dark blue (#000080)

Source

pub const darkCyan: Self

Dark cyan (#008080)

Source

pub const darkMagenta: Self

Dark magenta (#ff00ff)

Source

pub const darkYellow: Self

Dark yellow (#808000)

Source

pub const transparent: Self

a transparent black value (i.e., QColor(0, 0, 0,0))

Trait Implementations§

Source§

impl Clone for GlobalColor

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for GlobalColor

Source§

impl Eq for GlobalColor

Source§

impl ExternType for GlobalColor

Source§

type Kind = Trivial

Source§

type Id

A type-level representation of the type’s C++ namespace and type name. Read more
Source§

impl From<GlobalColor> for QColor

Available on crate feature qt_gui only.
Source§

fn from(color: GlobalColor) -> Self

Constructs a new color with a color value of color.

Source§

impl PartialEq for GlobalColor

Source§

fn eq(&self, other: &GlobalColor) -> bool

Tests for self and other values to be equal, and is used by ==.
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.
Source§

impl StructuralPartialEq for GlobalColor

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. 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.