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. 版權所有。
2// 本原始碼受 MIT 授權條款約束,詳情請參閱
3// LICENSE 檔案。
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 是一個結構,包含有關終端機
13/// 顏色調色盤的資訊。
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 是一個結構,包含有關終端機 顏色調色盤的資訊。
FTXUI 的 ftxui:: 命名空間
Definition animation.hpp:10
ColorInfo GetColorInfo(Color::Palette256 index)