css_property_value_t

Defined in header: <orcus/css_selector.hpp>

struct css_property_value_t

Structure representing a single CSS property value.

Public Types

using value_type = std::variant<std::string_view, css::rgba_color_t, css::hsla_color_t>

Public Functions

css_property_value_t()
css_property_value_t(const css_property_value_t &r)
css_property_value_t(std::string_view _str)

Constructor that takes a string value.

Parameters:

_str – string value to store. This value should point to a string buffer that’s already been interned. The caller is responsible for managing the life cycle of the source string buffer.

css_property_value_t &operator=(const css_property_value_t &r)
void swap(css_property_value_t &r)

Public Members

css::property_value_t type
value_type value