CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
CeresEngine::Editor::Range Struct Reference

An annotation that can be attached to a reflection field to define a range of valid values for the GUI. More...

#include <CeresEngine/Editor/Annotation.hpp>

Public Member Functions

 Range (const double minimum, const double maximum, const double step=1.0)
 Creates a new range annotation.
 

Public Attributes

double minimum
 The minimum value to be allowed by the GUI.
 
double maximum
 The maximum value to be allowed by the GUI.
 
double step = 1.0
 The step to be used when changing the values.
 

Detailed Description

An annotation that can be attached to a reflection field to define a range of valid values for the GUI.

Constructor & Destructor Documentation

◆ Range()

CeresEngine::Editor::Range::Range ( const double  minimum,
const double  maximum,
const double  step = 1.0 
)
inline

Creates a new range annotation.

Parameters
minimumThe minimum value to be allowed by the GUI.
maximumThe maximum value to be allowed by the GUI.
stepThe step to be used when changing the values.

Member Data Documentation

◆ maximum

double CeresEngine::Editor::Range::maximum

The maximum value to be allowed by the GUI.

◆ minimum

double CeresEngine::Editor::Range::minimum

The minimum value to be allowed by the GUI.

◆ step

double CeresEngine::Editor::Range::step = 1.0

The step to be used when changing the values.


The documentation for this struct was generated from the following file: