|
AUI Framework
master
Cross-platform base for C++ UI apps
|
AUI Style Sheets selector is a predicate whether view suit certain rules or not.
Classes# | |
| struct | ass::on_state::Hovered |
| Hovered LESS-style subselector. More... | |
| struct | ass::on_state::Activated |
| Activated LESS-style subselector. More... | |
| struct | ass::on_state::Focused |
| Focused LESS-style subselector. More... | |
| struct | ass::on_state::Disabled |
| Disabled LESS-style subselector. More... | |
| struct | ass::Selected |
| Wraps another selector matching Selected views. More... | |
Typedefs# | |
| using | ass::sel = AAssSelector |
| Runtime-type selector. | |
| using | ass::c = class_of |
| Selects views that are of the specified classes. | |
| template<typename T> | |
| using | ass::t = type_of<T> |
| Selects views that are of the specified C++ types. | |
This selector selects views that are of the specified classes. The selector can be accessed explicitly via ass::class_of.
For example:
This will select all views that belong to ".btn" ASS class.
| using ass::sel = AAssSelector |
This type type-erases the selectors and allows to encapsulate.
This selector selects views that are of the specified classes. The selector can be accessed explicitly via ass::type_of.
For example:
This will select all AButtons.
| NotSelector< L > ass::operator! | ( | L | l | ) |
In this example, we want to select all views that match ".btn" but don't match ".accent".
| AndSelector< L, R > ass::operator&& | ( | L | l, |
| R | r ) |
In this example, we want to select all views that match both ".btn" and ".accent".
| DirectParentSubSelector< L, R > ass::operator> | ( | L | l, |
| R | r ) |
In this example, we want to select all views that have direct parent matching ".window-title" ASS class and then select the hovered ".close" subselector within them.
| ParentSubSelector< L, R > ass::operator>> | ( | L | l, |
| R | r ) |
In this example, we want to select all views that have indirect parent matching ".window-title" ASS class and then select the hovered ".close" subselector within them.