A toolkit for working with phylogenetic data.
v0.18.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
style.cpp File Reference
#include "genesis/utils/text/style.hpp"
#include "genesis/utils/text/string.hpp"
#include <algorithm>
#include <assert.h>
#include <ostream>
#include <stdexcept>
#include <vector>

Go to the source code of this file.

Namespaces

 genesis
 Container namespace for all symbols of genesis in order to keep them separate when used as a library.
 
 genesis::utils
 

Functions

std::string get_attribute_string (Style const &s)
 Internal helper function that returns the attribute string of a Style based on its properties. More...
 
static std::array< std::pair
< std::string, std::string >
, 17 >::const_iterator 
get_background_color_iterator (std::string name)
 Internal helper function that returns an iterator into the background color list. More...
 
static std::array< std::pair
< std::string, std::string >
, 17 >::const_iterator 
get_foreground_color_iterator (std::string name)
 Internal helper function that returns an iterator into the foreground color list. More...
 
std::ostream & operator<< (std::ostream &out, Style const &style)
 Print the properties of a Style object to a stream. More...