CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
Annotation.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
11
14 struct Range {
16 double minimum;
17
19 double maximum;
20
22 double step = 1.0;
23
28 Range(const double minimum, const double maximum, const double step = 1.0) : minimum(minimum), maximum(maximum), step(step) {}
29 };
30
31} // namespace CeresEngine::Editor
Definition Annotation.hpp:10
An annotation that can be attached to a reflection field to define a range of valid values for the GU...
Definition Annotation.hpp:14
double minimum
The minimum value to be allowed by the GUI.
Definition Annotation.hpp:16
double maximum
The maximum value to be allowed by the GUI.
Definition Annotation.hpp:19
double step
The step to be used when changing the values.
Definition Annotation.hpp:22
Range(const double minimum, const double maximum, const double step=1.0)
Creates a new range annotation.
Definition Annotation.hpp:28