#include <algorithm>
#include <cstdint>
#include <ostream>
#include <string>
#include <utility>
Go to the source code of this file.
Classes | |
struct | color_t |
struct | std::hash< color_t > |
Functions | |
std::ostream & | operator<< (std::ostream &s, const color_t &c) |
Variables | |
const uint32_t | SDL_ALPHA_MASK = 0xFF000000 |
const uint32_t | SDL_RED_MASK = 0x00FF0000 |
const uint32_t | SDL_GREEN_MASK = 0x0000FF00 |
const uint32_t | SDL_BLUE_MASK = 0x000000FF |
const uint32_t | SDL_ALPHA_BITSHIFT = 24 |
const uint32_t | SDL_RED_BITSHIFT = 16 |
const uint32_t | SDL_GREEN_BITSHIFT = 8 |
const uint32_t | SDL_BLUE_BITSHIFT = 0 |
const uint32_t | RGBA_ALPHA_MASK = 0x000000FF |
const uint32_t | RGBA_RED_MASK = 0xFF000000 |
const uint32_t | RGBA_GREEN_MASK = 0x00FF0000 |
const uint32_t | RGBA_BLUE_MASK = 0x0000FF00 |
const uint32_t | RGBA_ALPHA_BITSHIFT = 0 |
const uint32_t | RGBA_RED_BITSHIFT = 24 |
const uint32_t | RGBA_GREEN_BITSHIFT = 16 |
const uint32_t | RGBA_BLUE_BITSHIFT = 8 |
const uint8_t | ALPHA_OPAQUE = 255 |
|
inline |
Definition at line 242 of file color.hpp.
References color_t::a, color_t::b, color_t::g, color_t::r, and s.
const uint8_t ALPHA_OPAQUE = 255 |
Definition at line 48 of file color.hpp.
Referenced by gui2::dialogs::story_viewer::draw_callback(), gui2::typed_formula< bool >::execute(), color_t::from_hex_string(), color_t::from_rgb_string(), color_t::from_rgba_string(), and gui2::dialogs::story_viewer::nav_button_callback().
const uint32_t RGBA_ALPHA_BITSHIFT = 0 |
Definition at line 43 of file color.hpp.
Referenced by color_t::from_rgba_bytes(), and color_t::to_rgba_bytes().
const uint32_t RGBA_ALPHA_MASK = 0x000000FF |
Definition at line 38 of file color.hpp.
Referenced by color_t::from_rgba_bytes().
const uint32_t RGBA_BLUE_BITSHIFT = 8 |
Definition at line 46 of file color.hpp.
Referenced by color_t::from_rgba_bytes(), and color_t::to_rgba_bytes().
const uint32_t RGBA_BLUE_MASK = 0x0000FF00 |
Definition at line 41 of file color.hpp.
Referenced by color_t::from_rgba_bytes().
const uint32_t RGBA_GREEN_BITSHIFT = 16 |
Definition at line 45 of file color.hpp.
Referenced by color_t::from_rgba_bytes(), and color_t::to_rgba_bytes().
const uint32_t RGBA_GREEN_MASK = 0x00FF0000 |
Definition at line 40 of file color.hpp.
Referenced by color_t::from_rgba_bytes().
const uint32_t RGBA_RED_BITSHIFT = 24 |
Definition at line 44 of file color.hpp.
Referenced by color_t::from_rgba_bytes(), and color_t::to_rgba_bytes().
const uint32_t RGBA_RED_MASK = 0xFF000000 |
Definition at line 39 of file color.hpp.
Referenced by color_t::from_rgba_bytes().
const uint32_t SDL_ALPHA_BITSHIFT = 24 |
Definition at line 33 of file color.hpp.
Referenced by color_t::from_argb_bytes(), and color_t::to_argb_bytes().
const uint32_t SDL_ALPHA_MASK = 0xFF000000 |
Definition at line 28 of file color.hpp.
Referenced by color_t::from_argb_bytes(), and surface::is_neutral().
const uint32_t SDL_BLUE_BITSHIFT = 0 |
Definition at line 36 of file color.hpp.
Referenced by color_t::from_argb_bytes(), and color_t::to_argb_bytes().
const uint32_t SDL_BLUE_MASK = 0x000000FF |
Definition at line 31 of file color.hpp.
Referenced by color_t::from_argb_bytes().
const uint32_t SDL_GREEN_BITSHIFT = 8 |
Definition at line 35 of file color.hpp.
Referenced by color_t::from_argb_bytes(), and color_t::to_argb_bytes().
const uint32_t SDL_GREEN_MASK = 0x0000FF00 |
Definition at line 30 of file color.hpp.
Referenced by color_t::from_argb_bytes().
const uint32_t SDL_RED_BITSHIFT = 16 |
Definition at line 34 of file color.hpp.
Referenced by color_t::from_argb_bytes(), and color_t::to_argb_bytes().
const uint32_t SDL_RED_MASK = 0x00FF0000 |
Definition at line 29 of file color.hpp.
Referenced by color_t::from_argb_bytes(), and surface::is_neutral().