Photon 1.0.0
Loading...
Searching...
No Matches
litehtml::web_color Struct Reference

#include <web_color.h>

Public Member Functions

 web_color ()
 
 web_color (byte r, byte g, byte b, byte a=255)
 
 web_color (bool is_current_color)
 
bool operator== (web_color color) const
 
bool operator!= (web_color color) const
 
web_color darken (double fraction) const
 
string to_string () const
 

Public Attributes

byte red = 0
 
byte green = 0
 
byte blue = 0
 
byte alpha = 255
 
bool is_current_color = false
 

Static Public Attributes

static const web_color transparent = web_color(0, 0, 0, 0)
 
static const web_color black = web_color(0, 0, 0, 255)
 
static const web_color white = web_color(255, 255, 255, 255)
 
static const web_color current_color = web_color(true)
 

Constructor & Destructor Documentation

◆ web_color() [1/3]

litehtml::web_color::web_color ( )
inline

◆ web_color() [2/3]

litehtml::web_color::web_color ( byte  r,
byte  g,
byte  b,
byte  a = 255 
)
inline

◆ web_color() [3/3]

litehtml::web_color::web_color ( bool  is_current_color)
inline

Member Function Documentation

◆ darken()

web_color litehtml::web_color::darken ( double  fraction) const

◆ operator!=()

bool litehtml::web_color::operator!= ( web_color  color) const
inline

◆ operator==()

bool litehtml::web_color::operator== ( web_color  color) const
inline

◆ to_string()

string litehtml::web_color::to_string ( ) const

Member Data Documentation

◆ alpha

byte litehtml::web_color::alpha = 255

◆ black

const web_color litehtml::web_color::black = web_color(0, 0, 0, 255)
static

◆ blue

byte litehtml::web_color::blue = 0

◆ current_color

const web_color litehtml::web_color::current_color = web_color(true)
static

◆ green

byte litehtml::web_color::green = 0

◆ is_current_color

bool litehtml::web_color::is_current_color = false

◆ red

byte litehtml::web_color::red = 0

◆ transparent

const web_color litehtml::web_color::transparent = web_color(0, 0, 0, 0)
static

◆ white

const web_color litehtml::web_color::white = web_color(255, 255, 255, 255)
static

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