CSS Simple selector and its preceding selector combinator in full CSS Selector.
More...
#include <Stylish/SimpleSelector.hpp>
CSS Simple selector and its preceding selector combinator in full CSS Selector.
- See Also
- Selector
-
http://www.w3.org/TR/CSS21/selector.html#simple-selector
Three different origins for the selector.
This is the source of the stylesheet that declared this selector.
- See Also
- http://www.w3.org/TR/CSS21/cascade.html#cascade
| Enumerator |
|---|
| ORIGIN_USER_AGENT |
Stylesheets defined by Cornerstone (eg. "CSS/cornerstone.css")
|
| ORIGIN_AUTHOR |
The default origin for most CSS files.
|
| ORIGIN_USER |
Styles defined by the end user, currently unused.
|
| ORIGIN_MASK |
In the calculated specificity, ORIGIN_MASK << 24 specifies the origin bits.
|
| Stylish::SimpleSelector::SimpleSelector |
( |
Origin |
origin, |
|
|
const QByteArray & |
type = QByteArray(), |
|
|
const QString & |
id = "" |
|
) |
| |
Constructs a new selector.
- Parameters
-
| origin | selector origin |
| type | type field |
| id | id |
| void Stylish::SimpleSelector::addClass |
( |
const QByteArray & |
klass | ) |
|
| void Stylish::SimpleSelector::addId |
( |
const QString & |
id | ) |
|
| void Stylish::SimpleSelector::addPseudoClass |
( |
const QByteArray & |
pseudo | ) |
|
Adds a new pseudo class to the SimpleSelector.
- Parameters
-
| pseudo | name of the new pseudo class |
- Returns
- Returns the lower case class field of the selector
| const QString& Stylish::SimpleSelector::cssId |
( |
| ) |
const |
|
inline |
- Returns
- Returns the id field of the selector
| const QByteArray& Stylish::SimpleSelector::cssType |
( |
| ) |
const |
|
inline |
- Returns
- Returns the type field of the selector
| bool Stylish::SimpleSelector::isEmpty |
( |
| ) |
const |
| bool Stylish::SimpleSelector::operator!= |
( |
const SimpleSelector & |
o | ) |
const |
|
inline |
- Parameters
-
- Returns
- false if the selectors are identical
| bool Stylish::SimpleSelector::operator== |
( |
const SimpleSelector & |
o | ) |
const |
Compares two SimpleSelectors, including their combinators but excluding the chains they might belong to.
- Parameters
-
- Returns
- true if the selectors are identical
| Origin Stylish::SimpleSelector::origin |
( |
| ) |
const |
|
inline |
| std::vector<QByteArray> Stylish::SimpleSelector::pseudoClasses |
( |
| ) |
const |
|
inline |
| void Stylish::SimpleSelector::setCombinator |
( |
Combinator |
c | ) |
|
| void Stylish::SimpleSelector::setType |
( |
const QByteArray & |
type | ) |
|