CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
Slider.hpp
Go to the documentation of this file.
1//
2// CeresEngine - A game development framework
3//
4// Created by Rogiel Sulzbach.
5// Copyright (c) 2018-2022 Rogiel Sulzbach. All rights reserved.
6//
7
8#pragma once
9
10#include "Common.hpp"
11
12#include <string_view>
13
15
16 template<typename T> inline bool slider(const String& label, T& value, const T min, const T max) {
17 return ImGui::SliderScalar(label.c_str(), DataType<T>::type, &value, &min, &max);
18 }
19
20} // namespace CeresEngine::Graphics::UI::Component
Definition Checkbox.hpp:14
bool slider(const String &label, T &value, const T min, const T max)
Definition Slider.hpp:16