FTXUI 6.1.9
C++ functional terminal UI.
Loading...
Searching...
No Matches
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>
9
10namespace ftxui {
11
12/// @brief ColorInfo is a structure that contains information about the terminal
13/// color palette.
14///
15/// @ingroup screen
16struct ColorInfo {
17 const char* name;
18 uint8_t index_256;
19 uint8_t index_16;
20 uint8_t red;
21 uint8_t green;
22 uint8_t blue;
23 uint8_t hue;
24 uint8_t saturation;
25 uint8_t value;
26};
27
30
31} // namespace ftxui
32
33#endif // FTXUI_SCREEN_COLOR_INFO_HPP
const char * name
ColorInfo is a structure that contains information about the terminal color palette.
The FTXUI ftxui:: namespace.
Definition animation.hpp:10
ColorInfo GetColorInfo(Color::Palette256 index)