Holds an element's computed style, which is a combination of the style="" attribute, the CSS stylesheet, and the CSS cascade where properties are inherited from the parent. More...
#include "donner/svg/components/style/ComputedStyleComponent.h"
Public Member Functions | |
| const PropertyRegistry * | properties () const |
| Computed properties, or null while the style is not computed. | |
| const ComputedResourceOpacities * | resourceOpacities () const |
| Final resource opacities, or null while the style is not computed or for a manually constructed style without them. | |
Public Attributes | |
| std::shared_ptr< const ComputedStyle > | style |
| The computed style record, or null while the style is not computed. Records are shared and immutable: computing a style again stores a new record. | |
| bool | externalFill = false |
| Ordinary fill inherited from the scoped external-use host. | |
| bool | externalStroke = false |
| Ordinary stroke inherited from the scoped external-use host. | |
Holds an element's computed style, which is a combination of the style="" attribute, the CSS stylesheet, and the CSS cascade where properties are inherited from the parent.
The style is a shared immutable ComputedStyle record, read through const accessors.