MeshLib Documentation
Loading...
Searching...
No Matches
MR::UI::detail Namespace Reference

Concepts

concept  Scalar
 
concept  VectorOrScalar
 
concept  ValidBoundForTargetType
 
concept  ValidDragSpeedForTargetType
 

Functions

MRVIEWER_API bool genericSlider (const char *label, ImGuiDataType data_type, void *p_data, const void *p_min, const void *p_max, const char *format, ImGuiSliderFlags flags)
 
template<UnitEnum E, VectorOrScalar T, typename F >
bool unitWidget (const char *label, T &v, UnitToStringParams< E > &unitParams, F &&func)
 
template<UnitEnum E, VectorOrScalar T>
requires ( VectorTraits<T>::size == 1 )
float getDefaultDragSpeed ()
 
template<UnitEnum E, VectorOrScalar T, VectorOrScalar TargetType>
getDefaultStep (bool fast)
 

Function Documentation

◆ genericSlider()

MRVIEWER_API bool MR::UI::detail::genericSlider ( const char * label,
ImGuiDataType data_type,
void * p_data,
const void * p_min,
const void * p_max,
const char * format,
ImGuiSliderFlags flags )

◆ getDefaultDragSpeed()

template<UnitEnum E, VectorOrScalar T>
requires ( VectorTraits<T>::size == 1 )
float MR::UI::detail::getDefaultDragSpeed ( )
nodiscard

◆ getDefaultStep()

template<UnitEnum E, VectorOrScalar T, VectorOrScalar TargetType>
T MR::UI::detail::getDefaultStep ( bool fast)
nodiscard

◆ unitWidget()

template<UnitEnum E, VectorOrScalar T, typename F >
bool MR::UI::detail::unitWidget ( const char * label,
T & v,
UnitToStringParams< E > & unitParams,
F && func )
nodiscard