【发布时间】:2021-04-16 15:24:53
【问题描述】:
我有一些函数有很多参数,有时这些参数在本质上非常相似,例如,当将颜色传递给函数时,我有参数“RGB”,我想知道这是否可能,在 doxygen 中,将它们记录在一起。我现在为此做了一些相当广泛的事情:
/// @param x Initial cursor position at X axis.
/// @param y Initial cursor position at Y axis.
/// @param r Text amount of red color (default: 1.f)
/// @param g Text amount of green color (default: 1.f)
/// @param b Text amount of blue color (default: 1.f)
我想知道是否可以统一相同性质的参数,例如,有没有办法可以做类似的事情?:
/// @param x y : Initial cursor position.
/// @param r g b : Text color (default: white)
你会推荐什么?
【问题讨论】:
标签: doxygen