FTXUI
5.0.0
C++ functional terminal UI.
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
struct
ColorInfo
{
13
const
char
*
name
;
14
uint8_t
index_256
;
15
uint8_t
index_16
;
16
uint8_t
red
;
17
uint8_t
green
;
18
uint8_t
blue
;
19
uint8_t
hue
;
20
uint8_t
saturation
;
21
uint8_t
value
;
22
};
23
24
ColorInfo
GetColorInfo
(
Color::Palette256
index);
25
ColorInfo
GetColorInfo
(
Color::Palette16
index);
26
27
}
// namespace ftxui
28
29
#endif
// FTXUI_SCREEN_COLOR_INFO_HPP
ftxui::Color::Palette256
Palette256
Definition:
color.hpp:70
ftxui::Color::Palette16
Palette16
Definition:
color.hpp:51
color.hpp
ftxui
Definition:
animation.hpp:10
ftxui::ColorInfo::blue
uint8_t blue
Definition:
color_info.hpp:18
ftxui::ColorInfo::saturation
uint8_t saturation
Definition:
color_info.hpp:20
ftxui::ColorInfo::index_16
uint8_t index_16
Definition:
color_info.hpp:15
ftxui::ColorInfo::value
uint8_t value
Definition:
color_info.hpp:21
ftxui::GetColorInfo
ColorInfo GetColorInfo(Color::Palette256 index)
Definition:
color_info.cpp:272
ftxui::ColorInfo::name
const char * name
Definition:
color_info.hpp:13
ftxui::ColorInfo::green
uint8_t green
Definition:
color_info.hpp:17
ftxui::ColorInfo::index_256
uint8_t index_256
Definition:
color_info.hpp:14
ftxui::ColorInfo::red
uint8_t red
Definition:
color_info.hpp:16
ftxui::ColorInfo::hue
uint8_t hue
Definition:
color_info.hpp:19
ftxui::ColorInfo
Definition:
color_info.hpp:12