#include <string>
#include <algorithm>
#include <cstring>
#include <gempyre_types.h>
#include <array>
#include <optional>
#include <string_view>
#include <vector>
#include <type_traits>
Go to the source code of this file.
|
#define | gempyre_graphics_assert(b, x) ((b) || GempyreUtils::do_fatal(x, nullptr, __FILE__, __LINE__)); |
|
|
using | Gempyre::Color::type = Gempyre::dataT |
| pixel type
|
|
|
bool | Gempyre::Color::is_equal (type a, type b) |
|
std::optional< type > | Gempyre::Color::from_html_name (std::string_view name) |
| find a HTML color as Color::type
|
|
std::optional< type > | Gempyre::Color::get_color (std::string_view color) |
| get color from string, where string is a HTML color name, #RRGGBB, #RRGGBBAA, 0xRRGGBB or 0xRRGGBBAA
|
|
|
constexpr std::array< std::pair< std::string_view, type >, 147 > | Gempyre::Color::html_colors |
| HTML colors.
|
|

gempyre_utils_graphics.h API for common graphics classes