Improve documentation theme.

This commit is contained in:
ArthurSonzogni
2025-05-20 14:35:17 +02:00
parent 08b8a3b28f
commit 22576bae6b
29 changed files with 2338 additions and 1885 deletions

View File

@@ -242,11 +242,11 @@ class Flexbox : public Node {
/// text("element 2"),
/// text("element 3"),
/// }, FlexboxConfig()
// .Set(FlexboxConfig::Direction::Column)
// .Set(FlexboxConfig::Wrap::WrapInversed)
// .SetGapMainAxis(1)
// .SetGapCrossAxis(1)
// )
/// .Set(FlexboxConfig::Direction::Column)
/// .Set(FlexboxConfig::Wrap::WrapInversed)
/// .SetGapMainAxis(1)
/// .SetGapCrossAxis(1)
/// )
/// ```
Element flexbox(Elements children, FlexboxConfig config) {
return std::make_shared<Flexbox>(std::move(children), config);

View File

@@ -164,7 +164,7 @@ class Gauge : public Node {
/// @brief Draw a high definition progress bar progressing in specified
/// direction.
/// @param progress The proportion of the area to be filled. Belong to [0,1].
// @param direction Direction of progress bars progression.
/// @param direction Direction of progress bars progression.
/// @ingroup dom
Element gaugeDirection(float progress, Direction direction) {
return std::make_shared<Gauge>(progress, direction);