Nui
Classes | Public Member Functions | List of all members
Nui::Attribute Class Reference

#include <attribute.hpp>

Classes

struct  RegularAttribute
 
struct  StringDataAttribute
 

Public Member Functions

 Attribute ()=default
 
 Attribute (std::function< void(Dom::ChildlessElement &)> setter, std::function< EventContext::EventIdType(std::weak_ptr< Dom::ChildlessElement > &&element)> createEvent={}, std::function< void(EventContext::EventIdType const &)> clearEvent={})
 
 Attribute (std::string data, std::function< EventContext::EventIdType(std::weak_ptr< Dom::ChildlessElement > &&element)> createEvent, std::function< void(EventContext::EventIdType const &)> clearEvent)
 
 Attribute (std::string_view data, std::function< EventContext::EventIdType(std::weak_ptr< Dom::ChildlessElement > &&element)> createEvent, std::function< void(EventContext::EventIdType const &)> clearEvent)
 
 Attribute (Attribute const &)=default
 
 Attribute (Attribute &&)=default
 
Attributeoperator= (Attribute const &)=default
 
Attributeoperator= (Attribute &&)=default
 
void setOn (Dom::ChildlessElement &element) const
 
EventContext::EventIdType createEvent (std::weak_ptr< Dom::ChildlessElement > &&element) const
 
std::function< void(EventContext::EventIdType const &)> getEventClear () const
 
std::string const & stringData () const
 
bool isRegular () const
 
bool isStringData () const
 
bool defer () const
 
void defer (bool doDefer) &
 
Attribute && defer (bool doDefer) &&
 

Constructor & Destructor Documentation

◆ Attribute() [1/6]

Nui::Attribute::Attribute ( )
default

◆ Attribute() [2/6]

Nui::Attribute::Attribute ( std::function< void(Dom::ChildlessElement &)>  setter,
std::function< EventContext::EventIdType(std::weak_ptr< Dom::ChildlessElement > &&element)>  createEvent = {},
std::function< void(EventContext::EventIdType const &)>  clearEvent = {} 
)
inline

◆ Attribute() [3/6]

Nui::Attribute::Attribute ( std::string  data,
std::function< EventContext::EventIdType(std::weak_ptr< Dom::ChildlessElement > &&element)>  createEvent,
std::function< void(EventContext::EventIdType const &)>  clearEvent 
)
inline

◆ Attribute() [4/6]

Nui::Attribute::Attribute ( std::string_view  data,
std::function< EventContext::EventIdType(std::weak_ptr< Dom::ChildlessElement > &&element)>  createEvent,
std::function< void(EventContext::EventIdType const &)>  clearEvent 
)
inline

◆ Attribute() [5/6]

Nui::Attribute::Attribute ( Attribute const &  )
default

◆ Attribute() [6/6]

Nui::Attribute::Attribute ( Attribute &&  )
default

Member Function Documentation

◆ createEvent()

EventContext::EventIdType Nui::Attribute::createEvent ( std::weak_ptr< Dom::ChildlessElement > &&  element) const

◆ defer() [1/3]

bool Nui::Attribute::defer ( ) const

◆ defer() [2/3]

void Nui::Attribute::defer ( bool  doDefer) &

◆ defer() [3/3]

Attribute&& Nui::Attribute::defer ( bool  doDefer) &&
inline

◆ getEventClear()

std::function< void(EventContext::EventIdType const &)> Nui::Attribute::getEventClear ( ) const

◆ isRegular()

bool Nui::Attribute::isRegular ( ) const

◆ isStringData()

bool Nui::Attribute::isStringData ( ) const

◆ operator=() [1/2]

Attribute& Nui::Attribute::operator= ( Attribute &&  )
default

◆ operator=() [2/2]

Attribute& Nui::Attribute::operator= ( Attribute const &  )
default

◆ setOn()

void Nui::Attribute::setOn ( Dom::ChildlessElement element) const

◆ stringData()

std::string const & Nui::Attribute::stringData ( ) const

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