18 template<
typename T>
inline bool drag(
const String& label,
T& value,
const float velocity,
T min,
T max) {
19 return ImGui::DragScalar(label.c_str(),
DataType<T>::type, &value, velocity, &min, &max);
22 template<
typename T>
inline bool drag(
const String& label,
T& value,
const double velocity,
T min,
T max) {
23 return ImGui::DragScalar(label.c_str(),
DataType<T>::type, &value, (
float)velocity, &min, &max);
26 template<
typename T>
inline bool drag(
const String& label,
T& value,
const float velocity,
T min) {
27 return ImGui::DragScalar(label.c_str(),
DataType<T>::type, &value, velocity, &min);
30 template<
typename T>
inline bool drag(
const String& label,
T& value,
const double velocity,
T min) {
31 return ImGui::DragScalar(label.c_str(),
DataType<T>::type, &value, (
float)velocity, &min);
34 template<
typename T>
inline bool drag(
const String& label,
T& value,
const float velocity) {
38 template<
typename T>
inline bool drag(
const String& label,
T& value,
const double velocity) {
39 return ImGui::DragScalar(label.c_str(),
DataType<T>::type, &value, (
float)velocity);
43 return ImGui::DragScalarN(label.c_str(),
DataType<T>::type, &value,
D, velocity, &min, &max);
47 return ImGui::DragScalarN(label.c_str(),
DataType<T>::type, &value,
D, (
float)velocity, &min, &max);
55 return ImGui::DragScalarN(label.c_str(),
DataType<T>::type, &value,
D, (
float)velocity);
60 for(
int r = 0; r <
R; r++) {
static decltype(auto) from(U value, Args &&... args)
Converts a value into it's string representation.
Definition String.hpp:386
Definition Checkbox.hpp:14
bool drag(const String &label, T &value, const float velocity, T min, T max)
Definition Drag.hpp:18
struct CeresEngine::GLState state
constexpr size_t hash(const T &v)
Generates a hash for the provided type.
Definition Hash.hpp:25