WPILibC++ 2027.0.0-alpha-4
Loading...
Searching...
No Matches
text_style Class Reference

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

#include <fmt/color.h>

Public Member Functions

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

Friends

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

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 auto text_style::get_background ( ) const->detail::color_type
inlinenoexcept

◆ get_emphasis()

FMT_CONSTEXPR auto text_style::get_emphasis ( ) const->emphasis
inlinenoexcept

◆ get_foreground()

FMT_CONSTEXPR auto text_style::get_foreground ( ) const->detail::color_type
inlinenoexcept

◆ has_background()

FMT_CONSTEXPR auto text_style::has_background ( ) const->bool
inlinenoexcept

◆ has_emphasis()

FMT_CONSTEXPR auto text_style::has_emphasis ( ) const->bool
inlinenoexcept

◆ has_foreground()

FMT_CONSTEXPR auto text_style::has_foreground ( ) const->bool
inlinenoexcept

◆ operator!=()

FMT_CONSTEXPR auto text_style::operator!= ( text_style rhs) const->bool
inlinenoexcept

◆ operator==()

FMT_CONSTEXPR auto text_style::operator== ( text_style rhs) const->bool
inlinenoexcept

◆ operator|=()

FMT_CONSTEXPR auto text_style::operator|= ( text_style rhs) ->text_style &
inline

◆ bg

FMT_CONSTEXPR auto bg ( detail::color_type background) ->text_style
friend

Creates a text style from the background color.

◆ fg

FMT_CONSTEXPR auto fg ( detail::color_type foreground) ->text_style
friend

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

◆ operator|

FMT_CONSTEXPR auto operator| ( text_style lhs,
text_style rhs )->text_style
friend

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