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

Namespaces

namespace  litehtml
 

Typedefs

using litehtml::parse_fn = std::function< bool(const css_token_vector &tokens, int &index)>
 

Functions

bool litehtml::parse_linear_gradient_direction (const css_token_vector &tokens, int &index, float &angle, int &side)
 
bool litehtml::parse_linear_gradient_direction_and_interpolation (const css_token_vector &tokens, gradient &gradient)
 
bool litehtml::parse_color_interpolation_method (const css_token_vector &tokens, int &index, color_space_t &color_space, hue_interpolation_t &hue_interpolation)
 
bool litehtml::parse_gradient_position (const css_token_vector &tokens, int &index, gradient &gradient)
 
bool litehtml::parse_radial_gradient_shape_size_position_interpolation (const css_token_vector &tokens, gradient &result)
 
bool litehtml::parse_conic_gradient_angle_position_interpolation (const css_token_vector &tokens, gradient &gradient)
 
template<class T >
bool litehtml::parse_color_stop_list (const vector< css_token_vector > &list, gradient &grad, document_container *container)
 
parse_fn litehtml::opt (parse_fn a)
 
parse_fn litehtml::seq (parse_fn a, parse_fn b)
 
parse_fn litehtml::oror (parse_fn a, parse_fn b)
 
parse_fn litehtml::operator""_x (const char *str, size_t len)
 
bool litehtml::end (const css_token_vector &tokens, int index)
 
bool litehtml::parse_gradient (const css_token &token, gradient &gradient, document_container *container)
 
bool litehtml::parse_lenang (const css_token &tok, css_length &length)
 
bool litehtml::parse_lenang (const css_token &tok, float &angle)
 
template<class T >
bool litehtml::parse_color_hint (const css_token_vector &tokens, vector< gradient::color_stop > &color_stops)
 
template<class T >
bool litehtml::parse_color_stop (const css_token_vector &tokens, vector< gradient::color_stop > &color_stops, document_container *container)
 
bool litehtml::parse_conic_angle_position (const css_token_vector &tokens, int &index, gradient &gradient)
 
bool litehtml::parse_angle (const css_token &tok, float &angle, bool percents_allowed=false)
 
bool litehtml::parse_radial_size (const css_token_vector &tokens, int &index, gradient &gradient)
 

Variables

const float litehtml::pi = 3.14159265f