Struct qt_core::GlobalColor

source ·
pub struct GlobalColor(/* private fields */);
Expand description

Qt's predefined QColor objects:

C++ enum: Qt::GlobalColor.

C++ documentation:

Qt’s predefined QColor objects:

See also QColor.

Implementations§

source§

impl GlobalColor

source

pub fn to_int(&self) -> c_int

source§

impl GlobalColor

source

pub const Color0: GlobalColor = _

0 pixel value (for bitmaps) (C++ enum variant: color0 = 0)

source

pub const Color1: GlobalColor = _

1 pixel value (for bitmaps) (C++ enum variant: color1 = 1)

source

pub const Black: GlobalColor = _

Black (#000000) (C++ enum variant: black = 2)

source

pub const White: GlobalColor = _

White (#ffffff) (C++ enum variant: white = 3)

source

pub const DarkGray: GlobalColor = _

Dark gray (#808080) (C++ enum variant: darkGray = 4)

source

pub const Gray: GlobalColor = _

Gray (#a0a0a4) (C++ enum variant: gray = 5)

source

pub const LightGray: GlobalColor = _

Light gray (#c0c0c0) (C++ enum variant: lightGray = 6)

source

pub const Red: GlobalColor = _

Red (#ff0000) (C++ enum variant: red = 7)

source

pub const Green: GlobalColor = _

Green (#00ff00) (C++ enum variant: green = 8)

source

pub const Blue: GlobalColor = _

Blue (#0000ff) (C++ enum variant: blue = 9)

source

pub const Cyan: GlobalColor = _

Cyan (#00ffff) (C++ enum variant: cyan = 10)

source

pub const Magenta: GlobalColor = _

Magenta (#ff00ff) (C++ enum variant: magenta = 11)

source

pub const Yellow: GlobalColor = _

Yellow (#ffff00) (C++ enum variant: yellow = 12)

source

pub const DarkRed: GlobalColor = _

Dark red (#800000) (C++ enum variant: darkRed = 13)

source

pub const DarkGreen: GlobalColor = _

Dark green (#008000) (C++ enum variant: darkGreen = 14)

source

pub const DarkBlue: GlobalColor = _

Dark blue (#000080) (C++ enum variant: darkBlue = 15)

source

pub const DarkCyan: GlobalColor = _

Dark cyan (#008080) (C++ enum variant: darkCyan = 16)

source

pub const DarkMagenta: GlobalColor = _

Dark magenta (#800080) (C++ enum variant: darkMagenta = 17)

source

pub const DarkYellow: GlobalColor = _

Dark yellow (#808000) (C++ enum variant: darkYellow = 18)

source

pub const Transparent: GlobalColor = _

a transparent black value (i.e., QColor(0, 0, 0, 0)) (C++ enum variant: transparent = 19)

Trait Implementations§

source§

impl Clone for GlobalColor

source§

fn clone(&self) -> GlobalColor

Returns a copy of the value. Read more
1.0.0 · source§

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

Performs copy-assignment from source. Read more
source§

impl Debug for GlobalColor

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl From<GlobalColor> for c_int

source§

fn from(value: GlobalColor) -> Self

Converts to this type from the input type.
source§

impl From<i32> for GlobalColor

source§

fn from(value: c_int) -> Self

Converts to this type from the input type.
source§

impl PartialEq for GlobalColor

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Copy for GlobalColor

source§

impl Eq for GlobalColor

source§

impl StructuralEq for GlobalColor

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

§

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

§

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

§

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.