DocuExtras.hpp

Control the styling and attributes of an existing div without nuking the content inside it.

class DocuExtras : private Widget
#include <DocuExtras.hpp>

A widget to track a div in an HTML file, and all of its contents.

Public Functions

inline DocuExtras(const std::string &in_name)
inline DocuExtras(const DocuExtras &in)
inline ~DocuExtras()
template<typename SET_TYPE>
inline DocuExtras &SetCSS(const std::string &s, SET_TYPE v)
inline virtual bool HasCSS(const std::string &setting)

Determine is a CSS trait has been set on this Widget.

inline virtual const std::string &GetCSS(const std::string &setting) const

Retrieve a specific CSS trait associated with this Widget. Note: CSS-related options may be overridden in derived classes that have multiple styles.

inline DocuExtras &RemoveCSS(const std::string &setting)
template<typename SET_TYPE>
inline void SetAttr(const std::string &s, SET_TYPE v)
inline virtual bool HasAttr(const std::string &setting)

Determine is an attribute has been set on this Widget.

inline virtual const std::string &GetAttr(const std::string &setting) const

Retrieve a specific attribute associated with this Widget.

inline DocuExtras &RemoveAttr(const std::string &setting)
inline DocuExtras &Clear()

Clear all of style, attributes, and listeners.

inline operator bool() const

Have any details been set?

Protected Functions

inline DocuExtrasInfo *Info()
inline const DocuExtrasInfo *Info() const
inline void Apply()

Apply all HTML details associated with this widget.

class DocuExtrasInfo : public WidgetInfo
#include <DocuExtras.hpp>

Public Functions

inline virtual std::string GetType() override

Protected Functions

inline DocuExtrasInfo(const std::string &in_id)
DocuExtrasInfo(const DocuExtrasInfo&) = delete
DocuExtrasInfo &operator=(const DocuExtrasInfo&) = delete
inline virtual ~DocuExtrasInfo()
inline virtual void GetHTML(std::stringstream &HTML) override
inline std::string GetTypeName() const override
inline void Clear()