AUI Framework
develop
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. | |
Selects views that are of the specified classes.
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 |
Runtime-type selector.
This type type-erases the selectors and allows to encapsulate.
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::type_of
.
For example:
This will select all AButton
s.
AndSelector< L, R > ass::operator&& | ( | L | l, |
R | r ) |
Makes a selector that applies two selectors.
In this example, we want to select all views that match both ".btn" and ".accent".
DirectParentSubSelector< L, R > ass::operator> | ( | L | l, |
R | r ) |
Makes direct parent subselector.
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 ) |
Makes indirect parent subselector.
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.