Added isConstant to AbsoluteOrRelativeValue

0.8
Bruno Van de Velde 2017-09-01 14:06:25 +02:00
parent 129e2b7b86
commit f9af46bba4
1 changed files with 11 additions and 0 deletions

View File

@ -116,6 +116,17 @@ namespace tgui
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// @brief Returns whether the value is constant or a ratio
///
/// @return Does the value contain a constant?
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
TGUI_CONSTEXPR bool isConstant() const
{
return m_constant;
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// @internal
/// @brief Update the size to which the value depends on if the value is relative