ClanLib
2.3.7
|
Cascading Style Sheet (CSS) document. Document class for cascading style sheets (CSS). !group=Core/CSS! !header=core.h! More...
#include <css_document.h>
Public Member Functions | |
Construction | |
CL_CSSDocument () | |
Constructs a cascading style sheet document. More... | |
~CL_CSSDocument () | |
Operations | |
std::vector< CL_CSSProperty > | select (const CL_StringRef &element) |
Find rule sets that match a given element. More... | |
void | load (const CL_String &filename, const CL_VirtualDirectory &directory) |
Load CSS document from an input source. More... | |
void | load (const CL_String &fullname) |
Load CSS document from disk. More... | |
static std::vector < CL_CSSProperty > | parse_style_properties (const CL_StringRef &style_text) |
Parses a text string and returns the CSS properties in it. More... | |
Cascading Style Sheet (CSS) document. Document class for cascading style sheets (CSS). !group=Core/CSS! !header=core.h!
CL_CSSDocument::CL_CSSDocument | ( | ) |
Constructs a cascading style sheet document.
CL_CSSDocument::~CL_CSSDocument | ( | ) |
void CL_CSSDocument::load | ( | const CL_String & | filename, |
const CL_VirtualDirectory & | directory | ||
) |
Load CSS document from an input source.
void CL_CSSDocument::load | ( | const CL_String & | fullname) |
Load CSS document from disk.
fullname | = full filename |
|
static |
Parses a text string and returns the CSS properties in it.
std::vector<CL_CSSProperty> CL_CSSDocument::select | ( | const CL_StringRef & | element) |
Find rule sets that match a given element.
The syntax of element is the same as specifying contextual elements in a CSS selector, i.e. 'body div.class a::id:link'.
The returned list is sorted with the most preferred properties returned first in the list.