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