ampsci
c++ program for high-precision atomic structure calculations of single-valence systems
Public Member Functions | Friends | List of all members
text_style

#include <color.h>

Public Member Functions

FMT_CONSTEXPR text_style (emphasis em=emphasis()) noexcept
 
FMT_CONSTEXPR text_styleoperator|= (const text_style &rhs)
 
FMT_CONSTEXPR bool has_foreground () const noexcept
 
FMT_CONSTEXPR bool has_background () const noexcept
 
FMT_CONSTEXPR bool has_emphasis () const noexcept
 
FMT_CONSTEXPR detail::color_type get_foreground () const noexcept
 
FMT_CONSTEXPR detail::color_type get_background () const noexcept
 
FMT_CONSTEXPR emphasis get_emphasis () const noexcept
 

Friends

FMT_CONSTEXPR text_style operator| (text_style lhs, const text_style &rhs)
 
FMT_CONSTEXPR text_style fg (detail::color_type foreground) noexcept
 
FMT_CONSTEXPR text_style bg (detail::color_type background) noexcept
 

Detailed Description

A text style consisting of foreground and background colors and emphasis.

Friends And Related Function Documentation

◆ bg

FMT_CONSTEXPR text_style bg ( detail::color_type  background)
friend

Creates a text style from the background color.

◆ fg

FMT_CONSTEXPR text_style fg ( detail::color_type  foreground)
friend

Creates a text style from the foreground (text) color.


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