Nui
Functions
Nui::Materializers Namespace Reference

Functions

auto appendMaterialize (auto &parent, auto const &htmlElement)
 Creates new actual element and makes it a child of the given parent. More...
 
auto fragmentMaterialize (auto &parent, auto const &htmlElement)
 Similar to appendMaterialize, but the new element is not added to the children list. More...
 
auto insertMaterialize (std::size_t where, auto &parent, auto const &htmlElement)
 Inserts new element at the given position of the given parent. More...
 
auto replaceMaterialize (auto &element, auto const &htmlElement)
 Replaces the given element with the new one. More...
 
auto emplaceMaterialize (auto &element, auto const &htmlElement)
 Replaces the given element with the new one. More...
 
auto inplaceMaterialize (auto &element, auto const &)
 Used for elements that dont have a direct parent. More...
 

Function Documentation

◆ appendMaterialize()

auto Nui::Materializers::appendMaterialize ( auto &  parent,
auto const &  htmlElement 
)
inline

Creates new actual element and makes it a child of the given parent.

◆ emplaceMaterialize()

auto Nui::Materializers::emplaceMaterialize ( auto &  element,
auto const &  htmlElement 
)
inline

Replaces the given element with the new one.

◆ fragmentMaterialize()

auto Nui::Materializers::fragmentMaterialize ( auto &  parent,
auto const &  htmlElement 
)
inline

Similar to appendMaterialize, but the new element is not added to the children list.

Works together with inplaceMaterialize.

◆ inplaceMaterialize()

auto Nui::Materializers::inplaceMaterialize ( auto &  element,
auto const &   
)
inline

Used for elements that dont have a direct parent.

◆ insertMaterialize()

auto Nui::Materializers::insertMaterialize ( std::size_t  where,
auto &  parent,
auto const &  htmlElement 
)
inline

Inserts new element at the given position of the given parent.

◆ replaceMaterialize()

auto Nui::Materializers::replaceMaterialize ( auto &  element,
auto const &  htmlElement 
)
inline

Replaces the given element with the new one.