bWidgets
Core widget toolkit designed for Blender
bWidgets::bwRange< T > Class Template Reference

#include <bwRange.h>

Public Member Functions

 bwRange (T _min, T _max)
 
void clampValue (T &value)
 
bool isInside (const T &value, const bool including_min_max=false) const
 

Static Public Member Functions

static void clampValue (T &value, const T &min, const T &max)
 
static bool isInside (const T &value, const T &min, const T &max, const bool including_min_max=false)
 

Public Attributes

min
 
max
 

Constructor & Destructor Documentation

◆ bwRange()

template<typename T >
bWidgets::bwRange< T >::bwRange ( _min,
_max 
)
inline

Member Function Documentation

◆ clampValue() [1/2]

template<typename T >
void bWidgets::bwRange< T >::clampValue ( T &  value)
inline

◆ clampValue() [2/2]

template<typename T >
static void bWidgets::bwRange< T >::clampValue ( T &  value,
const T &  min,
const T &  max 
)
inlinestatic

◆ isInside() [1/2]

template<typename T >
bool bWidgets::bwRange< T >::isInside ( const T &  value,
const bool  including_min_max = false 
) const
inline

◆ isInside() [2/2]

template<typename T >
static bool bWidgets::bwRange< T >::isInside ( const T &  value,
const T &  min,
const T &  max,
const bool  including_min_max = false 
)
inlinestatic

Member Data Documentation

◆ max

template<typename T >
T bWidgets::bwRange< T >::max

◆ min

template<typename T >
T bWidgets::bwRange< T >::min

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