morph 0.1.0
Asynchronous bridge between GUI thread and business models
Loading...
Searching...
No Matches
morph::ui::author::Case Class Reference

A case of a switch node, a scope of its own. More...

#include <author.hpp>

Public Member Functions

 Case (AnyHandle when, Nodes children)
 A case.
 Case (AnyHandle when, ScopeBuilder const &builder)
 A case that declares on its own scope.
Node part () const
 The case's JSON and the facts it names.

Detailed Description

A case of a switch node, a scope of its own.

Definition at line 3470 of file author.hpp.

Constructor & Destructor Documentation

◆ Case() [1/2]

morph::ui::author::Case::Case ( AnyHandle when,
Nodes children )
inline

A case.

Parameters
whenThe value the switch value is compared with.
childrenThe nodes shown when it matches.

Definition at line 3475 of file author.hpp.

◆ Case() [2/2]

morph::ui::author::Case::Case ( AnyHandle when,
ScopeBuilder const & builder )
inline

A case that declares on its own scope.

Parameters
whenThe value the switch value is compared with.
builderDeclares on the case's scope and returns its nodes.

Definition at line 3480 of file author.hpp.

Member Function Documentation

◆ part()

Node morph::ui::author::Case::part ( ) const
inlinenodiscard

The case's JSON and the facts it names.

Returns
The part.

Definition at line 3484 of file author.hpp.


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