const NameValueOrderedList<TextAlign> textAlignList{ { "Start", TextAlign::Start }, { "Center", TextAlign::Center }, { "End", TextAlign::End } }; class Example : public Component { public: RC<Widget> build() final { // rcnew Widget{...} is equivalent to std::shared_ptr<Widget>(new Widget{...}) return rcnew Widget{ layout = Layout::Vertical, rcnew Text{ "Switch (widgets/Switch.hpp)", classes = { "s