Donner SVG main
0.8.0 ยท 766e862a0.8.0 main
SVG editor and embeddable C⁠+⁠+⁠20 engine.
Loading...
Searching...
No Matches
donner::svg::components::ComputedStyleComponent Struct Reference

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.

Static Public Attributes

static constexpr std::size_t page_size = 64
 Small pages keep the storage of a document with few elements, such as an icon or each externally referenced document, to one 64-entry page, while paged storage keeps every component at a stable address as the storage grows.

Detailed Description

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.


The documentation for this struct was generated from the following file: