TGUI  0.8.9
tgui::RelativeValue Struct Reference

Helper class to create an AbsoluteOrRelativeValue object containing a relative value without using a string. More...

#include <TGUI/AbsoluteOrRelativeValue.hpp>

Inheritance diagram for tgui::RelativeValue:
tgui::AbsoluteOrRelativeValue

Additional Inherited Members

- Public Member Functions inherited from tgui::AbsoluteOrRelativeValue
TGUI_CONSTEXPR AbsoluteOrRelativeValue ()
 Default constructor.
 
template<typename T , typename = typename std::enable_if<std::is_arithmetic<T>::value, T>::type>
TGUI_CONSTEXPR AbsoluteOrRelativeValue (T constant)
 Constructor to set constant. More...
 
 AbsoluteOrRelativeValue (const char *expression)
 Construct the value from a string that either contains a value or a percentage. More...
 
 AbsoluteOrRelativeValue (const std::string &expression)
 Construct the value from a string that either contains a value or a percentage. More...
 
TGUI_CONSTEXPR float getValue () const
 Returns the value. More...
 
TGUI_CONSTEXPR float getRatio () const
 Returns the stored ratio. More...
 
TGUI_CONSTEXPR bool isConstant () const
 Returns whether the value is constant or a ratio. More...
 

Detailed Description

Helper class to create an AbsoluteOrRelativeValue object containing a relative value without using a string.


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