WPILibC++ 2024.3.2
text_style Class Reference

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

#include </home/runner/work/allwpilib/allwpilib/wpiutil/src/main/native/thirdparty/fmtlib/include/fmt/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
 Creates a text style from the foreground (text) color. More...
 
FMT_CONSTEXPR text_style bg (detail::color_type background) noexcept
 Creates a text style from the background color. More...
 

Detailed Description

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

Constructor & Destructor Documentation

◆ text_style()

FMT_CONSTEXPR text_style::text_style ( emphasis  em = emphasis())
inlinenoexcept

Member Function Documentation

◆ get_background()

FMT_CONSTEXPR detail::color_type text_style::get_background ( ) const
inlinenoexcept

◆ get_emphasis()

FMT_CONSTEXPR emphasis text_style::get_emphasis ( ) const
inlinenoexcept

◆ get_foreground()

FMT_CONSTEXPR detail::color_type text_style::get_foreground ( ) const
inlinenoexcept

◆ has_background()

FMT_CONSTEXPR bool text_style::has_background ( ) const
inlinenoexcept

◆ has_emphasis()

FMT_CONSTEXPR bool text_style::has_emphasis ( ) const
inlinenoexcept

◆ has_foreground()

FMT_CONSTEXPR bool text_style::has_foreground ( ) const
inlinenoexcept

◆ operator|=()

FMT_CONSTEXPR text_style & text_style::operator|= ( const text_style rhs)
inline

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.

◆ operator|

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

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