MeshLib C++ Docs
Loading...
Searching...
No Matches
MR::UI::detail Namespace Reference

Concepts

concept  Scalar
 Whether T is a scalar type that we can use with our widgets.
concept  VectorOrScalar
 Whether T is a scalar or vector that we can use with our widgets.
concept  ValidBoundForTargetType
concept  ValidDragSpeedForTargetType

Functions

void setScale (float newScale)
 Strictly for internal use. Updates the value that scale() returns.
bool genericSlider (const char *label, ImGuiDataType data_type, void *p_data, const void *p_min, const void *p_max, const char *format, ImGuiSliderFlags flags)
 A type-erased slider.
template<UnitEnum E, VectorOrScalar T, typename F>
bool unitWidget (const char *label, T &v, UnitToStringParams< E > &unitParams, F &&func)