Phosphor
Qt6 / Wayland library suite for window-management tools
 
Loading...
Searching...
No Matches
PhosphorTiles::detail Namespace Reference

Functions

template<typename T >
bool jsValueHasType (const QJSValue &v)
 Type-checker for QJSValue results — selects isBool() for bool, isNumber() for numeric types.
 
template<typename T >
jsValueTo (const QJSValue &v)
 Type-converter for QJSValue results — selects toBool() for bool, toInt() for int, toNumber() for qreal.
 

Function Documentation

◆ jsValueHasType()

template<typename T >
bool PhosphorTiles::detail::jsValueHasType ( const QJSValue &  v)

Type-checker for QJSValue results — selects isBool() for bool, isNumber() for numeric types.

◆ jsValueTo()

template<typename T >
T PhosphorTiles::detail::jsValueTo ( const QJSValue &  v)

Type-converter for QJSValue results — selects toBool() for bool, toInt() for int, toNumber() for qreal.