Livox SDK API  V2.2.0
color.h File Reference
#include "format.h"

Go to the source code of this file.

Classes

struct  fmt::v5::rgb
 
struct  fmt::v5::internal::color_type
 
union  fmt::v5::internal::color_type::color_union
 
class  fmt::v5::text_style
 
struct  fmt::v5::internal::ansi_color_escape< Char >
 
struct  fmt::v5::internal::is_string< std::FILE * >
 
struct  fmt::v5::internal::is_string< const std::FILE * >
 

Namespaces

 fmt
 
 fmt::v5
 
 fmt::v5::internal
 

Enumerations

enum  fmt::v5::color : uint32_t {
  fmt::v5::color::alice_blue = 0xF0F8FF, fmt::v5::color::antique_white = 0xFAEBD7, fmt::v5::color::aqua = 0x00FFFF, fmt::v5::color::aquamarine = 0x7FFFD4,
  fmt::v5::color::azure = 0xF0FFFF, fmt::v5::color::beige = 0xF5F5DC, fmt::v5::color::bisque = 0xFFE4C4, fmt::v5::color::black = 0x000000,
  fmt::v5::color::blanched_almond = 0xFFEBCD, fmt::v5::color::blue = 0x0000FF, fmt::v5::color::blue_violet = 0x8A2BE2, fmt::v5::color::brown = 0xA52A2A,
  fmt::v5::color::burly_wood = 0xDEB887, fmt::v5::color::cadet_blue = 0x5F9EA0, fmt::v5::color::chartreuse = 0x7FFF00, fmt::v5::color::chocolate = 0xD2691E,
  fmt::v5::color::coral = 0xFF7F50, fmt::v5::color::cornflower_blue = 0x6495ED, fmt::v5::color::cornsilk = 0xFFF8DC, fmt::v5::color::crimson = 0xDC143C,
  fmt::v5::color::cyan = 0x00FFFF, fmt::v5::color::dark_blue = 0x00008B, fmt::v5::color::dark_cyan = 0x008B8B, fmt::v5::color::dark_golden_rod = 0xB8860B,
  fmt::v5::color::dark_gray = 0xA9A9A9, fmt::v5::color::dark_green = 0x006400, fmt::v5::color::dark_khaki = 0xBDB76B, fmt::v5::color::dark_magenta = 0x8B008B,
  fmt::v5::color::dark_olive_green = 0x556B2F, fmt::v5::color::dark_orange = 0xFF8C00, fmt::v5::color::dark_orchid = 0x9932CC, fmt::v5::color::dark_red = 0x8B0000,
  fmt::v5::color::dark_salmon = 0xE9967A, fmt::v5::color::dark_sea_green = 0x8FBC8F, fmt::v5::color::dark_slate_blue = 0x483D8B, fmt::v5::color::dark_slate_gray = 0x2F4F4F,
  fmt::v5::color::dark_turquoise = 0x00CED1, fmt::v5::color::dark_violet = 0x9400D3, fmt::v5::color::deep_pink = 0xFF1493, fmt::v5::color::deep_sky_blue = 0x00BFFF,
  fmt::v5::color::dim_gray = 0x696969, fmt::v5::color::dodger_blue = 0x1E90FF, fmt::v5::color::fire_brick = 0xB22222, fmt::v5::color::floral_white = 0xFFFAF0,
  fmt::v5::color::forest_green = 0x228B22, fmt::v5::color::fuchsia = 0xFF00FF, fmt::v5::color::gainsboro = 0xDCDCDC, fmt::v5::color::ghost_white = 0xF8F8FF,
  fmt::v5::color::gold = 0xFFD700, fmt::v5::color::golden_rod = 0xDAA520, fmt::v5::color::gray = 0x808080, fmt::v5::color::green = 0x008000,
  fmt::v5::color::green_yellow = 0xADFF2F, fmt::v5::color::honey_dew = 0xF0FFF0, fmt::v5::color::hot_pink = 0xFF69B4, fmt::v5::color::indian_red = 0xCD5C5C,
  fmt::v5::color::indigo = 0x4B0082, fmt::v5::color::ivory = 0xFFFFF0, fmt::v5::color::khaki = 0xF0E68C, fmt::v5::color::lavender = 0xE6E6FA,
  fmt::v5::color::lavender_blush = 0xFFF0F5, fmt::v5::color::lawn_green = 0x7CFC00, fmt::v5::color::lemon_chiffon = 0xFFFACD, fmt::v5::color::light_blue = 0xADD8E6,
  fmt::v5::color::light_coral = 0xF08080, fmt::v5::color::light_cyan = 0xE0FFFF, fmt::v5::color::light_golden_rod_yellow = 0xFAFAD2, fmt::v5::color::light_gray = 0xD3D3D3,
  fmt::v5::color::light_green = 0x90EE90, fmt::v5::color::light_pink = 0xFFB6C1, fmt::v5::color::light_salmon = 0xFFA07A, fmt::v5::color::light_sea_green = 0x20B2AA,
  fmt::v5::color::light_sky_blue = 0x87CEFA, fmt::v5::color::light_slate_gray = 0x778899, fmt::v5::color::light_steel_blue = 0xB0C4DE, fmt::v5::color::light_yellow = 0xFFFFE0,
  fmt::v5::color::lime = 0x00FF00, fmt::v5::color::lime_green = 0x32CD32, fmt::v5::color::linen = 0xFAF0E6, fmt::v5::color::magenta = 0xFF00FF,
  fmt::v5::color::maroon = 0x800000, fmt::v5::color::medium_aquamarine = 0x66CDAA, fmt::v5::color::medium_blue = 0x0000CD, fmt::v5::color::medium_orchid = 0xBA55D3,
  fmt::v5::color::medium_purple = 0x9370DB, fmt::v5::color::medium_sea_green = 0x3CB371, fmt::v5::color::medium_slate_blue = 0x7B68EE, fmt::v5::color::medium_spring_green = 0x00FA9A,
  fmt::v5::color::medium_turquoise = 0x48D1CC, fmt::v5::color::medium_violet_red = 0xC71585, fmt::v5::color::midnight_blue = 0x191970, fmt::v5::color::mint_cream = 0xF5FFFA,
  fmt::v5::color::misty_rose = 0xFFE4E1, fmt::v5::color::moccasin = 0xFFE4B5, fmt::v5::color::navajo_white = 0xFFDEAD, fmt::v5::color::navy = 0x000080,
  fmt::v5::color::old_lace = 0xFDF5E6, fmt::v5::color::olive = 0x808000, fmt::v5::color::olive_drab = 0x6B8E23, fmt::v5::color::orange = 0xFFA500,
  fmt::v5::color::orange_red = 0xFF4500, fmt::v5::color::orchid = 0xDA70D6, fmt::v5::color::pale_golden_rod = 0xEEE8AA, fmt::v5::color::pale_green = 0x98FB98,
  fmt::v5::color::pale_turquoise = 0xAFEEEE, fmt::v5::color::pale_violet_red = 0xDB7093, fmt::v5::color::papaya_whip = 0xFFEFD5, fmt::v5::color::peach_puff = 0xFFDAB9,
  fmt::v5::color::peru = 0xCD853F, fmt::v5::color::pink = 0xFFC0CB, fmt::v5::color::plum = 0xDDA0DD, fmt::v5::color::powder_blue = 0xB0E0E6,
  fmt::v5::color::purple = 0x800080, fmt::v5::color::rebecca_purple = 0x663399, fmt::v5::color::red = 0xFF0000, fmt::v5::color::rosy_brown = 0xBC8F8F,
  fmt::v5::color::royal_blue = 0x4169E1, fmt::v5::color::saddle_brown = 0x8B4513, fmt::v5::color::salmon = 0xFA8072, fmt::v5::color::sandy_brown = 0xF4A460,
  fmt::v5::color::sea_green = 0x2E8B57, fmt::v5::color::sea_shell = 0xFFF5EE, fmt::v5::color::sienna = 0xA0522D, fmt::v5::color::silver = 0xC0C0C0,
  fmt::v5::color::sky_blue = 0x87CEEB, fmt::v5::color::slate_blue = 0x6A5ACD, fmt::v5::color::slate_gray = 0x708090, fmt::v5::color::snow = 0xFFFAFA,
  fmt::v5::color::spring_green = 0x00FF7F, fmt::v5::color::steel_blue = 0x4682B4, fmt::v5::color::tan = 0xD2B48C, fmt::v5::color::teal = 0x008080,
  fmt::v5::color::thistle = 0xD8BFD8, fmt::v5::color::tomato = 0xFF6347, fmt::v5::color::turquoise = 0x40E0D0, fmt::v5::color::violet = 0xEE82EE,
  fmt::v5::color::wheat = 0xF5DEB3, fmt::v5::color::white = 0xFFFFFF, fmt::v5::color::white_smoke = 0xF5F5F5, fmt::v5::color::yellow = 0xFFFF00,
  fmt::v5::color::yellow_green = 0x9ACD32
}
 
