An element as the rule index and the ancestor filter read its keys: straight from its components, without copies. A shadow entity reads its tag from its own tree entity and its id, classes and attributes from its light entity.
More...
#include "donner/svg/components/style/StyleElementView.h"
|
| | RuleIndexElementView (const Registry ®istry, Entity treeEntity, Entity dataEntity, bool *tagOnly=nullptr) |
|
std::string_view | id () const |
| | The element's id, or empty.
|
|
std::string_view | typeName () const |
| | The local tag name, in any case.
|
|
std::string_view | className () const |
| | Raw class text, for callers that must bound tokenization before starting.
|
|
std::size_t | attributeCount () const |
| | Number of attributes, without visiting their names.
|
|
template<typename Visitor> |
| void | forEachClassName (Visitor &&visit) const |
| | Calls visit with each token of the class list.
|
|
template<typename Visitor> |
| void | forEachAttributeLocalName (Visitor &&visit) const |
| | Calls visit with the local name of each attribute, whatever its namespace.
|
An element as the rule index and the ancestor filter read its keys: straight from its components, without copies. A shadow entity reads its tag from its own tree entity and its id, classes and attributes from its light entity.
◆ RuleIndexElementView()
| donner::svg::components::RuleIndexElementView::RuleIndexElementView |
( |
const Registry & | registry, |
|
|
Entity | treeEntity, |
|
|
Entity | dataEntity, |
|
|
bool * | tagOnly = nullptr ) |
|
inline |
- Parameters
-
| registry | Registry holding the element. |
| treeEntity | The element's tree entity. |
| dataEntity | Its data entity, see StyleDataEntity. |
The documentation for this class was generated from the following file: