filters

#include <format.h>

Public Member Functions

 Color ()
 
 Color (const Color &c)
 
 Color (unsigned r, unsigned g, unsigned b)
 
 Color (const char *c)
 

Public Attributes

unsigned red
 
unsigned green
 
unsigned blue
 

Friends

bool operator== (const Color &, const Color &)
 
bool operator!= (const Color &, const Color &)
 

Detailed Description

Provides color based on RGB values.

Class Color provides color based on terms of RGB (red, green and blue) components.

Definition at line 37 of file kspread/excel/sidewinder/format.h.

Constructor & Destructor Documentation

◆ Color() [1/4]

Swinder::Color::Color ( )
inline

Constructs a default color with the RGB value (0, 0, 0), i.e black.

Definition at line 46 of file kspread/excel/sidewinder/format.h.

◆ Color() [2/4]

Swinder::Color::Color ( const Color &  c)
inline

Creates a copy of another color.

Definition at line 51 of file kspread/excel/sidewinder/format.h.

◆ Color() [3/4]

Swinder::Color::Color ( unsigned  r,
unsigned  g,
unsigned  b 
)
inline

Creates a color based on given red, green and blue values.

Definition at line 57 of file kspread/excel/sidewinder/format.h.

◆ Color() [4/4]

Swinder::Color::Color ( const char *  c)
inline

Creates a color based on given red, green and blue values, encoded as #RRGGBB in a string.

Definition at line 63 of file kspread/excel/sidewinder/format.h.

Friends And Related Symbol Documentation

◆ operator!=

bool operator!= ( const Color &  c1,
const Color &  c2 
)
friend

Returns true if c1 is not equal to c2; otherwise returns false.

Definition at line 79 of file kspread/excel/sidewinder/format.h.

◆ operator==

bool operator== ( const Color &  c1,
const Color &  c2 
)
friend

Returns true if c1 is equal to c2; otherwise returns false.

Definition at line 73 of file kspread/excel/sidewinder/format.h.

Member Data Documentation

◆ blue

unsigned Swinder::Color::blue

Definition at line 41 of file kspread/excel/sidewinder/format.h.

◆ green

unsigned Swinder::Color::green

Definition at line 41 of file kspread/excel/sidewinder/format.h.

◆ red

unsigned Swinder::Color::red

Definition at line 41 of file kspread/excel/sidewinder/format.h.


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