enum  fmt::v5::terminal_color : uint8_t {
  fmt::v5::terminal_color::black = 30, fmt::v5::terminal_color::red, fmt::v5::terminal_color::green, fmt::v5::terminal_color::yellow,
  fmt::v5::terminal_color::blue, fmt::v5::terminal_color::magenta, fmt::v5::terminal_color::cyan, fmt::v5::terminal_color::white,
  fmt::v5::terminal_color::bright_black = 90, fmt::v5::terminal_color::bright_red, fmt::v5::terminal_color::bright_green, fmt::v5::terminal_color::bright_yellow,
  fmt::v5::terminal_color::bright_blue, fmt::v5::terminal_color::bright_magenta, fmt::v5::terminal_color::bright_cyan, fmt::v5::terminal_color::bright_white
}
 
enum  fmt::v5::emphasis : uint8_t { fmt::v5::emphasis::bold = 1, fmt::v5::emphasis::italic = 1 << 1, fmt::v5::emphasis::underline = 1 << 2, fmt::v5::emphasis::strikethrough = 1 << 3 }
 

Functions

text_style fmt::v5::fg (internal::color_type foreground) throw ()
 
text_style fmt::v5::bg (internal::color_type background) throw ()
 
text_style fmt::v5::operator| (emphasis lhs, emphasis rhs) throw ()
 
