Photon 1.0.0
Loading...
Searching...
No Matches
gradient.h File Reference

Go to the source code of this file.

Classes

class  litehtml::gradient
 
class  litehtml::gradient::color_stop
 
class  litehtml::image
 

Namespaces

namespace  litehtml
 

Macros

#define radial_extent_strings   "closest-corner;closest-side;farthest-corner;farthest-side"
 
#define color_space_strings
 
#define hue_interpolation_strings   "shorter;longer;increasing;decreasing"
 

Enumerations

enum  litehtml::gradient_side {
  litehtml::gradient_side_none = 0 , litehtml::gradient_side_left = 0x01 , litehtml::gradient_side_right = 0x02 , litehtml::gradient_side_top = 0x04 ,
  litehtml::gradient_side_bottom = 0x08 , litehtml::gradient_side_x_center = 0x10 , litehtml::gradient_side_y_center = 0x20 , litehtml::gradient_side_x_length = 0x40 ,
  litehtml::gradient_side_y_length = 0x80
}
 
enum  litehtml::radial_shape_t { litehtml::radial_shape_none , litehtml::radial_shape_circle , litehtml::radial_shape_ellipse }
 
enum  litehtml::radial_extent_t {
  litehtml::radial_extent_none , litehtml::radial_extent_closest_corner , litehtml::radial_extent_closest_side , litehtml::radial_extent_farthest_corner ,
  litehtml::radial_extent_farthest_side
}
 
enum  litehtml::color_space_t {
  litehtml::color_space_none , litehtml::color_space_srgb , litehtml::color_space_srgb_linear , litehtml::color_space_display_p3 ,
  litehtml::color_space_a98_rgb , litehtml::color_space_prophoto_rgb , litehtml::color_space_rec2020 , litehtml::color_space_lab ,
  litehtml::color_space_oklab , litehtml::color_space_xyz , litehtml::color_space_xyz_d50 , litehtml::color_space_xyz_d65 ,
  litehtml::color_space_hsl , litehtml::color_space_polar_start = color_space_hsl , litehtml::color_space_hwb , litehtml::color_space_lch ,
  litehtml::color_space_oklch
}
 
enum  litehtml::hue_interpolation_t {
  litehtml::hue_interpolation_none , litehtml::hue_interpolation_shorter , litehtml::hue_interpolation_longer , litehtml::hue_interpolation_increasing ,
  litehtml::hue_interpolation_decreasing
}
 

Functions

bool litehtml::parse_gradient (const css_token &token, gradient &gradient, document_container *container)
 

Macro Definition Documentation

◆ color_space_strings

#define color_space_strings
Value:
"srgb;"\
"srgb-linear;"\
"display-p3;"\
"a98-rgb;"\
"prophoto-rgb;"\
"rec2020;"\
"lab;"\
"oklab;"\
"xyz;"\
"xyz-d50;"\
"xyz-d65;"\
"hsl;"\
"hwb;"\
"lch;"\
"oklch"

◆ hue_interpolation_strings

#define hue_interpolation_strings   "shorter;longer;increasing;decreasing"

◆ radial_extent_strings

#define radial_extent_strings   "closest-corner;closest-side;farthest-corner;farthest-side"