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 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)
-
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 internal::WidgetInfo
- #include <DocuExtras.hpp>
Protected Functions
-
DocuExtrasInfo(const DocuExtrasInfo&) = delete
-
DocuExtrasInfo &operator=(const DocuExtrasInfo&) = delete
-
inline virtual ~DocuExtrasInfo()
-
inline void Clear()
-
DocuExtrasInfo(const DocuExtrasInfo&) = delete
-
inline DocuExtras(const DocuExtras &in)