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
14
namespace
CeresEngine::Graphics::UI::Component
{
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
Common.hpp
CeresEngine::BasicString< char >
CeresEngine::Graphics::UI::Component
Definition
Checkbox.hpp:14
CeresEngine::Graphics::UI::Component::slider
bool slider(const String &label, T &value, const T min, const T max)
Definition
Slider.hpp:16
CeresEngine::Button::T
@ T
CeresEngine::Graphics::UI::Component::DataType
Definition
Common.hpp:19
Sources
CeresEngine
Graphics
OldUI
Component
Slider.hpp
Generated by
1.9.8