MeshLib C++ Docs
Loading...
Searching...
No Matches
MRUITestEngine.h File Reference
#include "MRMesh/MRExpected.h"
#include "MRViewer/exports.h"
#include <cstdint>
#include <limits>
#include <map>
#include <optional>
#include <string_view>
#include <string>
#include <variant>
#include <vector>

Go to the source code of this file.

Classes

struct  MR::UI::TestEngine::detail::BoundedValue< T >
struct  MR::UI::TestEngine::detail::UnderlyingValueTypeHelper< T, typename >
struct  MR::UI::TestEngine::ButtonEntry
struct  MR::UI::TestEngine::ValueEntry
 For sliders, drags, etc. More...
struct  MR::UI::TestEngine::ValueEntry::Value< T >
struct  MR::UI::TestEngine::ValueEntry::Value< T >
 GCC chokes on full specializations at class scope, hence this. More...
struct  MR::UI::TestEngine::GroupEntry
struct  MR::UI::TestEngine::Entry

Namespaces

namespace  MR
 only for bindings generation
namespace  MR::UI
namespace  MR::UI::TestEngine
namespace  MR::UI::TestEngine::detail

Concepts

concept  MR::UI::TestEngine::AllowedValueType

Typedefs

template<typename T>
using MR::UI::TestEngine::detail::UnderlyingValueType = typename UnderlyingValueTypeHelper<T>::type

Functions

template<typename T>
std::optional< T > MR::UI::TestEngine::detail::createValueLow (std::string_view name, std::optional< BoundedValue< T > > value, bool consumeValueOverride=true)
template std::optional< std::int64_t > MR::UI::TestEngine::detail::createValueLow (std::string_view name, std::optional< BoundedValue< std::int64_t > > value, bool consumeValueOverride)
template std::optional< std::uint64_t > MR::UI::TestEngine::detail::createValueLow (std::string_view name, std::optional< BoundedValue< std::uint64_t > > value, bool consumeValueOverride)
template std::optional< double > MR::UI::TestEngine::detail::createValueLow (std::string_view name, std::optional< BoundedValue< double > > value, bool consumeValueOverride)
template std::optional< std::string > MR::UI::TestEngine::detail::createValueLow (std::string_view name, std::optional< BoundedValue< std::string > > value, bool consumeValueOverride)
bool MR::UI::TestEngine::createButton (std::string_view name)
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, bool consumeValueOverride=true)
std::optional< std::string > MR::UI::TestEngine::createValue (std::string_view name, std::string value, bool consumeValueOverride=true, std::optional< std::vector< std::string > > allowedValues=std::nullopt)
 This overload is for strings.
template<AllowedValueType T>
std::optional< T > MR::UI::TestEngine::createValueTentative (std::string_view name, bool consumeValueOverride=true)
void MR::UI::TestEngine::pushTree (std::string_view name)
 Use those to group buttons into named groups.
void MR::UI::TestEngine::popTree ()
const GroupEntryMR::UI::TestEngine::getRootEntry ()
 Returns the current entry tree.