Module style_parser

Module style_parser 

Source
Expand description

Style attribute parsing

This module provides parsers for individual style attributes.

Functionsยง

build_border
Build Border from individual attribute values
build_style_properties
Build StyleProperties from individual attribute values
parse_alignment
Parse alignment
parse_background_attr
Parse background attribute (color, gradient, or image)
parse_border_color
Parse border color
parse_border_radius
Parse border radius
parse_border_style
Parse border style
parse_border_width
Parse border width
parse_color_attr
Parse color attribute
parse_constraint
Parse min/max constraints
parse_fill_portion
Parse fill_portion value
parse_float_attr
Parse float attribute value
parse_int_attr
Parse int attribute value
parse_justification
Parse justification
parse_length_attr
Parse length attribute (width, height, etc.)
parse_opacity
Parse opacity
parse_padding_attr
Parse padding attribute
parse_percentage
Parse percentage value
parse_shadow_attr
Parse shadow attribute
parse_spacing
Parse spacing (must be non-negative)
parse_transform
Parse transform