Class evab::Percent¶
template <typename TElement, unsigned char kStep>
Percent modifier for discrete inputs.More...
#include <evabPercent.h>
Inherits the following classes: TElement
Public Functions¶
| Type | Name |
|---|---|
| unsigned char | GetPercent () const Gets current value as percent (0-100). |
| unsigned char | GetStep () const Gets the step size in percent. |
| Percent (Args &&... args) |
|
| void | SetPercent (unsigned char aPercent) Sets value by percent (0-100). |
Detailed Description¶
Adds percent-based control (0-100) to any discrete input.
Template parameters:
TElementBase element type (must have Select, Selected, Count methods)kStepStep size in percent (default: 100 / Count)
Public Functions Documentation¶
function GetPercent¶
Gets current value as percent (0-100).
inline unsigned char evab::Percent::GetPercent () const
function GetStep¶
Gets the step size in percent.
inline unsigned char evab::Percent::GetStep () const
function Percent¶
template<typename... Args>
inline evab::Percent::Percent (
Args &&... args
)
function SetPercent¶
Sets value by percent (0-100).
inline void evab::Percent::SetPercent (
unsigned char aPercent
)
The documentation for this class was generated from the following file src/evabPercent.h