WidgetExtras.hpp

A collection of extra details about HTML Widgets (attributes, style, listerns)

struct WidgetExtras
#include <WidgetExtras.hpp>

Public Functions

template<typename SET_TYPE>
inline void SetStyle(const std::string &s, SET_TYPE v)
inline bool HasStyle(const std::string &setting) const
inline const std::string &GetStyle(const std::string &setting) const
inline void RemoveStyle(const std::string &setting)
template<typename SET_TYPE>
inline void SetAttr(const std::string &s, SET_TYPE v)
inline bool HasAttr(const std::string &setting) const
inline const std::string &GetAttr(const std::string &setting) const
inline void RemoveAttr(const std::string &setting)
inline void Apply(const std::string &name)

Apply all HTML details associated with this widget.

inline void Clear()

Clear all of style, attributes, and listeners.

inline operator bool() const

Have any details been set?

Public Members

Style style

CSS Style.

Attributes attr

HTML Attributes about a cell.

Listeners listen

Listen for web events.