Empirical
Public Member Functions | Public Attributes | List of all members
emp::web::WidgetExtras Struct Reference

#include <WidgetExtras.h>

Inheritance diagram for emp::web::WidgetExtras:
emp::web::internal::TableGroupInfo

Public Member Functions

template<typename SET_TYPE >
void SetStyle (const std::string &s, SET_TYPE v)
 
bool HasStyle (const std::string &setting) const
 
const std::string & GetStyle (const std::string &setting)
 
void RemoveStyle (const std::string &setting)
 
template<typename SET_TYPE >
void SetAttr (const std::string &s, SET_TYPE v)
 
bool HasAttr (const std::string &setting) const
 
const std::string & GetAttr (const std::string &setting)
 
void RemoveAttr (const std::string &setting)
 
void Apply (const std::string &name)
 Apply all HTML details associated with this widget. More...
 
void Clear ()
 Clear all of style, attributes, and listeners. More...
 
 operator bool () const
 Have any details been set? More...
 

Public Attributes

Style style
 CSS Style. More...
 
Attributes attr
 HTML Attributes about a cell. More...
 
Listeners listen
 Listen for web events. More...
 

Member Function Documentation

void emp::web::WidgetExtras::Apply ( const std::string &  name)
inline

Apply all HTML details associated with this widget.

void emp::web::WidgetExtras::Clear ( )
inline

Clear all of style, attributes, and listeners.

const std::string& emp::web::WidgetExtras::GetAttr ( const std::string &  setting)
inline
const std::string& emp::web::WidgetExtras::GetStyle ( const std::string &  setting)
inline
bool emp::web::WidgetExtras::HasAttr ( const std::string &  setting) const
inline
bool emp::web::WidgetExtras::HasStyle ( const std::string &  setting) const
inline
emp::web::WidgetExtras::operator bool ( ) const
inline

Have any details been set?

void emp::web::WidgetExtras::RemoveAttr ( const std::string &  setting)
inline
void emp::web::WidgetExtras::RemoveStyle ( const std::string &  setting)
inline
template<typename SET_TYPE >
void emp::web::WidgetExtras::SetAttr ( const std::string &  s,
SET_TYPE  v 
)
inline
template<typename SET_TYPE >
void emp::web::WidgetExtras::SetStyle ( const std::string &  s,
SET_TYPE  v 
)
inline

Member Data Documentation

Attributes emp::web::WidgetExtras::attr

HTML Attributes about a cell.

Listeners emp::web::WidgetExtras::listen

Listen for web events.

Style emp::web::WidgetExtras::style

CSS Style.


The documentation for this struct was generated from the following file: