gdk-graphics  1b6d84e044c2c953fd7c9501e628a67e80f4da0d
Public Types | Public Member Functions | Public Attributes | List of all members
gdk::color Struct Referencefinal

Represents a 4 channel color: {Red, Green, Blue, Alpha}. More...

#include <color.h>

Public Types

using channel_type = float
 

Public Member Functions

bool operator== (const color &aOther) const
 equality semantics
 
bool operator!= (const color &aOther) const
 equality semantics
 
 color (const color &)=default
 copy semantics
 
coloroperator= (const color &acolor)=default
 copy semantics
 
 color (color &&)=default
 move semantics
 
coloroperator= (color &&acolor)=default
 move semantics
 
 color ()=default
 constructs a color as opaque black
 
 color (const channel_type aR, const channel_type aG, const channel_type aB, const channel_type aA=1)
 constructs a color with provided channel values. Alpha has a default opaque value
 

Public Attributes

channel_type r = 0
 
channel_type g = 0
 
channel_type b = 0
 
channel_type a = 1
 

Static Public Attributes

special values
static const color Black
 opaque black color
 
static const color White
 opaque white color
 
static const color Red
 opaque red color
 
static const color Green
 opaque green color
 
static const color DarkGreen
 opaque dark green color
 
static const color Blue
 opaque blue color
 
static const color DeathlyPink
 
static const color CornflowerBlue
 an opaque pastel blue color
 

Detailed Description

Represents a 4 channel color: {Red, Green, Blue, Alpha}.

Member Data Documentation

◆ DeathlyPink

const color gdk::color::DeathlyPink
static

opaque bright pink color, useful for indicating color-related errors (stands out against most palettes)


The documentation for this struct was generated from the following file: