Donner
C++20 SVG rendering library
Loading...
Searching...
No Matches
donner::svg::components::StylesheetComponent Struct Reference

Data for a "<style>" element. More...

#include "donner/svg/components/StylesheetComponent.h"

Collaboration diagram for donner::svg::components::StylesheetComponent:
[legend]

Public Member Functions

bool isCssType () const
 Returns true if the "<style>" element has either no type attribute, or if it has been manually set to "text/css".
 
void parseStylesheet (const RcStringOrRef &str)
 Parse the contents of the "<style>" element.
 

Public Attributes

css::Stylesheet stylesheet
 The parsed stylesheet from the "<style>" element.
 
RcString type
 The type attribute of the "<style>" element.
 

Detailed Description

Member Function Documentation

◆ parseStylesheet()

void donner::svg::components::StylesheetComponent::parseStylesheet ( const RcStringOrRef & str)

Parse the contents of the "<style>" element.

Parameters
strThe contents of the "<style>" element.

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