34 #if !defined (USE_FINAL_H) && !defined (COMPILE_FINAL_CUT) 35 #error "Only <final/final.h> can be included directly." 39 #include "final/ftypes.h" 40 #include "final/util/fstring.h" 53 constexpr
explicit FColorPair (FColor fg = FColor::Default, FColor bg = FColor::Default)
59 auto getClassName()
const ->
FString 60 {
return "FColorPair"; }
62 constexpr
auto getForegroundColor()
const noexcept -> FColor
65 constexpr
auto getBackgroundColor()
const noexcept -> FColor
69 constexpr
void setForegroundColor (FColor color) noexcept
72 constexpr
void setBackgroundColor (FColor color) noexcept
75 constexpr
void setColorPair (
const FColorPair& pair) noexcept
77 fg_color = pair.fg_color;
78 bg_color = pair.bg_color;
81 constexpr
void setColorPair (FColor fg, FColor bg) noexcept
88 inline void swap() noexcept
90 std::swap (fg_color, bg_color);
93 friend constexpr
auto operator == (
const FColorPair& c1,
const FColorPair& c2) noexcept ->
bool 95 return c1.fg_color == c2.fg_color
96 && c1.bg_color == c2.bg_color;
99 friend constexpr
auto operator != (
const FColorPair& c1,
const FColorPair& c2) noexcept ->
bool 112 #endif // FCOLORPAIR_H Definition: class_template.cpp:25
Definition: fcolorpair.h:49