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

#include <color.h>

Public Member Functions

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

Private Member Functions

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

Private Attributes

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

Friends

FMT_CONSTEXPR_DECL text_style bg (detail::color_type background) FMT_NOEXCEPT
 
FMT_CONSTEXPR_DECL text_style fg (detail::color_type foreground) FMT_NOEXCEPT
 
FMT_DEPRECATED_NONMSVC friend FMT_CONSTEXPR text_style operator & (text_style lhs, const text_style &rhs)
 
FMT_CONSTEXPR text_style operator| (text_style lhs, const text_style &rhs)
 

Detailed Description

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

Definition at line 236 of file color.h.

Constructor & Destructor Documentation

◆ text_style() [1/2]

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

Definition at line 238 of file color.h.

◆ text_style() [2/2]

FMT_CONSTEXPR text_style::text_style ( bool  is_foreground,
detail::color_type  text_color 
)
inlineprivate

Definition at line 305 of file color.h.

Member Function Documentation

◆ and_assign()

FMT_CONSTEXPR text_style& text_style::and_assign ( const text_style rhs)
inlineprivate

Definition at line 320 of file color.h.

◆ get_background()

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

Definition at line 295 of file color.h.

◆ get_emphasis()

FMT_CONSTEXPR emphasis text_style::get_emphasis ( ) const
inline

Definition at line 299 of file color.h.

◆ get_foreground()

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

Definition at line 291 of file color.h.

◆ has_background()

FMT_CONSTEXPR bool text_style::has_background ( ) const
inline

Definition at line 285 of file color.h.

◆ has_emphasis()

FMT_CONSTEXPR bool text_style::has_emphasis ( ) const
inline

Definition at line 288 of file color.h.

◆ has_foreground()

FMT_CONSTEXPR bool text_style::has_foreground ( ) const
inline

Definition at line 282 of file color.h.

◆ operator &=()

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

Definition at line 272 of file color.h.

◆ operator|=()

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

Definition at line 243 of file color.h.

Friends And Related Function Documentation

◆ bg

FMT_CONSTEXPR_DECL text_style bg ( detail::color_type  background)
friend

Creates a text style from the background color.

Definition at line 363 of file color.h.

◆ fg

FMT_CONSTEXPR_DECL text_style fg ( detail::color_type  foreground)
friend

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

Definition at line 358 of file color.h.

◆ operator &

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

Definition at line 278 of file color.h.

◆ operator|

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

Definition at line 267 of file color.h.

Member Data Documentation

◆ background_color

detail::color_type text_style::background_color
private

Definition at line 351 of file color.h.

◆ ems

emphasis text_style::ems
private

Definition at line 354 of file color.h.

◆ foreground_color

detail::color_type text_style::foreground_color
private

Definition at line 350 of file color.h.

◆ set_background_color

bool text_style::set_background_color
private

Definition at line 353 of file color.h.

◆ set_foreground_color

bool text_style::set_foreground_color
private

Definition at line 352 of file color.h.


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


plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Jun 19 2023 03:12:55