Lumiera  0.pre.03
LocatorSpec< depth > Class Template Reference

#include "gui/interact/view-spec-dsl.hpp"


template<size_t depth>
class gui::interact::LocatorSpec< depth >

A specification to describe the desired location of a component view within the Lumiera UI.

LocatorSpec is basically a set of UI coordinates, with the additional possibility of specifying several alternatives, with the intention to pick the first applicable one.

Template Parameters
depththe level in the tree addressed by this locator
Locator is built from a DSL expression, which is basically a UICoord::Builder. This coordinate spec describes a sequence of several places where to locate the UI-Element in question. The template parameter clarifies if we're talking about windows here, or panels or views. The latter is the default case.

Definition at line 143 of file view-spec-dsl.hpp.

Public Member Functions

 LocatorSpec (LocationRule &&ruleToDetermineLocation)
 LocatorSpec (UICoord::Builder &&simpleLocationSpec)
 shortcut to allow initialisation from UI-Coordinate builder expression More...
 operator string () const

Private Attributes

LocationRule rules_

Constructor & Destructor Documentation

◆ LocatorSpec() [1/2]

LocatorSpec ( LocationRule &&  ruleToDetermineLocation)

Definition at line 149 of file view-spec-dsl.hpp.

◆ LocatorSpec() [2/2]

LocatorSpec ( UICoord::Builder &&  simpleLocationSpec)

shortcut to allow initialisation from UI-Coordinate builder expression

Definition at line 159 of file view-spec-dsl.hpp.

Member Function Documentation

◆ operator string()

operator string ( ) const

Definition at line 166 of file view-spec-dsl.hpp.

Member Data Documentation

◆ rules_

LocationRule rules_

Definition at line 146 of file view-spec-dsl.hpp.

+ Inheritance diagram for LocatorSpec< depth >:
+ Collaboration diagram for LocatorSpec< depth >:

The documentation for this class was generated from the following file: