Photon 1.0.0
Loading...
Searching...
No Matches
web_color.cpp File Reference
#include "html.h"
#include "web_color.h"
#include "css_parser.h"

Classes

struct  litehtml::def_color
 

Namespaces

namespace  litehtml
 

Functions

bool litehtml::parse_hash_color (const css_token &tok, web_color &color)
 
float litehtml::clamp (float x, float min, float max)
 
bool litehtml::parse_modern_syntax (const css_token_vector &tokens, bool is_hsl, css_length &x, css_length &y, css_length &z, css_length &a)
 
byte litehtml::calc_percent_and_clamp (const css_length &val, float max=255)
 
bool litehtml::parse_rgb_func (const css_token &tok, web_color &color)
 
void litehtml::hsl_to_rgb (float hue, float sat, float light, float &r, float &g, float &b)
 
bool litehtml::parse_hsl_func (const css_token &tok, web_color &color)
 
bool litehtml::parse_func_color (const css_token &tok, web_color &color)
 
string litehtml::resolve_name (const string &name, document_container *container)
 
bool litehtml::parse_name_color (const css_token &tok, web_color &color, document_container *container)
 
bool litehtml::parse_color (const css_token &token, web_color &color, document_container *container)
 

Variables

def_color litehtml::g_def_colors []