A StyleSheet contains a list of rules that can be used to define the CSS properties of Styleable objects.
More...
#include <Stylish/StyleSheet.hpp>
A StyleSheet contains a list of rules that can be used to define the CSS properties of Styleable objects.
| void Stylish::StyleSheet::declare |
( |
const Selector & |
selector, |
|
|
const Declarations & |
decls |
|
) |
| |
Declare a rule.
- Parameters
-
| selector | selector that is used to match this declaration |
| decl | declaration |
| bool Stylish::StyleSheet::isEmpty |
( |
| ) |
const |
| const std::vector<Rule>& Stylish::StyleSheet::rules |
( |
| ) |
const |
|
inline |
- Returns
- list of rules in this stylesheet
| void Stylish::StyleSheet::setId |
( |
Declaration & |
decl, |
|
|
const QString & |
source |
|
) |
| |
Sets Stylesheet-unique id to declaration and assigns source to this id.
- Parameters
-
| decl | Declaration to modify |
| source | source location of this declaration. This is free text field, but with CSS files the convention is to use "filename:linenumber" -format. |
| void Stylish::StyleSheet::setUpdateIsolatedSubtrees |
( |
bool |
u | ) |
|
|
inline |
| QString Stylish::StyleSheet::source |
( |
int |
id | ) |
const |
|
inline |
Gets source location for declaration with given id.
- Parameters
-
- Returns
- Declaration source in free text format. However, the convention is to use format "filename:linenumber"
| bool Stylish::StyleSheet::updateIsolatedSubtrees |
( |
| ) |
const |
|
inline |
When a subtree is removed from the original tree, should we maintain the style in the subtree.
In practise: should we update the style to removed widgets
- Returns
- update mode