Orcus
Loading...
Searching...
No Matches
orcus::css_property_value_t Struct Reference

#include <css_selector.hpp>

Public Types

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

Public Member Functions

 css_property_value_t (const css_property_value_t &r)
 css_property_value_t (std::string_view _str)
css_property_value_toperator= (const css_property_value_t &r)
void swap (css_property_value_t &r)

Public Attributes

css::property_value_t type
value_type value

Detailed Description

Structure representing a single CSS property value.

Constructor & Destructor Documentation

◆ css_property_value_t()

orcus::css_property_value_t::css_property_value_t ( std::string_view _str)

Constructor that takes a string value.

Parameters
_strstring 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.