template<typename Char >
ansi_color_escape< Char > fmt::v5::internal::make_foreground_color (internal::color_type foreground) throw ()
 
template<typename Char >
ansi_color_escape< Char > fmt::v5::internal::make_background_color (internal::color_type background) throw ()
 
template<typename Char >
ansi_color_escape< Char > fmt::v5::internal::make_emphasis (emphasis em) throw ()
 
template<typename Char >
void fmt::v5::internal::fputs (const Char *chars, FILE *stream) throw ()
 
template<>
void fmt::v5::internal::fputs< wchar_t > (const wchar_t *chars, FILE *stream) throw ()
 
template<typename Char >
void fmt::v5::internal::reset_color (FILE *stream) throw ()
 
template<>
void fmt::v5::internal::reset_color< wchar_t > (FILE *stream) throw ()
 
template<typename S , typename Char = typename internal::char_t<S>::type>
void fmt::v5::vprint (std::FILE *f, const text_style &ts, const S &format, basic_format_args< typename buffer_context< Char >::type > args)
 
template<typename String , typename... Args>
std::enable_if< internal::is_string< String >::value >::type fmt::v5::print (std::FILE *f, const text_style &ts, const String &format_str, const Args &...args)
 
template<typename String , typename... Args>
std::enable_if< internal::is_string< String >::value >::type fmt::v5::print (const text_style &ts, const String &format_str, const Args &...args)