Webdar 1.0.0
Web user interface to libdar
Functions | Variables
webdar_css_style Namespace Reference

the webdar_css_style namespace defines a set of global css objets and some routines to use them More...

Functions

void update_library (css_library &ref)
 update a css_library with all css definitions of this webdar_css_style module
 
const css_classget_css_class (const std::string &name)
 obtain the css_class object corresponding to the given name More...
 
template<class T >
void normal_button (T &obj, bool fullwidth=false)
 apply to the given button the css_classe names defined by update_library to get a normal button style
 
template<class T >
void small_button (T &obj)
 
template<class T >
void active_button (T &obj, bool fullwidth=false)
 apply to the given button the css_classe names defined by update_library to get an active button style
 
template<class T >
void void_button (T &obj, bool fullwidth=false)
 apply to the given button the css_classe names defined by update_library to get an void/invisible button style
 
template<class T >
void grey_button (T &obj, bool fullwidth=false)
 

Variables

constexpr const char * text_grey = "wcs_tg"
 
constexpr const char * text_bold = "wcs_tb"
 
constexpr const char * text_shadow_dark = "wcs_tsd"
 
constexpr const char * text_shadow_bright = "wcs_tsb"
 
constexpr const char * text_color_normal = "wcs_cn"
 
constexpr const char * text_color_red = "wcs_cr"
 
constexpr const char * text_color_green = "wcs_cg"
 
constexpr const char * text_top_right = "wcs_ttr"
 
constexpr const char * text_top_center = "wcs_tc"
 
constexpr const char * text_right = "wcs_tr"
 
constexpr const char * float_left = "wcs_fll"
 
constexpr const char * float_right = "wcs_flr"
 
constexpr const char * float_flush = "wcs_flf"
 
constexpr const char * spacing_vertical = "wcs_spcv"
 
constexpr const char * spacing_horizontal = "wcs_spch"
 
constexpr const char * width_100vw = "wcs_w100"
 
constexpr const char * width_100vw_3em = "wcs_w100_3em"
 
constexpr const char * width_100vw_8em = "wcs_w100_8em"
 
constexpr const char * width_100vw_5em = "wcs_w100_5em"
 
constexpr const char * width_80vw = "wcs_w80"
 
constexpr const char * width_60vw = "wcs_w60"
 
constexpr const char * red_border = "wcs_red_border"
 
constexpr const char * indent = "wcs_indent"
 
constexpr const char * width_8em = "wcs_w8em"
 
constexpr const char * width_full = "fullwidth"
 
constexpr const char * btn_off = "wcs_btn_off"
 
constexpr const char * btn_small = "wcs_btn_small"
 
constexpr const char * btn_on = "wcs_btn_on"
 
constexpr const char * btn_void = "wcs_btn_void"
 
constexpr const char * btn_grey = "wcs_btn_grey"
 
constexpr const char * url_selected = "wcs_url_selected"
 
constexpr const char * url_normal = "wcs_url_normal"
 
constexpr const char * url_void = "wcs_url_void"
 
constexpr const char * url_grey = "wcs_url_grey"
 

Detailed Description

the webdar_css_style namespace defines a set of global css objets and some routines to use them

Function Documentation

◆ get_css_class()

const css_class & webdar_css_style::get_css_class ( const std::string &  name)

obtain the css_class object corresponding to the given name

Parameters
[in]namemust correspond to an existing class name defined above (text_grey, text_bold,...)
Exceptions
exceptionthrow if the povided name does not exist