Nui
Public Member Functions | List of all members
Nui::Elements::text Struct Reference

#include <text.hpp>

Inheritance diagram for Nui::Elements::text:
Inheritance graph
[legend]
Collaboration diagram for Nui::Elements::text:
Collaboration graph
[legend]

Public Member Functions

 text (text const &)=default
 
 text (text &&)=default
 
 text (std::string_view content)
 
 text (Nui::Observed< std::string > &obs)
 
- Public Member Functions inherited from Nui::HtmlElement
 HtmlElement (HtmlElement const &)=default
 
 HtmlElement (HtmlElement &&)=default
 
virtual ~HtmlElement ()=default
 
 HtmlElement (char const *name, HtmlElementBridge const *bridge, std::vector< Attribute > const &attributes)
 
 HtmlElement (char const *name, HtmlElementBridge const *bridge, std::vector< Attribute > &&attributes)
 
template<typename... T>
 HtmlElement (char const *name, HtmlElementBridge const *bridge, T &&... attributes)
 
HtmlElement clone () const
 
template<typename... ElementT>
requires requires (ElementT &&... elements)
 
auto operator() (ElementT &&... elements) &&
 
auto operator() () &&
 
template<typename T >
requires std::same_as< std::decay_t< T >, std::string > auto operator() (T &&text) &&
 
auto operator() (std::string_view view) &&
 
auto operator() (char const *text) &&
 
template<typename T >
requires Fundamental< T > auto operator() (T fundamental) &&
 
template<typename GeneratorT >
requires InvocableReturns< GeneratorT, std::string > auto operator() (GeneratorT &&textGenerator) &&
 
template<std::invocable GeneratorT>
 requires (!InvocableReturns< GeneratorT, std::string >) auto operator()(GeneratorT &&elementRenderer) &&
 
template<typename T , std::invocable< T &, Renderer const & > GeneratorT>
requires InvocableReturns< GeneratorT, std::string > auto operator() (GeneratorT &&elementRenderer) &&
 
template<typename... ObservedValues, std::invocable GeneratorT>
auto operator() (ObservedValueCombinatorWithGenerator< GeneratorT, ObservedValues... > combinator) &&
 
template<typename... ObservedValues, std::invocable GeneratorT>
auto operator() (ObservedValueCombinator< ObservedValues... > observedValues, GeneratorT &&elementRenderer) &&
 
template<typename ObservedValue , typename GeneratorT >
auto operator() (ObservedRange< ObservedValue > observedRange, GeneratorT &&elementRenderer) &&
 
template<typename ObservedValue , typename GeneratorT >
auto operator() (std::pair< ObservedRange< ObservedValue >, GeneratorT > &&mapPair) &&
 
template<typename IteratorT , typename GeneratorT , typename... ObservedT>
auto operator() (UnoptimizedRange< IteratorT, ObservedT... > &&unoptimizedRange, GeneratorT &&elementRenderer) &&
 
auto operator() (Observed< std::string > const &observedString) &&
 
template<typename T >
requires Fundamental< T > auto operator() (Observed< T > const &observedNumber) &&
 
std::vector< Attribute > const & attributes () const
 
char const * name () const
 
HtmlElementBridge const * bridge () const
 

Constructor & Destructor Documentation

◆ text() [1/4]

Nui::Elements::text::text ( text const &  )
default

◆ text() [2/4]

Nui::Elements::text::text ( text &&  )
default

◆ text() [3/4]

Nui::Elements::text::text ( std::string_view  content)
inline

◆ text() [4/4]

Nui::Elements::text::text ( Nui::Observed< std::string > &  obs)
inline

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