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>
8#include <ftxui/screen/color.hpp>
9
10 namespace ftxui {
11
12/// @brief ColorInfo is a structure that contains information about the terminal
13/// color palette.
14///
15/// @ingroup screen
16 struct 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
28 ColorInfo GetColorInfo(Color::Palette256 index);
29 ColorInfo GetColorInfo(Color::Palette16 index);
30
31} // namespace ftxui
32
33#endif // FTXUI_SCREEN_COLOR_INFO_HPP
color.hpp
ftxui::ColorInfo::blue
uint8_t blue
Definition color_info.hpp:22
ftxui::ColorInfo::saturation
uint8_t saturation
Definition color_info.hpp:24
ftxui::ColorInfo::index_16
uint8_t index_16
Definition color_info.hpp:19
ftxui::ColorInfo::value
uint8_t value
Definition color_info.hpp:25
ftxui::ColorInfo::name
const char * name
Definition color_info.hpp:17
ftxui::ColorInfo::green
uint8_t green
Definition color_info.hpp:21
ftxui::ColorInfo::index_256
uint8_t index_256
Definition color_info.hpp:18
ftxui::Color::Palette256
Palette256
Definition color.hpp:72
ftxui::ColorInfo::red
uint8_t red
Definition color_info.hpp:20
ftxui::ColorInfo::hue
uint8_t hue
Definition color_info.hpp:23
ftxui::Color::Palette16
Palette16
Definition color.hpp:53
ftxui::ColorInfo
ColorInfo is a structure that contains information about the terminal color palette.
Definition color_info.hpp:16
ftxui
The FTXUI ftxui:: namespace.
Definition animation.hpp:10
ftxui::GetColorInfo
ColorInfo GetColorInfo(Color::Palette256 index)
Definition color_info.cpp:272