FTXUI  5.0.0
C++ functional terminal UI.
color_info.hpp
Go to the documentation of this file.
1 // Copyright 2020 Arthur Sonzogni. All rights reserved.
2 // Use of this source code is governed by the MIT license that can be found in
3 // the LICENSE file.
4 #ifndef FTXUI_SCREEN_COLOR_INFO_HPP
5 #define FTXUI_SCREEN_COLOR_INFO_HPP
6 
7 #include <cstdint>
8 #include <ftxui/screen/color.hpp>
9 
10 namespace ftxui {
11 
12 struct ColorInfo {
13  const char* name;
14  uint8_t index_256;
15  uint8_t index_16;
16  uint8_t red;
17  uint8_t green;
18  uint8_t blue;
19  uint8_t hue;
20  uint8_t saturation;
21  uint8_t value;
22 };
23 
26 
27 } // namespace ftxui
28 
29 #endif // FTXUI_SCREEN_COLOR_INFO_HPP
uint8_t saturation
Definition: color_info.hpp:20
ColorInfo GetColorInfo(Color::Palette256 index)
Definition: color_info.cpp:272
const char * name
Definition: color_info.hpp:13