Orcus
Public Member Functions | Public Attributes | List of all members
orcus::css_property_value_t Struct Reference

#include <css_selector.hpp>

Public Member Functions

 css_property_value_t (const css_property_value_t &r)
 
 css_property_value_t (const pstring &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
 
union {
   struct {
      const char *   str
 
      uint32_t   length
 
   } 
 
   struct {
      union {
         struct {
            uint8_t   red
 
            uint8_t   green
 0 to 255
 
            uint8_t   blue
 0 to 255
 
         } 
 
         struct {
            uint16_t   hue
 
            uint8_t   saturation
 0 to 360 where 0-red, 120-green, and 240-blue
 
            uint8_t   lightness
 percentage
 
         } 
 
      } 
 
      double   alpha
 
   } 
 
}; 
 

Detailed Description

Structure representing a single CSS property value.

Constructor & Destructor Documentation

orcus::css_property_value_t::css_property_value_t ( const pstring 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 string buffer that the pstring object points to.

Member Data Documentation

const char* orcus::css_property_value_t::str

Pointer to a string value. The actual string value must be stored in the string pool associated with the document tree storage.