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

Private Member Functions

FMT_CONSTEXPR text_style (bool is_foreground, detail::color_type text_color) 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 auto bg (detail::color_type background) noexcept -> text_style
 
FMT_CONSTEXPR auto fg (detail::color_type foreground) noexcept -> text_style
 
FMT_CONSTEXPR auto operator| (text_style lhs, const text_style &rhs) -> text_style
 

Detailed Description

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

Definition at line 231 of file color.h.

Constructor & Destructor Documentation

◆ text_style() [1/2]

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

Definition at line 233 of file color.h.

◆ text_style() [2/2]

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

Definition at line 288 of file color.h.

Member Function Documentation

◆ get_background()

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

Definition at line 278 of file color.h.

◆ get_emphasis()

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

Definition at line 282 of file color.h.

◆ get_foreground()

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

Definition at line 274 of file color.h.

◆ has_background()

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

Definition at line 268 of file color.h.

◆ has_emphasis()

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

Definition at line 271 of file color.h.

◆ has_foreground()

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

Definition at line 265 of file color.h.

◆ operator|=()

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

Definition at line 236 of file color.h.

Friends And Related Function Documentation

◆ bg

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

Creates a text style from the background color.

Definition at line 320 of file color.h.

◆ fg

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

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

Definition at line 314 of file color.h.

◆ operator|

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

Definition at line 260 of file color.h.

Member Data Documentation

◆ background_color

detail::color_type text_style::background_color
private

Definition at line 307 of file color.h.

◆ ems

emphasis text_style::ems
private

Definition at line 310 of file color.h.

◆ foreground_color

detail::color_type text_style::foreground_color
private

Definition at line 306 of file color.h.

◆ set_background_color

bool text_style::set_background_color
private

Definition at line 309 of file color.h.

◆ set_foreground_color

bool text_style::set_foreground_color
private

Definition at line 308 of file color.h.


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


plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:51