Union Namespace
Header: | #include <Union> |
CMake: | find_package(Union REQUIRED) target_link_libraries(mytarget PRIVATE Union::Union) |
Namespaces
namespace | Properties |
Classes
class | Element |
class | ElementQuery |
class | InputPlugin |
class | Selector |
class | SelectorList |
class | StyleRule |
class | Theme |
class | ThemeLoader |
class | ThemeRegistry |
Types
ElementList | |
enum class | SelectorType { Empty, Type, Id, State, ColorSet, …, AllOf } |
Detailed Description
All public C++ types for the Union library.
Namespaces
namespace Union::Properties
Flags and enums used by property classes.
Classes
class Element
An element in a tree of elements that is used to match StyleRules. More...
class ElementQuery
A class encapsulating lookup of style properties based on a list of elements. More...
class InputPlugin
Abstract base class for plugins providing input data. More...
class Selector
A class to handle matching some data to an element. More...
class SelectorList
A list of Union::Selector. More...
class StyleRule
A set of style properties that should be applied to a certain set of elements. More...
class Theme
A collection of StyleRule instances. More...
class ThemeLoader
An interface that is used by Theme to allow input plugins to load style rules. More...
class ThemeRegistry
A class to load and keep track of Theme instances. More...
Type Documentation
[alias]
ElementList
A list of elements.
enum class SelectorType
The type of selector.
Constant | Value | Description |
---|---|---|
Union::Selector::SelectorType::Empty | 0 | An empty selector, which does nothing. |
Union::Selector::SelectorType::Type | 1 | A selector matching on the type property. Checks if the specified string is equal to that of the property. |
Union::Selector::SelectorType::Id | 2 | A selector matching on the id property. Checks if the specified string is equal to that of the property. |
Union::Selector::SelectorType::State | 3 | A selector matching on the state property. Checks if the specified state is set in the property. |
Union::Selector::SelectorType::ColorSet | 4 | |
Union::Selector::SelectorType::Hint | 5 | |
Union::Selector::SelectorType::Attribute | 6 | A selector matching on an attribute in the attributes property. Checks if the value of the attribute matches the specified value. |
Union::Selector::SelectorType::AnyOf | 7 | A selector that will match if any of the specified selectors match. |
Union::Selector::SelectorType::AllOf | 8 | A selector that will match only if all of the specified selectors match. |