Class DisplayConfiguration::Node¶
Defined in File display_configuration.h
Nested Relationships¶
This class is a nested type of Class DisplayConfiguration.
Class Documentation¶
-
class Node
A class providing access to an arbitrary piece of data from the [DisplayConfiguration]. This is specifically useful when a user wants to extend the based display configuration with some sort of custom payload (e.g. a user may want to extend the layout configuration with information describing the position and size of specific applications).
Remark
Since MirAL 5.3
Public Types
-
enum class Type
Values:
-
enumerator integer
-
enumerator string
-
enumerator sequence
-
enumerator map
-
enumerator unknown
-
enumerator integer
Public Functions
-
auto type() const -> Type
-
auto as_string() const -> std::string
-
auto as_int() const -> int
-
void for_each(std::function<void(Node const&)> const &f) const
-
auto has(std::string const &key) const -> bool
-
auto at(std::string const &key) const -> std::optional<Node>
-
Node(Node&&) noexcept = default
-
Node(Node const&) = delete
-
~Node()
-
enum class Type