CYD-UI
A C++ library for building native graphic user interfaces
Loading...
Searching...
No Matches
cydui::components::component_builder_t Struct Referenceexport

Public Member Functions

 component_builder_t ()=default
 
template<ComponentConcept C>
 component_builder_t (C comp)
 
std::vector< std::shared_ptr< component_base_t > > get_components () const
 
const auto & get_component_constructors () const
 
void append_component (const std::function< std::shared_ptr< component_base_t >()> &component)
 
void transform (auto &&fun)
 
bool empty () const
 
std::size_t size () const
 

Detailed Description

Definition at line 11 of file component_holder.cppm.

Constructor & Destructor Documentation

◆ component_builder_t() [1/2]

cydui::components::component_builder_t::component_builder_t ( )
exportdefault

◆ component_builder_t() [2/2]

template<ComponentConcept C>
cydui::components::component_builder_t::component_builder_t ( C comp)
inlineexport

Definition at line 16 of file component_holder.cppm.

Member Function Documentation

◆ append_component()

void cydui::components::component_builder_t::append_component ( const std::function< std::shared_ptr< component_base_t >()> & component)
inlineexport

Definition at line 34 of file component_holder.cppm.

◆ empty()

bool cydui::components::component_builder_t::empty ( ) const
inlineexport

Definition at line 47 of file component_holder.cppm.

◆ get_component_constructors()

const auto & cydui::components::component_builder_t::get_component_constructors ( ) const
inlineexport

Definition at line 30 of file component_holder.cppm.

◆ get_components()

std::vector< std::shared_ptr< component_base_t > > cydui::components::component_builder_t::get_components ( ) const
inlineexport

Definition at line 22 of file component_holder.cppm.

+ Here is the caller graph for this function:

◆ size()

std::size_t cydui::components::component_builder_t::size ( ) const
inlineexport

Definition at line 51 of file component_holder.cppm.

◆ transform()

void cydui::components::component_builder_t::transform ( auto && fun)
inlineexport

Definition at line 38 of file component_holder.cppm.


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