MeshLib
 
Loading...
Searching...
No Matches
MR::UI::TestEngine Namespace Reference

Namespaces

namespace  detail
 

Classes

struct  ButtonEntry
 
struct  Entry
 
struct  GroupEntry
 
struct  ValueEntry
 

Concepts

concept  AllowedValueType
 

Functions

MRVIEWER_API bool createButton (std::string_view name)
 
template<AllowedValueType T>
requires std::is_arithmetic_v<T>
std::optional< T > createValue (std::string_view name, T value, T min, T max)
 
MRVIEWER_API std::optional< std::string > createValue (std::string_view name, std::string value, std::optional< std::vector< std::string > > allowedValues=std::nullopt)
 
template<AllowedValueType T>
std::optional< T > createValueTentative (std::string_view name)
 
MRVIEWER_API void pushTree (std::string_view name)
 
MRVIEWER_API void popTree ()
 
MRVIEWER_API const GroupEntrygetRootEntry ()
 

Function Documentation

◆ createButton()

MRVIEWER_API bool MR::UI::TestEngine::createButton ( std::string_view name)
nodiscard

◆ createValue() [1/2]

MRVIEWER_API std::optional< std::string > MR::UI::TestEngine::createValue ( std::string_view name,
std::string value,
std::optional< std::vector< std::string > > allowedValues = std::nullopt )
nodiscard

◆ createValue() [2/2]

template<AllowedValueType T>
requires std::is_arithmetic_v<T>
std::optional< T > MR::UI::TestEngine::createValue ( std::string_view name,
T value,
T min,
T max )
nodiscard

◆ createValueTentative()

template<AllowedValueType T>
std::optional< T > MR::UI::TestEngine::createValueTentative ( std::string_view name)
nodiscard

◆ getRootEntry()

MRVIEWER_API const GroupEntry & MR::UI::TestEngine::getRootEntry ( )
nodiscard

◆ popTree()

MRVIEWER_API void MR::UI::TestEngine::popTree ( )

◆ pushTree()

MRVIEWER_API void MR::UI::TestEngine::pushTree ( std::string_view name)