quill
Public Member Functions | Friends | List of all members
text_style Class Reference

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

#include <color.h>

Public Member Functions

FMTQUILL_CONSTEXPR text_style (emphasis em=emphasis()) noexcept
 
FMTQUILL_CONSTEXPR auto operator|= (text_style rhs) -> text_style &
 
FMTQUILL_CONSTEXPR auto operator== (text_style rhs) const noexcept -> bool
 
FMTQUILL_CONSTEXPR auto operator!= (text_style rhs) const noexcept -> bool
 
FMTQUILL_CONSTEXPR auto has_foreground () const noexcept -> bool
 
FMTQUILL_CONSTEXPR auto has_background () const noexcept -> bool
 
FMTQUILL_CONSTEXPR auto has_emphasis () const noexcept -> bool
 
FMTQUILL_CONSTEXPR auto get_foreground () const noexcept -> detail::color_type
 
FMTQUILL_CONSTEXPR auto get_background () const noexcept -> detail::color_type
 
FMTQUILL_CONSTEXPR auto get_emphasis () const noexcept -> emphasis
 

Friends

FMTQUILL_CONSTEXPR auto operator| (text_style lhs, text_style rhs) -> text_style
 
FMTQUILL_CONSTEXPR auto fg (detail::color_type foreground) noexcept -> text_style
 Creates a text style from the foreground (text) color.
 
FMTQUILL_CONSTEXPR auto bg (detail::color_type background) noexcept -> text_style
 Creates a text style from the background color.
 

Detailed Description

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


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