FTXUI 6.1.9
C++ functional terminal UI.
载入中...
搜索中...
未找到
color_info.hpp
浏览该文件的文档.
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是一个包含终端颜色调色板信息的结构。
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
ColorInfo是一个包含终端颜色调色板信息的结构。 颜色调色板信息。
#include "ftxui/component/component_base.hpp" // 用于 ComponentBase
ColorInfo GetColorInfo(Color::Palette256 index)