Agora  1.2.0
Agora project
fmt::v8::text_style Class Reference

#include <color.h>

Collaboration diagram for fmt::v8::text_style:

Public Member Functions

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

Private Member Functions

 text_style (bool is_foreground, detail::color_type text_color) throw ()
 
text_styleand_assign (const text_style &rhs)
 

Private Attributes

detail::color_type foreground_color
 
detail::color_type background_color
 
bool set_foreground_color
 
bool set_background_color
 
emphasis ems
 

Friends

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

Detailed Description

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

Constructor & Destructor Documentation

◆ text_style() [1/2]

fmt::v8::text_style::text_style ( emphasis  em = emphasis())
throw (
)
inline

◆ text_style() [2/2]

fmt::v8::text_style::text_style ( bool  is_foreground,
detail::color_type  text_color 
)
throw (
)
inlineprivate

Member Function Documentation

◆ and_assign()

text_style& fmt::v8::text_style::and_assign ( const text_style rhs)
inlineprivate

◆ get_background()

detail::color_type fmt::v8::text_style::get_background ( ) const
throw (
)
inline
Here is the caller graph for this function:

◆ get_emphasis()

emphasis fmt::v8::text_style::get_emphasis ( ) const
throw (
)
inline
Here is the caller graph for this function:

◆ get_foreground()

detail::color_type fmt::v8::text_style::get_foreground ( ) const
throw (
)
inline
Here is the caller graph for this function:

◆ has_background()

bool fmt::v8::text_style::has_background ( ) const
throw (
)
inline
Here is the caller graph for this function:

◆ has_emphasis()

bool fmt::v8::text_style::has_emphasis ( ) const
throw (
)
inline
Here is the caller graph for this function:

◆ has_foreground()

bool fmt::v8::text_style::has_foreground ( ) const
throw (
)
inline
Here is the caller graph for this function:

◆ operator&=()

text_style& fmt::v8::text_style::operator&= ( const text_style rhs)
inline

◆ operator|=()

text_style& fmt::v8::text_style::operator|= ( const text_style rhs)
inline

Friends And Related Function Documentation

◆ bg

text_style bg ( detail::color_type  background)
throw (
)
friend

Creates a text style from the background color.

◆ fg

text_style fg ( detail::color_type  foreground)
throw (
)
friend

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

◆ operator&

text_style operator& ( text_style  lhs,
const text_style rhs 
)
friend

◆ operator|

text_style operator| ( text_style  lhs,
const text_style rhs 
)
friend

Member Data Documentation

◆ background_color

detail::color_type fmt::v8::text_style::background_color
private

◆ ems

emphasis fmt::v8::text_style::ems
private

◆ foreground_color

detail::color_type fmt::v8::text_style::foreground_color
private

◆ set_background_color

bool fmt::v8::text_style::set_background_color
private

◆ set_foreground_color

bool fmt::v8::text_style::set_foreground_color
private

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