Loading...
Searching...
No Matches
color_info.hpp
Go to the documentation of this file.
// Copyright 2020 Arthur Sonzogni. All rights reserved.
// Use of this source code is governed by the MIT license that can be found in
// the LICENSE file.
#ifndef FTXUI_SCREEN_COLOR_INFO_HPP
#define FTXUI_SCREEN_COLOR_INFO_HPP
#include <cstdint>
#include <ftxui/screen/color.hpp>
namespace ftxui {
struct ColorInfo {
const char* name;
uint8_t index_256;
uint8_t index_16;
uint8_t red;
uint8_t green;
uint8_t blue;
uint8_t hue;
uint8_t saturation;
uint8_t value;
};
ColorInfo GetColorInfo(Color::Palette256 index);
ColorInfo GetColorInfo(Color::Palette16 index);
} // namespace ftxui
#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::Make
std::shared_ptr< T > Make(Args &&... args)
Definition component.hpp:26
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