Lumiera 0.pre.04
»edit your freedom«
Loading...
Searching...
No Matches
LocatorSpec< depth > Class Template Reference

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

Description

template<size_t depth>
class stage::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
Remarks
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 134 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
 
 operator string () const
 

Private Attributes

LocationRule rules_
 

Constructor & Destructor Documentation

◆ LocatorSpec() [1/2]

template<size_t depth>
LocatorSpec ( LocationRule &&  ruleToDetermineLocation)
inline

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

References LocatorSpec< depth >::rules_.

◆ LocatorSpec() [2/2]

template<size_t depth>
LocatorSpec ( UICoord::Builder &&  simpleLocationSpec)
inline

shortcut to allow initialisation from UI-Coordinate builder expression

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

Member Function Documentation

◆ operator string()

template<size_t depth>
operator string ( ) const
inline

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

References LocatorSpec< depth >::rules_.

Member Data Documentation

◆ rules_

template<size_t depth>
LocationRule rules_
private
+ Inheritance diagram for LocatorSpec< depth >:
+ Collaboration diagram for LocatorSpec< depth >:

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