Cogs.Core
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
litehtml::web_color Struct Reference

Public Member Functions

 web_color (byte r, byte g, byte b, byte a=255)
 
 web_color (const web_color &val)
 
web_coloroperator= (const web_color &val)
 

Static Public Member Functions

static web_color from_string (const tchar_t *str, litehtml::document_container *callback)
 
static litehtml::tstring resolve_name (const tchar_t *name, litehtml::document_container *callback)
 
static bool is_color (const tchar_t *str)
 

Public Attributes

byte blue
 
byte green
 
byte red
 
byte alpha
 

Detailed Description

Definition at line 16 of file web_color.h.

Constructor & Destructor Documentation

◆ web_color() [1/3]

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

Definition at line 23 of file web_color.h.

◆ web_color() [2/3]

litehtml::web_color::web_color ( )
inline

Definition at line 31 of file web_color.h.

◆ web_color() [3/3]

litehtml::web_color::web_color ( const web_color val)
inline

Definition at line 39 of file web_color.h.

Member Function Documentation

◆ from_string()

litehtml::web_color litehtml::web_color::from_string ( const tchar_t *  str,
litehtml::document_container callback 
)
static

Definition at line 157 of file web_color.cpp.

◆ is_color()

bool litehtml::web_color::is_color ( const tchar_t *  str)
static

Definition at line 271 of file web_color.cpp.

◆ operator=()

web_color & litehtml::web_color::operator= ( const web_color val)
inline

Definition at line 47 of file web_color.h.

◆ resolve_name()

litehtml::tstring litehtml::web_color::resolve_name ( const tchar_t *  name,
litehtml::document_container callback 
)
static

Definition at line 254 of file web_color.cpp.

Member Data Documentation

◆ alpha

byte litehtml::web_color::alpha

Definition at line 21 of file web_color.h.

◆ blue

byte litehtml::web_color::blue

Definition at line 18 of file web_color.h.

◆ green

byte litehtml::web_color::green

Definition at line 19 of file web_color.h.

◆ red

byte litehtml::web_color::red

Definition at line 20 of file web_color.h.


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